[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: AW: AW: AW: AW: [geclipse-dev] Token creation
|
Stuempert, Mathias IWR a écrit :
I think you have the same bug in the method
IGridJobID id = jss[0].submitJob(jsdl, new NullProgressMonitor());
Now this one at least is for you Pawel :-P Nevertheless Romain now
already knows about the workaround ...
The token creation is not doing great.
Don't fool me, do you mean "not" or maybe "now"?! At least you seem to
be able to create, verify and activate a token, right?!
Course I mean now; it seams to be working fine for me !!!
And I have registered it:
AuthenticationTokenManager.getManager().setDefaultToken(proxy);
You may have registered it but you didn't add it before.
setDefaultToken() does:
if ( this.tokens.contains( token ) && ( this.defaultToken != token ) ) {
It makes sense.
That means if the token is not yet known by the manager it is not set as
default. So actually you have to make use of
AuthenticationTokenManager.getManager().createToken( desc );
Which then of course replaces your old
desc.createToken();
My code looks now like:
VomsProxy proxy = ( VomsProxy )
AuthenticationTokenManager.getManager().createToken( desc );
// VomsProxy proxy = ( VomsProxy ) desc.createToken( );
if ( ! proxy.isValid() ) {
proxy.validate( new NullProgressMonitor() );
}
if ( ! proxy.isActive() ) {
proxy.setActive( true, null );
}
AuthenticationTokenManager.getManager().setDefaultToken(proxy);
And I get the same exception :(
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)
What is your guess? Will we submit a first job with your app today ;-)
Great, I may claim a pay raise if so ;)
Cheers, Mathias
_______________________________________________
geclipse-dev mailing list
geclipse-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/geclipse-dev