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