Help with Batch Mode Error

commandline
java
batch
#1

Hi, I am trying to run a workflow via windows command prompt (win7 x64) from KNIME 4.0.0 64-bit, though receive the below error pop-up, and the WF does not execute. Do you know how i would fix this error?

Below is the batch command I used:

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”

Below is what the workflow folder looks like:
pic2
Picture of Workflow:
pic3

Thank You,

0 Likes

#2

If you run that batch command from an already opened CMD window, is there anything logged in that window?
If there any useful log information in the .metadata/.log or .metadata/knime/knime.log files in the directory you screenshot’d above?

0 Likes

#3

Thank You @quaeler. As I went to copy paste the log i saw

Unknown option ‘–nosave’

I removed this parameter from the batch command, then the workflow worked.

The command output now is:

    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:107)
    at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:166)
    at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:135)
    at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
    at com.knime.enterprise.server.rest.api.Activator.initializeJaxRSRuntime(Activator.java:55)
    at com.knime.enterprise.server.rest.api.Activator.start(Activator.java:43)
    at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779)
    at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933)
    at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
    at org.eclipse.osgi.container.Module.doStart(Module.java:581)
    at org.eclipse.osgi.container.Module.start(Module.java:449)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468)
    at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:103)
    at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:529)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:328)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:368)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:446)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:564)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.initDependencyManagers(AbstractComponentManager.java:976)
    at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:1003)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:859)
    at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:823)
    at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210)
    at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)
    at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:508)
    at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624)
    at org.knime.workbench.explorer.ExplorerURLStreamHandler.<init>(ExplorerURLStreamHandler.java:134)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
    at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
    at org.eclipse.ecf.internal.filetransfer.Activator.setupProtocolHandlers(Activator.java:98)
    at org.eclipse.ecf.internal.filetransfer.Activator.start(Activator.java:59)
    at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779)
    at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933)
    at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
    at org.eclipse.osgi.container.Module.doStart(Module.java:581)
    at org.eclipse.osgi.container.Module.start(Module.java:449)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468)
    at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:103)
    at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:529)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:328)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:368)
    at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:36)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:442)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at org.knime.core.internal.CorePlugin.start(CorePlugin.java:111)
    at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779)
    at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933)
    at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
    at org.eclipse.osgi.container.Module.doStart(Module.java:581)
    at org.eclipse.osgi.container.Module.start(Module.java:449)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468)
    at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:103)
    at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:529)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:328)
    at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:368)
    at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:36)
    at org.eclipse.osgi.internal.loader.sources.MultiSourcePackage.loadClass(MultiSourcePackage.java:32)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:442)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
    at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
    at java.lang.Class.getConstructor0(Class.java:3075)
    at java.lang.Class.newInstance(Class.java:412)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:763)
    at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:716)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933)
    at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
    at org.eclipse.osgi.container.Module.doStart(Module.java:581)
    at org.eclipse.osgi.container.Module.start(Module.java:449)
    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383)
    at org.knime.product.headless.KNIMEBatchApplication.start(KNIMEBatchApplication.java:74)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
    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:653)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1499)

Caused by: java.lang.ClassNotFoundException: org.apache.aries.blueprint.NamespaceHandler cannot be found by org.apache.cxf.cxf-core_3.0.7.v20180813
-knime
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 178 more
Jul 08, 2019 2:58:47 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer register
WARNING: Aries Blueprint packages not available. So namespaces will not be registered
java.lang.NoClassDefFoundError: org/apache/aries/blueprint/NamespaceHandler
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(ModuleClassLoader.java:276)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:655)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClassImpl(ClasspathManager.java:578)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClassImpl(ClasspathManager.java:538)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:525)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:328)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:368)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:446)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.apache.cxf.jaxrs.blueprint.Activator$1.createNamespaceHandler(Activator.java:33)
at org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer.register(NamespaceHandlerRegisterer.java:39)
at org.apache.cxf.jaxrs.blueprint.Activator.start(Activator.java:36)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:103)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:529)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:328)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:368)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:36)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:442)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:107)
at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:166)
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:135)
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
at com.knime.enterprise.server.rest.api.Activator.initializeJaxRSRuntime(Activator.java:55)
at com.knime.enterprise.server.rest.api.Activator.start(Activator.java:43)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:103)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:529)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:328)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:368)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:446)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:564)
at org.apache.felix.scr.impl.manager.AbstractComponentManager.initDependencyManagers(AbstractComponentManager.java:976)
at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:1003)
at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:859)
at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:823)
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210)
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111)
at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:508)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461)
at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624)
at org.knime.workbench.explorer.ExplorerURLStreamHandler.(ExplorerURLStreamHandler.java:134)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ecf.internal.filetransfer.Activator.setupProtocolHandlers(Activator.java:98)
at org.eclipse.ecf.internal.filetransfer.Activator.start(Activator.java:59)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:103)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:529)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:328)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:368)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:36)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:442)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.knime.core.internal.CorePlugin.start(CorePlugin.java:111)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:468)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:103)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocalClass(ClasspathManager.java:529)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(ModuleClassLoader.java:328)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:368)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClass(SingleSourcePackage.java:36)
at org.eclipse.osgi.internal.loader.sources.MultiSourcePackage.loadClass(MultiSourcePackage.java:32)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:442)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:763)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:716)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:933)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383)
at org.knime.product.headless.KNIMEBatchApplication.start(KNIMEBatchApplication.java:74)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
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:653)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
Caused by: java.lang.ClassNotFoundException: org.apache.aries.blueprint.NamespaceHandler cannot be found by org.apache.cxf.cxf-rt-frontend-jaxrs_3.
0.7
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:484)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 157 more

