Let’s take one obscuring factor out of this situation; what happens if you don’t use the .bat file, and instead open a new CMD window and type out the knime.exe -consoleLog ...
command?
I opened a new CMD window and typed the below:
knime.exe -consoleLog -noexit -nosplash -nosave -application org.knime.product.KNIME_BATCH_APPLICATION -reset -workflowDir=“C:/Users/John-k/Documents/Applications/knime-workspace/Z_Batch_Test_1”
Received the below output:
CompilerOracle: exclude javax/swing/text/GlyphView.getBreakSpot
Jul 09, 2019 10:52:28 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http (124) [org.apache.cxf.
transport.http.HTTPTransportFactory, org.apache.cxf.transport.http.HTTPWSDLExtensionLoader, org.apac
he.cxf.transport.http.policy.HTTPClientAssertionBuilder, org.apache.cxf.transport.http.policy.HTTPSe
rverAssertionBuilder, org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]
Jul 09, 2019 10:52:28 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http-hc (125) [org.apache.c
xf.transport.http.HTTPConduitFactory, org.apache.cxf.transport.ConduitInitiator]
Strange, I opened a new CMD window (closed everything else first) and typed the below (this time excluded -nosave, just to see):
knime.exe -consoleLog -noexit -nosplash --application org.knime.product.KNIME_BATCH_APPLICATION -reset -workflowDir=“C:/Users/john-k/Documents/Applications/knime-workspace/Z_Batch_Test_1”
output (a bunch more came up in the log. Also, the KNIME application itselft launched and opened?):
CompilerOracle: exclude javax/swing/text/GlyphView.getBreakSpot
Jul 09, 2019 10:57:49 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addE
xtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http (1
24) [org.apache.cxf.transport.http.HTTPTransportFactory, org.apache.cxf.transpor
t.http.HTTPWSDLExtensionLoader, org.apache.cxf.transport.http.policy.HTTPClientA
ssertionBuilder, org.apache.cxf.transport.http.policy.HTTPServerAssertionBuilder
, org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]
Jul 09, 2019 10:57:49 AM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addE
xtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http-hc
(125) [org.apache.cxf.transport.http.HTTPConduitFactory, org.apache.cxf.transpo
rt.ConduitInitiator]
!SESSION 2019-07-09 10:57:44.402 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_202
java.vendor=AdoptOpenJdk
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: --application org.knime.product.KNIME_BATCH_APPLICATION -r
eset -workflowDir=C:/Users/John-k/Documents/Applications/knime-workspace/Z_Batc
h_Test_1
Command-line arguments: -os win32 -ws win32 -arch x86_64 -consoleLog --applicat
ion org.knime.product.KNIME_BATCH_APPLICATION -reset -workflowDir=C:/Users/john-k
/Documents/Applications/knime-workspace/Z_Batch_Test_1
!ENTRY org.eclipse.ui 2 0 2019-07-09 10:57:50.374
!MESSAGE Warnings while parsing the key bindings from the ‘org.eclipse.ui.comman
ds’ and ‘org.eclipse.ui.bindings’ extension point
!SUBENTRY 1 org.eclipse.ui 2 0 2019-07-09 10:57:50.377
!MESSAGE Cannot bind to an undefined command: plug-in=‘org.knime.workbench.edito
r’, id=‘knime.commands.editor.gridSettings’
!ENTRY org.eclipse.equinox.p2.core 4 0 2019-07-09 10:57:52.527
!MESSAGE Exception during event notification
!STACK 0
java.lang.IllegalArgumentException: Location must be absolute: …
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.checkValidLocation(AbstractRepositoryManager.java:749)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.contains(AbstractRepositoryManager.java:253)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.addRepository(AbstractRepositoryManager.java:166)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.notify(AbstractRepositoryManager.java:820)
at org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEve
nt(ProvisioningEventBus.java:108)
at org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEve
nt(ProvisioningEventBus.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:340)
!ENTRY org.eclipse.equinox.p2.core 4 0 2019-07-09 10:57:52.533
!MESSAGE Exception during event notification
!STACK 0
java.lang.IllegalArgumentException: Location must be absolute: …
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.checkValidLocation(AbstractRepositoryManager.java:749)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.contains(AbstractRepositoryManager.java:253)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.addRepository(AbstractRepositoryManager.java:166)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepository
Manager.notify(AbstractRepositoryManager.java:820)
at org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEve
nt(ProvisioningEventBus.java:108)
at org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEve
nt(ProvisioningEventBus.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:340)
!ENTRY org.eclipse.ui 4 0 2019-07-09 10:57:58.678
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.ClassCastException: org.eclipse.ui.internal.browser.WebBrowserEditor c
annot be cast to org.knime.workbench.editor2.WorkflowEditor
at org.knime.workbench.descriptionview.DescriptionView.attemptToDisplayC
urrentSelectionOrWorkflowMetadata(DescriptionView.java:249)
at org.knime.workbench.descriptionview.DescriptionView.lambda$0(Descript
ionView.java:130)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:37)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.ja
va:182)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4213)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3820)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(Pa
rtRenderingEngine.java:1150)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.ja
va:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(Part
RenderingEngine.java:1039)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Wor
kbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.ja
va:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.jav
a:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.knime.product.rcp.KNIMEApplication.start(KNIMEApplication.java:14
9)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
e.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
lipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
(Also, in this post’s third entry, you said you removed -nosave
but it’s in the above described command… It’s ~fine - it should be considered a legal argument - just trying to understand the timeline of output here… ?)
You’re correct. I originally removed it and then the batch started working.Then, latter added it back and it worked as well, I’m not sure what happened as far as why it didn’t work previously but it does now, maybe i miss-typed in the .bat. Though now it seems per the above tests, adding it or excluding seems to have different log output results 