Error when configuring Eclipse KNIME plug-in

Hello, I’m just starting with KNIME and Eclipse, I was trying to set up the plug-in by following this Guide and this KNIME SDK Set up instructions to do so, but when i run KNIME from Eclipse I’m getting this error upon launching:

ERROR IEarlyStartup Early startup in 'org.knime.core.eclipseUtil.URLConnectionCacheDisabler from plug-in ‘org.knime.core’ has thrown an uncaught exception: Unable to make field protected static sun.net.www.protocol.http.AuthCache sun.net.www.protocol.http.AuthCacheValue.cache accessible: module java.base does not “opens sun.net.www.protocol.http” to unnamed module @19194d06
ERROR NodeAndCategorySorter CODING PROBLEM After-ID ‘org.knime.google.api.nodes.authconnector.GoogleAuthNodeFactory’ of [org.knime.google.api.sheets.nodes.connector.GoogleSheetsConnectorFactory] does not exist - in plug-in org.knime.google.api
ERROR NodeAndCategorySorter CODING PROBLEM After-ID ‘org.knime.reporting2.nodes.stringtohtml.StringToHtmlNodeFactory’ of [org.knime.reporting2.nodes.pdfwriter.ReportPdfWriterNodeFactory] does not exist - in plug-in org.knime.reporting2
ERROR NumberFormatterNodeFactory CODING PROBLEM Missing or surplus view description

Eclipse version: 2023-03 (4.27.0)
KNIME version: 5.2.5
I don’t understand the error so I would really appreciate it if someone could help me.
Thanks!

You are missing VM arguments in your launch configuration. Make sure that you add all arguments that are also in a standard knime.ini.

Thank you! Now the error related to Early Startup is not appearing anymore, I’m left with these errors though:

ERROR NodeAndCategorySorter CODING PROBLEM After-ID ‘org.knime.google.api.nodes.authconnector.GoogleAuthNodeFactory’ of [org.knime.google.api.sheets.nodes.connector.GoogleSheetsConnectorFactory] does not exist - in plug-in org.knime.google.api
ERROR NodeAndCategorySorter CODING PROBLEM After-ID ‘org.knime.reporting2.nodes.stringtohtml.StringToHtmlNodeFactory’ of [org.knime.reporting2.nodes.pdfwriter.ReportPdfWriterNodeFactory] does not exist - in plug-in org.knime.reporting2

Are these errors still related to the missing arguments?

Hi,

the SDK setup repo comes with a pre-configured launch configuration, the file KNIME Analytics Platform.launch. You can right-click that to run it. This should contain any needed ini-parameters. If that does not work then please let us know.

For the time being, you’re just trying to build the NumberFormatter example, right? The messages related to NodeAndCategorySorter are certainly unrelated to that.

Best,
Ben

1 Like

Hello,
Thank you for the reply, I ran the file but the errors persist. And yes, I’m only trying to build NumberFormatter.

Hello Ben,

I tried running the KNIME Analytics Platform.launch , but unfortunately, I’m still encountering the same errors that I mentioned earlier. I was wondering if you could lend me a hand and assist me with this issue? Your help would be greatly appreciated.

Hello thor,

I’ve uninstalled a bunch of times by now, I’ve also added the VM arguments that were missing but now I’m getting more errors compared to my first post.
I’ve also tried reloading the target platform repeatedly as I saw on other posts and I’ve also ran the KNIME Analytics Platform.launch but neither of those things worked for me.
I would highly appreciate your help, thanks!

errors.txt (12.8 KB)

Hi @Andrea_Li,

It looks like your startup arguments for the AP are somehow mixed up. If plugins fail to load their own classes, indicated by your log.

Please check your debug configuration:

The VM arguments should be:

-server
-Dsun.java2d.d3d=false
-Dosgi.classloader.lock=classname
-XX:+UnlockDiagnosticVMOptions
-XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot
-Dknime.enable.fastload=true
-Dknime.xml.disable_external_entities=true
-ea
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
-Dorg.eclipse.swt.internal.gtk.useCairo=false
-Dorg.eclipse.swt.browser.IEVersion=11001
-Dsun.awt.noerasebackground=true
-Dsun.net.client.defaultReadTimeout=0
-Dorg.eclipse.swt.internal.gtk.disablePrinting
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclientjava
-Dorg.apache.cxf.bus.factory=org.knime.cxf.core.fragment.KNIMECXFBusFactory
-Dorg.apache.cxf.transport.http.forceURLConnection=true
-Dcomm.disable_dynamic_service=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-Xmx2048m
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/java.nio.channels=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
--add-opens=java.base/sun.nio=ALL-UNNAMED
--add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED
--add-opens=java.base/sun.net.www.protocol.http=ALL-UNNAMED
--add-opens=java.base/sun.net.www.protocol.https=ALL-UNNAMED
--add-opens=java.base/java.util.regex=ALL-UNNAMED

If not please adjust them.

Hi @gab1one ,