I saw your last post from a different thread below and added the two lines to the knime.ini file:

The output is now much smaller:

CompilerOracle: exclude javax/swing/text/GlyphView.getBreakSpot
Jul 08, 2019 3:03:18 PM 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.apache.cxf.transport.http.policy.HTTPClientAssertionBuilder, org.apache.cxf.transport.http.policy.
HTTPServerAssertionBuilder, org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]
Jul 08, 2019 3:03:18 PM org.apache.cxf.bus.osgi.CXFExtensionBundleListener addExtensions
INFO: Adding the extensions from bundle org.apache.cxf.cxf-rt-transports-http-hc (125) [org.apache.cxf.transport.http.HTTPConduitFactory, org.apach
e.cxf.transport.ConduitInitiator]

Question: Is this how the final command output should look?
The output doesn’t look like the below picture from: Excutable in Batch Mode


Not sure if I’m still missing an error somewhere?

0 Likes

#4

I don’t see an error in the output you pasted of course… hmm, you don’t see any logging containing BatchExecutor?

Does the knime.exe process finish giving you another prompt in your CMD window?

Is your workflow that you’re attempting to run in batch mode also open in a currently running KNIME desktop application? (it should not be)

Does the user running the knime.exe batch command have the permission to write to the location configured in the CSV Writer node?

0 Likes

#5

I don’t see an error in the output you pasted of course… hmm, you don’t see any logging containing BatchExecutor ?

Hmm, I don’t see anything mentioning batchexecutor. Below is what the two windows look like when i launch the command:

-Text from the two windows:
Cmd:

C:\Users\John-k\Documents\Applications\KNIME\knime_4.0.0>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"

Knime:

CompilerOracle: exclude javax/swing/text/GlyphView.getBreakSpot
Jul 09, 2019 7:30:43 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.
.cxf.transport.http.HTTPWSDLExtensionLoader, org.apache.cxf.transport.http.policy.HTTPClientAssertio
HTTPServerAssertionBuilder, org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorProvider]
Jul 09, 2019 7:30:43 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
e.cxf.transport.ConduitInitiator]

Does the knime.exe process finish giving you another prompt in your CMD window?

When I launch the .bat file, just the two above windows open.

Is your workflow that you’re attempting to run in batch mode also open in a currently running KNIME desktop application? (it should not be)

I checked to make sure KNIME was closed and checked in task manager processes for any KNIME processes and made sure they were closed.

Does the user running the knime.exe batch command have the permission to write to the location configured in the CSV Writer node?

I beleive so. The CSV writer node is set to write to the Desktop, and after the batch file executes, you can see the CSV output written to the desktop/new file created. Any thoughts?

0 Likes

#6

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?

(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… ?)

0 Likes

#7

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 :thinking:

0 Likes

#8

(The second time you did it, what you copied and pasted had --application instead of -application (two dashes instead of one).)

When you did the first version - after that output, did you receive another CMD prompt, or was it just ~hanging?

0 Likes

#9

(The second time you did it, what you copied and pasted had --application instead of -application (two dashes instead of one).)

Ohh, great catch. I didn’t even see that.

When you did the first version - after that output, did you receive another CMD prompt, or was it just ~hanging?

Tried first version again (closed all knime processes):

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”

