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.