Thank you for the reply, I tried to launch KNIME using the arguments you posted but I’m still getting these errors

!ENTRY org.eclipse.e4.ui.workbench 4 0 2024-08-06 08:30:53.407
!MESSAGE Unable to retrieve the bundle from the URI: bundleclass://org.eclipse.ui.ide.application/org.eclipse.ui.internal.ide.application.addons.ModelCleanupAddon
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

!ENTRY org.eclipse.ui 2 2 2024-08-06 08:30:59.860
!MESSAGE Invalid preference category path: org.eclipse.equinox.internal.p2.ui.sdk.ProvisioningPreferencePage (bundle: org.eclipse.equinox.p2.ui.sdk.scheduler, page: org.eclipse.equinox.internal.p2.ui.sdk.scheduler.AutomaticUpdatesPreferencePage)
WARN 	 Node Repository Initializer NodeFactoryExtension	 Could not create node factory
org.knime.core.node.extension.InvalidNodeFactoryExtensionException: Node 'org.knime.base.node.preproc.split.SplitNodeFactory' from plugin 'org.knime.base' could not be created. The corresponding plugin bundle could not be activated!
	at org.knime.core.node.extension.NodeFactoryExtension.createFactory(NodeFactoryExtension.java:222)
	at org.knime.core.node.extension.NodeFactoryExtension.getFactory(NodeFactoryExtension.java:177)
	at org.knime.core.node.extension.NodeFactoryExtension.getNodeFactory(NodeFactoryExtension.java:185)
	at org.knime.core.node.extension.NodeSpec.of(NodeSpec.java:163)
	at org.knime.core.node.extension.NodeSpecCache$Initializer.computeNodeSpecIgnoringErrors(NodeSpecCache.java:194)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at org.knime.core.node.extension.NodeSpecCache$Initializer.run(NodeSpecCache.java:166)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.eclipse.core.runtime.CoreException: Plug-in org.knime.base was unable to load class org.knime.base.node.preproc.split.SplitNodeFactory.
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:212)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:198)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:920)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
	at org.knime.core.node.extension.NodeFactoryExtension.createFactory(NodeFactoryExtension.java:202)
	... 14 more
Caused by: java.lang.ClassNotFoundException: org.knime.base.node.preproc.split.SplitNodeFactory cannot be found by org.knime.base_5.2.4.v202405041851
	at org.eclipse.osgi.internal.loader.BundleLoader.generateException(BundleLoader.java:541)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:536)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:416)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:168)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:622)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
	... 18 more
WARN 	 Node Repository Initializer NodeFactoryExtension	 Could not create node factory
org.knime.core.node.extension.InvalidNodeFactoryExtensionException: Node 'org.knime.base.node.preproc.filter.column.FilterColumnNodeFactory' from plugin 'org.knime.base' could not be created. The corresponding plugin bundle could not be activated!
	at org.knime.core.node.extension.NodeFactoryExtension.createFactory(NodeFactoryExtension.java:222)
	at org.knime.core.node.extension.NodeFactoryExtension.getFactory(NodeFactoryExtension.java:177)
	at org.knime.core.node.extension.NodeFactoryExtension.getNodeFactory(NodeFactoryExtension.java:185)
	at org.knime.core.node.extension.NodeSpec.of(NodeSpec.java:163)
	at org.knime.core.node.extension.NodeSpecCache$Initializer.computeNodeSpecIgnoringErrors(NodeSpecCache.java:194)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at org.knime.core.node.extension.NodeSpecCache$Initializer.run(NodeSpecCache.java:166)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.eclipse.core.runtime.CoreException: Plug-in org.knime.base was unable to load class org.knime.base.node.preproc.filter.column.FilterColumnNodeFactory.
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:212)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:198)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:920)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
	at org.knime.core.node.extension.NodeFactoryExtension.createFactory(NodeFactoryExtension.java:202)
	... 14 more
Caused by: java.lang.ClassNotFoundException: org.knime.base.node.preproc.filter.column.FilterColumnNodeFactory cannot be found by org.knime.base_5.2.4.v202405041851
	at org.eclipse.osgi.internal.loader.BundleLoader.generateException(BundleLoader.java:541)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:536)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:416)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:168)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:622)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
	... 18 more