So I typed the above into the CMD window, then the knime CMD window opens. I can see the CSV output saves to the desktop. Though the knime CMD window just hangs as seen in the below picture, nothing else happens:

0 Likes

#10

That second window is the consoleLog window and is staying open after KNIME finishes by design - from the FAQ:

Causes a new window to be opened containing the log messages and will keep the window open after the execution has finished. You will need to close the window manually and an error message is produced from the Java process which you can safely ignore.

If you remove the two lines you added to the knime.ini file, do you get BatchExecutor output in that second window?

0 Likes

#11

By the way, Thank you for helping @quaeler. Appreciate it.

That second window is the consoleLog window and is staying open after KNIME finishes by design - from the FAQ:

Ok, that makes sense. Thanks for explaining.

If you remove the two lines you added to the knime.ini file, do you get BatchExecutor output in that second window?

If i remove the two lines i added to the knime.ini file, i get the below output ( I copy/pasted everything from the CMD window, though it looks like maybe the CMD cut off some of the output perhaps, not sure):

.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleCl
assLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 178 more
Jul 09, 2019 2:01:14 PM org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer
register
WARNING: Aries Blueprint packages not available. So namespaces will not be regis
tered
java.lang.NoClassDefFoundError: org/apache/aries/blueprint/NamespaceHandler
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.defineClass(Module
ClassLoader.java:276)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineCla
ss(ClasspathManager.java:655)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findClass
Impl(ClasspathManager.java:578)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocal
ClassImpl(ClasspathManager.java:538)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocal
Class(ClasspathManager.java:525)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(Mod
uleClassLoader.java:328)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:368)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:446)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleCl
assLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.apache.cxf.jaxrs.blueprint.Activator$1.createNamespaceHandler(Act
ivator.java:33)
at org.apache.cxf.bus.blueprint.NamespaceHandlerRegisterer.register(Name
spaceHandlerRegisterer.java:39)
at org.apache.cxf.jaxrs.blueprint.Activator.start(Activator.java:36)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleCon
textImpl.java:779)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleCon
textImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(
BundleContextImpl.java:772)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleCon
textImpl.java:729)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(Equino
xBundle.java:933)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.start
Worker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:
468)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass
(EclipseLazyStarter.java:103)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocal
Class(ClasspathManager.java:529)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(Mod
uleClassLoader.java:328)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:368)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClas
s(SingleSourcePackage.java:36)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:442)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleCl
assLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at javax.ws.rs.ext.FactoryFinder.newInstance(FactoryFinder.java:107)
at javax.ws.rs.ext.FactoryFinder.find(FactoryFinder.java:166)
at javax.ws.rs.ext.RuntimeDelegate.findDelegate(RuntimeDelegate.java:135
)
at javax.ws.rs.ext.RuntimeDelegate.getInstance(RuntimeDelegate.java:120)
at com.knime.enterprise.server.rest.api.Activator.initializeJaxRSRuntime
(Activator.java:55)
at com.knime.enterprise.server.rest.api.Activator.start(Activator.java:4
3)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleCon
textImpl.java:779)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleCon
textImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(
BundleContextImpl.java:772)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleCon
textImpl.java:729)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(Equino
xBundle.java:933)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.start
Worker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:
468)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass
(EclipseLazyStarter.java:103)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocal
Class(ClasspathManager.java:529)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(Mod
uleClassLoader.java:328)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:368)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:446)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleCl
assLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBu
ndle.java:564)
at org.apache.felix.scr.impl.manager.AbstractComponentManager.initDepend
encyManagers(AbstractComponentManager.java:976)
at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDep
endencies(AbstractComponentManager.java:1003)
at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceIn
ternal(SingleComponentManager.java:859)
at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(S
ingleComponentManager.java:823)
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(Ser
viceFactoryUse.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGe
tService(ServiceFactoryUse.java:210)
at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getServic
e(ServiceFactoryUse.java:111)
at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getServic
e(ServiceConsumer.java:45)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.get
Service(ServiceRegistrationImpl.java:508)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(
ServiceRegistry.java:461)
at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(Bund
leContextImpl.java:624)
at org.knime.workbench.explorer.ExplorerURLStreamHandler.(Explorer
URLStreamHandler.java:134)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createEx
ecutableExtension(RegistryStrategyOSGI.java:184)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutable
Extension(ExtensionRegistry.java:905)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecuta
bleExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createE
xecutableExtension(ConfigurationElementHandle.java:55)
at org.eclipse.ecf.internal.filetransfer.Activator.setupProtocolHandlers
(Activator.java:98)
at org.eclipse.ecf.internal.filetransfer.Activator.start(Activator.java:
59)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleCon
textImpl.java:779)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleCon
textImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(
BundleContextImpl.java:772)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleCon
textImpl.java:729)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(Equino
xBundle.java:933)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.start
Worker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:
468)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass
(EclipseLazyStarter.java:103)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocal
Class(ClasspathManager.java:529)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(Mod
uleClassLoader.java:328)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:368)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClas
s(SingleSourcePackage.java:36)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:442)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleCl
assLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.knime.core.internal.CorePlugin.start(CorePlugin.java:111)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleCon
textImpl.java:779)
at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleCon
textImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(
BundleContextImpl.java:772)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleCon
textImpl.java:729)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(Equino
xBundle.java:933)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.start
Worker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:
468)
at org.eclipse.osgi.internal.hooks.EclipseLazyStarter.postFindLocalClass
(EclipseLazyStarter.java:103)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.findLocal
Class(ClasspathManager.java:529)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.findLocalClass(Mod
uleClassLoader.java:328)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLo
ader.java:368)
at org.eclipse.osgi.internal.loader.sources.SingleSourcePackage.loadClas
s(SingleSourcePackage.java:36)
at org.eclipse.osgi.internal.loader.sources.MultiSourcePackage.loadClass
(MultiSourcePackage.java:32)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:442)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleCl
assLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActiv
ator(BundleContextImpl.java:763)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleCon
textImpl.java:716)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(Equino
xBundle.java:933)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.start
Worker(EquinoxBundle.java:309)
at org.eclipse.osgi.container.Module.doStart(Module.java:581)
at org.eclipse.osgi.container.Module.start(Module.java:449)
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle
.java:383)
at org.knime.product.headless.KNIMEBatchApplication.start(KNIMEBatchAppl
ication.java:74)
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)
Caused by: java.lang.ClassNotFoundException: org.apache.aries.blueprint.Namespac
eHandler cannot be found by org.apache.cxf.cxf-rt-frontend-jaxrs_3.0.7
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:484)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleCl
assLoader.java:150)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 157 more

