Having some difficulties starting workflow in batch mode

Trying to run workflow in batch mode (in previos installation it works)

knime -consoleLog -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir=“C:\knime-workspace\SNT_DOWNLOAD”

and getting this error
CompilerOracle: exclude javax/swing/text/GlyphView.getBreakSpot
??? 24, 2021 10:26:37 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http (375) [org.apache.cxf.transport.http.HTTPTransportFactory, org.apache.cxf.transport.http.HTTPWSDLExtensionLoader, org.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder, org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder, org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]
??? 24, 2021 10:26:37 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http-hc (376) [org.apache.cxf.transport.http.HTTPConduitFactory, org.apache.cxf.transport.ConduitInitiator]
ERROR main BatchExecutor Unknown option ‘??-startup’
org.knime.core.node.workflow.BatchExecutor$IllegalOptionException: Unknown option ‘??-startup’
at org.knime.core.node.workflow.BatchExecutor.handleCommandlineArgument(BatchExecutor.java:595)
at org.knime.core.node.workflow.BatchExecutor.parseConfigFromArguments(BatchExecutor.java:462)
at org.knime.core.node.workflow.BatchExecutor.processArguments(BatchExecutor.java:443)
at org.knime.core.node.workflow.BatchExecutor.(BatchExecutor.java:413)
at org.knime.core.node.workflow.BatchExecutor.mainRun(BatchExecutor.java:670)
at org.knime.product.headless.KNIMEBatchApplication.runBatchExecutor(KNIMEBatchApplication.java:127)
at org.knime.product.headless.KNIMEBatchApplication.start(KNIMEBatchApplication.java:80)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
??? 24, 2021 10:26:37 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener unregister
INFO: Removing the extensions for bundle 375
??? 24, 2021 10:26:37 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener unregister
INFO: Removing the extensions for bundle 376


Any ideas would be helpful!

Hello, got exactly the same issue with this strange ‘-startup’ error. When I start the GUI, I’ve got a bunch of ERROR Repository Manager, don’t know if it’s related. I keep you up.

Hello, switching back to Knime V.4.1 solves the issue.

hello @vyskrebentsevas and @SoYcD,

welcome to the community. could you please check the path variable for you java installation?

thanks and br,
sven

Hello sven-abx, thanks for the welcome word.
Looks like C:\Program Files (x86)\Common Files\Oracle\Java\javapath

I just tried to switch back again to 4.3, but the issue was the same, still unable to call the batch executor due to this IllegalOptionException ‘-startup’.

Any luck with solution on this issue, as I am also getting this issue, while I am trying to execute the workflow using Python or with Windows command prompt using batch command for one worflow.
Below is the snapshot of the error log from Knime:

BatchExecutor : : : Unknown option ‘http://127.0.0.1:8080/knime/rest/v4/profiles/contents
org.knime.core.node.workflow.BatchExecutor$IllegalOptionException: Unknown option ‘http://127.0.0.1:8080/knime/rest/v4/profiles/contents
at org.knime.core.node.workflow.BatchExecutor.handleCommandlineArgument(BatchExecutor.java:595)
at org.knime.core.node.workflow.BatchExecutor.parseConfigFromArguments(BatchExecutor.java:462)
at org.knime.core.node.workflow.BatchExecutor.processArguments(BatchExecutor.java:443)
at org.knime.core.node.workflow.BatchExecutor.(BatchExecutor.java:413)
at org.knime.core.node.workflow.BatchExecutor.mainRun(BatchExecutor.java:670)
at org.knime.product.headless.KNIMEBatchApplication.runBatchExecutor(KNIMEBatchApplication.java:127)
at org.knime.product.headless.KNIMEBatchApplication.start(KNIMEBatchApplication.java:80)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)

Thanks in advance!

Hi @Kavita_Selkery , you are having issue with running the workflow in command line, yes, but you are not having the same issue as what is mentioned in this thread.

It looks like you are passing illegal arguments in your case, meaning that it did not even try to execute the workflow as opposed to the other cases in the thread where it failed after trying to execute the workflow.

Can you show what is the command line you are trying to execute?

Hi @bruno29a , I am trying below command line:
knime -consoleLog -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir=“C:/Users/User123/knime-workspace/ABC Report”

The error message seems to be complaining that you are passing this as parameter: ‘http://127.0.0.1:8080/knime/rest/v4/profiles/contents’

Is there anywhere you are using this?

@bruno29a

This is the only command I am passing with parameters mentioned same as above. Not sure if its picking this from anywhere else. Or if I need to make some changes to any config file or something.

Hi @Kavita_Selkery , I’m not sure why you are getting this error if you are running only that command line.

This url ‘http://127.0.0.1:8080/knime/rest/v4/profiles/contents’ is a web portal to a Knime server, and by the looks of the ip, is local.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.