home list archives users mailing list

Subject: Re: Probelm in using Grid FTP

Date view Thread view Subject view Author view Attachment view

From: Samatha Kottha (samatha.kottha@tu-dresden.de)
Date: Mar 27, 2006 11:35

Ohpps! I attached wrong file. Here it is. In class
DeliverFromGFTActivity.java file it was not able to fetch the credential
(line 115). But can anyone tell me what is mContext is and where it
defined.

thank you,
Samatha

Samatha Kottha wrote:
> Hi!
>
> We are trying to get the results of query using Grid FTP to a file but
> we are facing this error message. I do not understand why I am getting
> this message as the globus-url-copy command is working fine as well as
> the program code with SOAP messages and have a valid proxy. If any one
> have idea, please let me know.
>
> thank you,
> Samatha
>
> ********Program error
> Exception in thread "main"
> uk.org.ogsadai.client.toolkit.exception.RequestException: There was a
> request fault: Cannot open a GridFTP co
> nnection without credentials - ensure the GDS is being called with an
> appropriate certificate
> at
> uk.org.ogsadai.client.toolkit.exception.FaultToException.getRequestException(FaultToException.java:166)
> at
> uk.org.ogsadai.client.toolkit.wsrf.WSRFDataServiceStub.perform(WSRFDataServiceStub.java:546)
> at
> uk.org.ogsadai.client.toolkit.wsrf.WSRFDataService.perform(WSRFDataService.java:110)
> at xmltocsv.main(xmltocsv.java:79)
> Java Result: 1
>
> ********Globus container error message
> 2006-03-27 11:45:18,701 ERROR activity.ActivityPipelineRequestComponent
> [ServiceThread-17,logError:213] An exception has been raised.
> uk.org.ogsadai.engine.controlflow.RequestUserException: Cannot open a
> GridFTP connection without credentials - ensure the GDS is being called
> with an appro
> priate certificate
> at
> uk.org.ogsadai.activity.ActivityPipelineRequestComponent.prepareActivities(ActivityPipelineRequestComponent.java:218)
> at
> uk.org.ogsadai.activity.ActivityPipelineRequestComponent.initialise(ActivityPipelineRequestComponent.java:86)
> at
> uk.org.ogsadai.engine.controlflow.CompositeRequestComponent.initialise(CompositeRequestComponent.java:77)
> at
> uk.org.ogsadai.activity.ActivityRequest.initialise(ActivityRequest.java:168)
> at
> uk.org.ogsadai.engine.RequestEngine.perform(RequestEngine.java:145)
> at
> uk.org.ogsadai.dataresource.BasicDataResourceManager.perform(BasicDataResourceManager.java:141)
> at
> uk.org.ogsadai.service.wsrf.dataservice.impl.DataServiceImpl.perform(DataServiceImpl.java:594)
> at
> uk.org.ogsadai.service.wsrf.dataservice.impl.DataServiceImpl.perform(DataServiceImpl.java:535)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:384)
> at
> org.globus.axis.providers.RPCProvider.invokeMethodSub(RPCProvider.java:107)
> at
> org.globus.axis.providers.PrivilegedInvokeMethodAction.run(PrivilegedInvokeMethodAction.java:42)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:379)
> at org.globus.gsi.jaas.GlobusSubject.runAs(GlobusSubject.java:55)
> at org.globus.gsi.jaas.JaasSubject.doAs(JaasSubject.java:90)
> at
> org.globus.axis.providers.RPCProvider.invokeMethod(RPCProvider.java:97)
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:281)
> at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> at
> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:450)
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:285)
> at
> org.globus.wsrf.container.ServiceThread.doPost(ServiceThread.java:677)
> at
> org.globus.wsrf.container.ServiceThread.process(ServiceThread.java:398)
> at
> org.globus.wsrf.container.GSIServiceThread.process(GSIServiceThread.java:130)
> at
> org.globus.wsrf.container.ServiceThread.run(ServiceThread.java:302)
> Caused by: ActivityUserException: Cannot open a GridFTP connection
> without credentials - ensure the GDS is being called with an appropriate
> certificate
> at
> uk.org.ogsadai.activity.delivery.wsrf.DeliverToGFTPActivity.initialise(DeliverToGFTPActivity.java:128)
> at
> uk.org.ogsadai.activity.ActivityPipelineRequestComponent.prepareActivities(ActivityPipelineRequestComponent.java:201)
> ... 30 more
>
>
> ------------------------------------------------------------------------
>
> import uk.org.ogsadai.client.Util;
> import uk.org.ogsadai.client.toolkit.GenericServiceFetcher;
> import uk.org.ogsadai.client.toolkit.Response;
> import uk.org.ogsadai.client.toolkit.activity.ActivityRequest;
> import uk.org.ogsadai.client.toolkit.activity.delivery.DeliverFromURL;
> import uk.org.ogsadai.client.toolkit.activity.delivery.DeliverToGFTP;
> import uk.org.ogsadai.client.toolkit.activity.delivery.DeliverToURL;
> import uk.org.ogsadai.client.toolkit.activity.sql.SQLQuery;
> import uk.org.ogsadai.client.toolkit.activity.sql.WebRowSet;
> import uk.org.ogsadai.client.toolkit.activity.transform.XSLTransform;
> import uk.org.ogsadai.client.toolkit.security.wsrf.GSITransportEncryptionProperty;
> import uk.org.ogsadai.client.toolkit.service.DataService;
>
>
> public class xmltocsv
> {
>
> //register transport security
> static
> {
> Util.registerTransport();
> }
>
>
> public static void main(String[] args) throws Exception
> {
>
> if(!Util.isRegistered())
> {
> System.out.println(Util.getRegistrationErrorMessage() + Util.getRegistrationException());
> return;
> }
>
> String handle = "https://romeo.urz.tu-dresden.de:8443/wsrf/services/ogsadai/MyService";
> String id = "MyPQSPSIMAP169";
> DataService service = GenericServiceFetcher.getInstance().getDataService(handle,id);
>
> //Setup encryption
> service.setConnectionProperty(new GSITransportEncryptionProperty());
> System.out.println("Ready to connect to secure data service at " + service.getURL());
>
> // Create a deliverToURL object
> DeliverToGFTP deliverto = new DeliverToGFTP( "romeo.urz.tu-dresden.de",2811,"/tmp/mytext.csv" );
>
> // Create a deliverFromURL object
> DeliverFromURL deliverfrom = new DeliverFromURL( "http://141.76.17.139:8080/tutorial/csvtransform.xsl" );
>
> // Construct a query
> SQLQuery query = new SQLQuery("SELECT * FROM if_string limit 100") ;
> WebRowSet rowset = new WebRowSet(query.getOutput());
>
> // Construct the transformation activity
> XSLTransform transform = new XSLTransform();
> transform.setXMLInput( rowset.getOutput() );
> transform.setXSLTInput( deliverfrom.getOutput() );
>
> deliverto.setInput(transform.getOutput());
>
> //Construct the request
> ActivityRequest request = new ActivityRequest();
> request.add(deliverfrom);
> request.add(query);
> request.add(rowset);
> request.add(transform);
> request.add(deliverto);
>
> System.out.println("Performing request...");
> Response response = service.perform( request );
>
> System.out.println(response);
>
> service.terminate();
>
> }
> }
>

-- 
Samatha Kottha
Zentrum für Informationsdienste und Hochleistungsrechnen (ZIH)
Technische Universität Dresden			Tel: (+49) 351 463-38553
Hauptgebäude 322 c				Fax: (+49) 351 463-38245
Hans-Grundig-Straße 25
01307 Dresden
Germany 


Date view Thread view Subject view Author view Attachment view