Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geclipse-dev] Executable in jsdl description

Hi Romain,

because executable field is part of POSIX extension to JSDL to set this value you should use JSDLJobDescriprion.addPOSIXApplicationDetails method. It takes many parameters, but only 2 of them cannot be null - applicationName and executableFile (remaining parameters allow to specify standard input, output and error files and can be null values).

Good luck,
Kasia

On Tue, 20 May 2008 12:21:55 +0200, Romain <reuillon@xxxxxxxx> wrote:

Hi all,

I am now working on the last nightly build and jobs submission seem to work, thanks.

However, I am trying to submit a job and I get an exception.
I seem that the executable field of the jsdl is not initilized

My jsdl description is the following:

        jsdl.addJobDescription();
        jsdl.addApplication();
        jsdl.setApplicationName("/bin/hostname");
        jsdl.addArgument("CaMarche");
        jsdl.save(file);

After that is if is call this : System.out.println(jsdl.getExecutable());
I get null, but I can find the setExecutable Method.

How can I set the executable?

Cheers,
Rom.

PS: the exception

eu.geclipse.core.reporting.ProblemException: Job submission failed
    at eu.geclipse.glite.WMSClient.submit(WMSClient.java:382)
    at eu.geclipse.glite.WMSClient.submitJob(WMSClient.java:574)
at eu.geclipse.glite.resources.GliteJobAPI.submitJob(GliteJobAPI.java:115) at eu.geclipse.glite.resources.GliteJobService.submitJob(GliteJobService.java:70) at fr.cemagref.simexplorer.ide.osgi.processors.JobLauncherProcessor.process(JobLauncherProcessor.java:484) 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]: AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
 faultSubcode:
 faultString: Stack dump
 faultActor:
 faultNode:
 faultDetail:
{}fault:<methodName>jobRegister</methodName><Timestamp>2008-05-20T12:09:01</Timestamp><ErrorCode>1505</ErrorCode><Description>Executable: Jdl mandatory attribute is missing</Description><FaultCause>AdSemanticMandatoryException: Executable: Jdl mandatory attribute is missing at JobAd::checkSemantic()[/home/glbuild/GLITE_3_1_0_continous/org.glite.jdl.api-cpp/src/requestad/JobAd.cpp:541]</FaultCause><FaultCause> at JobAd::checkSemantic()[/home/glbuild/GLITE_3_1_0_continous/org.glite.jdl.api-cpp/src/requestad/JobAd.cpp:440]</FaultCause><FaultCause> at JobAd::check()[/home/glbuild/GLITE_3_1_0_continous/org.glite.jdl.api-cpp/src/requestad/JobAd.cpp:316]</FaultCause><FaultCause> at regist()[/home/glbuild/GLITE_3_1_0_continous/org.glite.wms.wmproxy/src/server/wmpcoreoperations.cpp:663]</FaultCause><FaultCause> at jobregister()[/home/glbuild/GLITE_3_1_0_continous/org.glite.wms.wmproxy/src/server/wmpcoreoperations.cpp:257]</FaultCause><FaultCause> at jobRegister()[/home/glbuild/GLITE_3_1_0_continous/org.glite.wms.wmproxy/src/server/wmpcoreoperations.cpp:352]</FaultCause>

Stack dump
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104) at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90) at org.glite.wms.wmproxy.GenericFaultType.getDeserializer(GenericFaultType.java:90)
    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.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154) at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84) at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464) at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547) at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157) at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:501) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2740) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
at org.glite.wms.wmproxy.WMProxyStub.jobRegister(WMProxyStub.java:1818)
    at eu.geclipse.glite.WMSClient.submit(WMSClient.java:353)
    at eu.geclipse.glite.WMSClient.submitJob(WMSClient.java:574)
at eu.geclipse.glite.resources.GliteJobAPI.submitJob(GliteJobAPI.java:115) at eu.geclipse.glite.resources.GliteJobService.submitJob(GliteJobService.java:70) at fr.cemagref.simexplorer.ide.osgi.processors.JobLauncherProcessor.process(JobLauncherProcessor.java:484) 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)
_______________________________________________
geclipse-dev mailing list
geclipse-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/geclipse-dev




Back to the top