Hi,

But when my proxy file is valid I didn't get any error.
I use GT 4.2.0
I tried also using only :

((Stub)videoFactory)._setProperty(Constants.GSI_SEC_CONV,Constants.ENCRYPTION);

And I get this error only when I haven't initialized the proxy for the
current user.

what do you meen by NPE ?

Maxime.

2008/7/23 Rachana Ananthakrishnan <[EMAIL PROTECTED]>

>  This is NPE in the stub and should not be affected at all by the proxy
> file. Are you asserting that if the following is not used to pick up the
> proxy from non-default location, the invocation results in a NPE?
>
> credFile = new ValStringType("/home/maxime/mobile.cred");
>
> Are you sure none of the properties set on the stub are null? Which version
> of the toolkit are you using?
>
> Please keep mailing list CCed in all your responses.
>
> Rachana
>
>  ------------------------------
> *From:* BRACHET Maxime [mailto:[EMAIL PROTECTED]
> *Sent:* Wednesday, July 23, 2008 9:41 AM
> *To:* Rachana Ananthakrishnan
> *Subject:* Re: [gt-user] Error not friendly with non-valid proxy
> credential.
>
>  Hi,
>
> here is the full stacktrace :
>
> <code>
>
> AxisFault
>  faultCode: {
> http://schemas.xmlsoap.org/soap/envelope/}Server.userException<http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException>
>  faultSubcode:
>  faultString: java.lang.NullPointerException
>  faultActor:
>  faultNode:
>  faultDetail:
>     
> {http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException<http://xml.apache.org/axis/%7DstackTrace:java.lang.NullPointerException>
>     at
> org.apache.axiom.om.impl.dom.ParentNode.buildNext(ParentNode.java:83)
>     at
> org.apache.axiom.om.impl.dom.ChildNode.getNextOMSibling(ChildNode.java:48)
>     at
> org.apache.axiom.om.impl.dom.ElementImpl.getNextOMSibling(ElementImpl.java:1346)
>     at
> org.apache.axiom.om.impl.traverse.OMChildrenIterator.next(OMChildrenIterator.java:106)
>     at
> org.apache.axis2.saaj.SOAPElementImpl.getChildElements(SOAPElementImpl.java:308)
>     at
> org.apache.axis.AxisFault.initFromSOAPFaultException(AxisFault.java:321)
>     at org.apache.axis.AxisFault.&lt;init&gt;(AxisFault.java:191)
>     at org.apache.axis.AxisFault.makeFault(AxisFault.java:104)
>     at org.apache.axis.client.AxisClient.invoke(AxisClient.java:308)
>     at org.apache.axis.client.Call.invokeEngine(Call.java:2838)
>     at org.apache.axis.client.Call.invoke(Call.java:2824)
>     at org.apache.axis.client.Call.invoke(Call.java:2501)
>     at org.apache.axis.client.Call.invoke(Call.java:2424)
>     at org.apache.axis.client.Call.invoke(Call.java:1835)
>     at
> org.globus.examples.stubs.VideoFactory.bindings.VideoFactoryPortTypeSOAPBindingStub.createResource(VideoFactoryPortTypeSOAPBindingStub.java:248)
>     at
> org.globus.examples.clients.VideoService_instance.Client.createResource(Client.java:74)
>     at VideoTest.main(VideoTest.java:12)
>
>     
> {http://xml.apache.org/axis/}hostname:ozzy-6<http://xml.apache.org/axis/%7Dhostname:ozzy-6>
>
> </code>
>
> It seems that this error occurred also with default credential.
>
> Regards,
> Maxime.
>
> 2008/7/23 Rachana Ananthakrishnan <[EMAIL PROTECTED]>
>
>>  Can you paste the stack trace so we can see where the
>> NullPointerException is thrown?
>>
>> Rachana
>>
>>  ------------------------------
>> *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *BRACHET Maxime
>> *Sent:* Wednesday, July 23, 2008 3:17 AM
>> *To:* [email protected]
>> *Subject:* [gt-user] Error not friendly with non-valid proxy credential.
>>
>>   Hi,
>>
>> I have done a Service which require GSISecureConversation.
>> So the client nned to have his proxy credential in order.
>> When it is not the case, an error occurred to advert the user.
>> But I have implemented a client which load a proxyfile other than default
>> one.
>> And when my credential is not valid, the error returned is
>> Java.lang.NullPointerException.
>> This is not a friendly error, I waste some time to figure out where this
>> could come from.
>>
>> Here is the code I used in the client to setup the security and the proxy
>> file :
>>
>>     credFile = new ValStringType("/home/maxime/mobile.cred");
>>     clientAuthz = new ValStringType("none");
>>     credType = new CredentialType();
>>     credType.setProxyFile(credFile);
>>     clientConf = new ClientSecurityConfig();
>>     clientConf.setCredential(credType);
>>     clientConf.setAuthz(clientAuthz);
>>     secConv = new GSISecureConversation();
>>     secConv.setPrivacy(new Privacy());
>>     clientConf.setGSISecureConversation(secConv);
>>     clientSec = new ClientSecurityDescriptor(clientConf);
>>     ((Stub)videoFactory)._setProperty(Constants.CLIENT_DESCRIPTOR,
>> clientSec);
>>
>> It would be great if the Error in case of non-valid proxy certificate will
>> be a bit friendly.
>>
>> Regards,
>> Maxime.
>>
>>
>

Reply via email to