WARN 	 Node Repository Initializer NodeFactoryExtension	 Could not create node factory
org.knime.core.node.extension.InvalidNodeFactoryExtensionException: Node 'org.knime.base.node.preproc.joiner.NewJoinerNodeFactory' from plugin 'org.knime.base' could not be created. The corresponding plugin bundle could not be activated!
	at org.knime.core.node.extension.NodeFactoryExtension.createFactory(NodeFactoryExtension.java:222)
	at org.knime.core.node.extension.NodeFactoryExtension.getFactory(NodeFactoryExtension.java:177)
	at org.knime.core.node.extension.NodeFactoryExtension.getNodeFactory(NodeFactoryExtension.java:185)
	at org.knime.core.node.extension.NodeSpec.of(NodeSpec.java:163)
	at org.knime.core.node.extension.NodeSpecCache$Initializer.computeNodeSpecIgnoringErrors(NodeSpecCache.java:194)
	at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:273)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596)
	at org.knime.core.node.extension.NodeSpecCache$Initializer.run(NodeSpecCache.java:166)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.eclipse.core.runtime.CoreException: Plug-in org.knime.base was unable to load class org.knime.base.node.preproc.joiner.NewJoinerNodeFactory.
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:212)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:198)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:920)
	at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:246)
	at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:63)
	at org.knime.core.node.extension.NodeFactoryExtension.createFactory(NodeFactoryExtension.java:202)
	... 14 more
Caused by: java.lang.ClassNotFoundException: org.knime.base.node.preproc.joiner.NewJoinerNodeFactory cannot be found by org.knime.base_5.2.4.v202405041851
	at org.eclipse.osgi.internal.loader.BundleLoader.generateException(BundleLoader.java:541)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass0(BundleLoader.java:536)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:416)
	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:168)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
	at org.eclipse.osgi.internal.framework.EquinoxBundle.loadClass(EquinoxBundle.java:622)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:196)
	... 18 more
Aug 06, 2024 8:31:08 AM org.apache.tika.config.InitializableProblemHandler$3 handleInitializableProblem
WARNING: J2KImageReader not loaded. JPEG2000 files will not be processed.
See https://pdfbox.apache.org/2.0/dependencies.html#jai-image-io
for optional dependencies.

Aug 06, 2024 8:31:08 AM org.apache.tika.config.InitializableProblemHandler$3 handleInitializableProblem
WARNING: org.xerial's sqlite-jdbc is not loaded.
Please provide the jar on your classpath to parse sqlite files.
See tika-parsers/pom.xml for the correct version.
ERROR	 Worker-0: Workflow Coach loader NodeAndCategorySorter	 CODING PROBLEM	After-ID 'org.knime.google.api.nodes.authconnector.GoogleAuthNodeFactory' of [org.knime.google.api.sheets.nodes.connector.GoogleSheetsConnectorFactory] does not exist - in plug-in org.knime.google.api
ERROR	 Worker-0: Workflow Coach loader NodeAndCategorySorter	 CODING PROBLEM	After-ID 'org.knime.google.api.nodes.authconnector.GoogleAuthNodeFactory' of [org.knime.google.api.sheets.nodes.connector.GoogleSheetsConnectorFactory] does not exist - in plug-in org.knime.google.api
ERROR	 Worker-0: Workflow Coach loader NodeAndCategorySorter	 CODING PROBLEM	After-ID 'org.knime.reporting2.nodes.stringtohtml.StringToHtmlNodeFactory' of [org.knime.reporting2.nodes.pdfwriter.ReportPdfWriterNodeFactory] does not exist - in plug-in org.knime.reporting2
ERROR	 Worker-0: Workflow Coach loader NodeAndCategorySorter	 CODING PROBLEM	After-ID 'org.knime.reporting2.nodes.stringtohtml.StringToHtmlNodeFactory' of [org.knime.reporting2.nodes.pdfwriter.ReportPdfWriterNodeFactory] does not exist - in plug-in org.knime.reporting2

For what it’s worth, I had the same error as @Andrea_Li on both OSX and Windows, setting the debug VM arguments as @gab1one mentioned solved the issues for me.

This was on the knime-sdk-setup release tag analytics-platform/5.2.5 and eclipse 2023-03

For reference, the default VM arguments were

-server
-Dsun.java2d.d3d=false
-Dosgi.classloader.lock=classname
-XX:+UnlockDiagnosticVMOptions
-Dknime.enable.fastload=true
-ea
-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false
-Dorg.eclipse.swt.internal.gtk.useCairo=false
-Dorg.eclipse.swt.browser.IEVersion=11001
-Dsun.awt.noerasebackground=true
-Dorg.eclipse.swt.internal.gtk.disablePrinting
-Dorg.apache.cxf.bus.factory=org.knime.cxf.core.fragment.KNIMECXFBusFactory
-Dcomm.disable_dynamic_service=true
-Xmx2G
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/java.nio.channels=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
--add-opens=java.base/sun.nio=ALL-UNNAMED
--add-opens=java.security.jgss/sun.security.krb5=ALL-UNNAMED
--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED
2 Likes

@Andrea_Li It if helps the error

ERROR NumberFormatterNodeFactory CODING PROBLEM Missing or surplus view description

is being caused by the Node Wizard adding default “views” to the manipulator knimeNode, you can fix this by removing the “views” entry from NumberFormatterNodeFactory.xml

image

1 Like

Hi @frenemie!

Thank you so much for your reply, I’m glad this worked out for you. Sadly, somehow I’m still getting the same errors but I’ll uninstall and install Eclipse, basically do the whole process again and do what @gab1one posted to see if it works this time.

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