[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
AW: [geclipse-dev] JSDL job description creation
|
Hi Romain,
> jsdl.create(new JSDLJobDescriptionCreator());
This line does not make any sense. It creates a new JSDLJobDescription
as child of your current JSDLJobDescription, so you end up with two
JSDLs, strange enough. So just omit this line.
> System.out.println(jsdl.getJSDLString());
Obviously this line causes the problem. I had a look at the
getJSDLString() method:
File jsdlFile = this.getPath().toFile();
FileInputStream jsdlStream = null;
jsdlStream = new FileInputStream( jsdlFile );
The first line gives you the path relative to the workspace. Since the
FileInputStream does not know anything about the workspace it cannot
find the file. So I assume this is a bug, Kasia, Nicholas, do you agree?
Nevertheless as workaround until we fixed this bug you could have a look
at your file you originally passed to the JSDLJobDescription
constructor, open its output stream and get its content by yourself. Any
other suggestions from the JSDL experts?
Cheers, Mathias
> But I get the following exception:
>
> java.io.FileNotFoundException: /myproject/myjsld.jsdl (No such
> file or directory)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at
>
eu.geclipse.jsdl.JSDLJobDescription.getJSDLString(JSDLJobDescription.jav
a:250)
>
> at
>
fr.cemagref.simexplorer.ide.osgi.processors.JobLauncherProcessor.process
(JobLauncherProcessor.java:209)
>
> at
>
fr.cemagref.simexplorer.ide.core.processors.modular.ProcessorsList.proce
ss(ProcessorsList.java:54)
>
> at
>
fr.cemagref.simexplorer.ide.core.IDEModularApplication.run(IDEModularApp
lication.java:41)
>
> at
>
fr.cemagref.simexplorer.service.loader.EFSSimulationLoaderImpl.run(EFSSi
mulationLoaderImpl.java:26)
>
> at
>
fr.cemagref.simexplorer.service.application.SimExplorer.start(SimExplore
r.java:49)
>
> at
>
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.j
ava:169)
>
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplicat
ion(EclipseAppLauncher.java:106)
>
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Eclip
seAppLauncher.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.jav
a:39)
>
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.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)
>
> At the end of the process the jsdl file has been written:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <jsdl:JobDefinition
> xmlns:jsdl="http://schemas.ggf.org/jsdl/2005/11/jsdl">
> <jsdl:JobDescription>
> <jsdl:Application>
> <jsdl:ApplicationName>/bin/date</jsdl:ApplicationName>
> </jsdl:Application>
> </jsdl:JobDescription>
> </jsdl:JobDefinition>
>
>
> Did I miss something?
>
>
> Romain
>
> _______________________________________________
> geclipse-dev mailing list
> geclipse-dev@xxxxxxxxxxx <mailto:geclipse-dev@xxxxxxxxxxx>
> https://dev.eclipse.org/mailman/listinfo/geclipse-dev
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> geclipse-dev mailing list
> geclipse-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/geclipse-dev
>
_______________________________________________
geclipse-dev mailing list
geclipse-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/geclipse-dev