Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: AW: AW: AW: [geclipse-dev] Token creation

Stuempert, Mathias IWR a écrit :
I for the moment I try to make it work the simple way. After that I'd like to implement a code independent from the middleware
implementation,
then I think I should use of the AbstractTokenProvider.

Not necessarily but it would make things much easier.

Using that code I still gets me the null pointer exception.

Ok, this is due to a bug in GlobusProxy#validate. I will fix this for
the next release. You can simply work around this by doing

proxy.validate( new NullProgressMonitor() );
I think you have the same bug in the method

IGridJobID id = jss[0].submitJob(jsdl, new NullProgressMonitor());
instead of

proxy.validate( null );

I have not mention any password for the certificates. I think I should

provide it to geclipse, don't I ?

No, g-Eclipse guesses a PW from your login info at your local machine
and from the IDs of various hardware components installed in your local
computer, mixes it up with the current inclination angle of the earth,
the weight of your girlfriend, the name of the current favourite in the
US democrats pre-elections and throws it away afterwards ...
I am really impressed with your developing skills :) !!!
of course
all your other (really used) passwords are cached and sent to
www.geclipse.eu :D
Sorry, of course this is my mistake, I have simply forgotten to mention
it ;-) So here is the piece of code that you have to insert before the
proxy creation:

PasswordManager.registerPassword( pwuid, pw );

The pwuid is a unique ID used by the proxy creation to query for the PW.
In the case of a globus proxy this is just the file path of your key
file, so in your case:

String pwuid = "/home/reuillon/.globus/userkey.pem";

And of course pw is the password itself (the keys passphrase, not the
g-Eclipse auto-generated one ;-). Note that g-Eclipse passwords are only
session-persistent. When restarting g-Eclipse or an application based on
it all formerly registered PWs are lost.
The token creation is not doing great. And I have registered it:
AuthenticationTokenManager.getManager().setDefaultToken(proxy);

But it still fails in creating a new token when I do the submission:

IGridJobID id = jss[0].submitJob(jsdl, new NullProgressMonitor());

eu.geclipse.core.reporting.ProblemException: Job submission failed
   at eu.geclipse.glite.WMSClient.submit(WMSClient.java:462)
   at eu.geclipse.glite.WMSClient.submitJob(WMSClient.java:574)
at eu.geclipse.glite.resources.GliteJobAPI.submitJob(GliteJobAPI.java:113) at eu.geclipse.glite.resources.GliteJobService.submitJob(GliteJobService.java:66) at fr.cemagref.simexplorer.ide.osgi.processors.JobLauncherProcessor.process(JobLauncherProcessor.java:464) at fr.cemagref.simexplorer.ide.core.processors.modular.ProcessorsList.process(ProcessorsList.java:54) at fr.cemagref.simexplorer.ide.core.IDEModularApplication.run(IDEModularApplication.java:41) at fr.cemagref.simexplorer.service.loader.EFSSimulationLoaderImpl.run(EFSSimulationLoaderImpl.java:26) at fr.cemagref.simexplorer.service.application.SimExplorer.start(SimExplorer.java:49) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
   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:508)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
eu.geclipse.core.reporting.ProblemException[-1049879000]: java.security.GeneralSecurityException: Authentication token could not be created
   at eu.geclipse.glite.WMSClient.delegateProxy(WMSClient.java:225)
   at eu.geclipse.glite.WMSClient.submit(WMSClient.java:347)
   at eu.geclipse.glite.WMSClient.submitJob(WMSClient.java:574)
at eu.geclipse.glite.resources.GliteJobAPI.submitJob(GliteJobAPI.java:113) at eu.geclipse.glite.resources.GliteJobService.submitJob(GliteJobService.java:66) at fr.cemagref.simexplorer.ide.osgi.processors.JobLauncherProcessor.process(JobLauncherProcessor.java:464) at fr.cemagref.simexplorer.ide.core.processors.modular.ProcessorsList.process(ProcessorsList.java:54) at fr.cemagref.simexplorer.ide.core.IDEModularApplication.run(IDEModularApplication.java:41) at fr.cemagref.simexplorer.service.loader.EFSSimulationLoaderImpl.run(EFSSimulationLoaderImpl.java:26) at fr.cemagref.simexplorer.service.application.SimExplorer.start(SimExplorer.java:49) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
   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:508)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Cheers, Mathias
_______________________________________________
geclipse-dev mailing list
geclipse-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/geclipse-dev




Back to the top