[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [geclipse-dev] Exception in VomsCredentialInfo
|
Hi Romain,
I guess the proxy file was not a VOMS proxy at all, right?! I supose it was a plain Globus proxy. The NPE means that there was no X.509 extension found for the VOMS attribute certificate. I changed the code in HEAD to also allow the creation of a VOMSProxy from a pure Globus credential, i.e. without any VOMS specific extensions, so the above error should not happen again.
Thanks for reporting this!
Mathias
-----Original Message-----
From: geclipse-dev-bounces@xxxxxxxxxxx on behalf of Romain
Sent: Tue 12/9/2008 9:49 PM
To: Developer mailing list
Subject: Re: [geclipse-dev] Exception in VomsCredentialInfo
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I forgot to mention the code:
if(System.getenv().containsKey("X509_USER_PROXY") && (proxyFile = new File(System.getenv().get("X509_USER_PROXY"))).exists()) {
//File proxyFile = new File(System.getenv().get("X509_USER_PROXY"));
desc = new VomsProxyDescription( proxyFile );
// System.out.println("Token init from file");
} else desc = genDescriptionFromPreferences();
IAuthenticationToken proxy;
try {
proxy = AuthenticationTokenManager.getManager().createToken( desc );
if ( ! proxy.isValid() ) {
proxy.validate();
}
if ( ! proxy.isActive() ) {
proxy.setActive( true );
}
} catch (AuthenticationException e) {
throw new UserBadDataError(e);
}
AuthenticationTokenManager.getManager().setDefaultToken(proxy);
Romain a écrit :
> Hi guys,
>
> I get an exception when I try to initialize a voms proxy from a file on a workernode, I get that
> exception:
>
> java.lang.NullPointerException
> at eu.geclipse.voms.auth.VomsCredentialInfo.setCredential(VomsCredentialInfo.java:69)
> at eu.geclipse.globus.auth.GlobusProxy.setCredential(GlobusProxy.java:341)
> at eu.geclipse.voms.auth.VomsProxy.setCredential(VomsProxy.java:264)
> at eu.geclipse.voms.auth.VomsProxyDescription.createToken(VomsProxyDescription.java:231)
> at eu.geclipse.core.auth.AuthenticationTokenManager.createToken(AuthenticationTokenManager.java:82)
> at org.simexplorer.environmentprovider.glite.GridEnvironment.initAuthentication(GridEnvironment.java:138)
> at org.simexplorer.runtime.SimExplorer.start(SimExplorer.java:27)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 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:597)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>
> Any idea why ?
>
> If you want I may send the content of the proxy file that is being read ...
>
>
> Cheers, Romain.
_______________________________________________
geclipse-dev mailing list
geclipse-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/geclipse-dev
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkk+2dcACgkQbUN+hKKXqguE7QCeLlek0Y1hTEYOtojyWbTa6Bze
a2MAn0sb0AiOr5pyOYIDHTb4jUb3YybK
=oKBC
-----END PGP SIGNATURE-----
_______________________________________________
geclipse-dev mailing list
geclipse-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/geclipse-dev