0 Likes

#12

Ah ok. So the answer is: specify a preferences file that tells KNIME to log at INFO level if you want to see the BatchExecutor stuff.
Attached is an easy-peasy preferences file.


knime_info_log_prefs.epf.zip (703 Bytes)

0 Likes

#13

Oh, Awesome!

Do I have the command right below?

0 Likes

#14

You do have the command correct (i might be extra-cautious and do .\knime.exe instead of just knime.exe)

I’m perplexed that you’re not seeing any BatchExecutor output. You unzipped the .epf, it’s in the location specified in the path (like if you copy the path from the CMD window and then on a new line do a dir followed by a past, you can see that .epf file listed?), and its readable permissions wise?

Totally random and base-less, does anything change when you make the filepath separator character homogenous on the command (i.e in the value for workflowDir, use \ instead of /?)

0 Likes

#15

Hmm, so strange…

Yes, double-checked the .epf is in the right location and unzipped with read permissions. I changed the command to use all \ as well.

Just tried it on 3.7.2 and it worked (did leave the .epf in 4.0.0, just referenced it, as you can see in the below CMD). See below. Though, it’s still not showing up in 4.0.0. Could it be a setting in KNIME the front-end itself I have wrong?

3.7.2 (works):

4.0.0 (??):

0 Likes

#16

I’m pretty well stumped at this moment… i’ll have to ruminate :- /

0 Likes

#17

I have only come up with a some what laborious experiment which is:

  • download a fresh 4.0.0
  • use a new workspace (unfortunately there is a bug in 4.0.0 where it will not ask you for your workspace directory on first launch, even if you have it so configured - so once launched go to Preferences → General → Startup and Shutdown → Workspaces and make sure Prompt for workspace on startup is checked, and then quit & start 4.0.0 a second time, then specifying a new workspace)
  • make another simple workflow writing out to a CSV file
  • save the workflow, quit, then trying running the batch mode again with the fresh 4.0.0 and new workflow space’s directory

That being hand-waved about, if the workspace you’re already trying this with was created newly with 4.0.0, then this experiment is redundant.

0 Likes

#18

Thank You for your help. I downloaded a new 4.0.0, created a new workspace, re-made a simple CSV workflow, and tried the batch mode again, though, no luck. : / So strange. I’ll think about this more too, maybe another test idea will pop-up.

0 Likes