# 5.8 - SLF4J errors in batch mode - How to properly fix?

**URL:** <https://forum.knime.com/t/5-8-slf4j-errors-in-batch-mode-how-to-properly-fix/91841>\
**Category:** KNIME Analytics Platform\
**Created:** [April 22, 2026, 3:45pm UTC](https://forum.knime.com/t/5-8-slf4j-errors-in-batch-mode-how-to-properly-fix/91841 "2026-04-22T15:45:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Camderman106](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/f9ae1b/32.png) [@Camderman106](https://forum.knime.com/u/Camderman106)\
**Post date:** [April 22, 2026, 3:45pm UTC](https://forum.knime.com/t/5-8-slf4j-errors-in-batch-mode-how-to-properly-fix/91841/1 "2026-04-22T15:45:20Z")

</div>

Hi everyone.

At our company we use knime running in automated workflows using batch/cli mode. We have recently upgrade from 5.3 to 5.8 and we are running into some issues .

The main issue seems to be related to the SLF4J logging library which seems to have changed recently. Initially we got lots of errors like this

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/6/a/6a53a04d31dbc6c2a5a8f2a490e87d94fa65f85b.png)

Following that link provided

> **[SLF4J Error Codes](https://www.slf4j.org/codes.html#noProviders)**

We deduced that we needed to add in a ‘no op provider’ and link to it in the knime configuration. Which after some googling we managed to do like this:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/c/2/c2ea032f5392e603ca9df7536ee5b7d38a58d82b.png)

This avoids the logging error but results in others. Now we get a new recurring error when submitting the automated jobs

> !ENTRY org.eclipse.osgi 4 0 2026-04-22 14:59:52.190  
> !MESSAGE Application error  
> !STACK 1  
> java.lang.NoClassDefFoundError: Could not initialize class org.thymeleaf.templateresolver.ClassLoaderTemplateResolver  
> at org.knime.gateway.impl.webui.preview.GenerateSVGWorkflowSaveHook.renderPreviewSVG(GenerateSVGWorkflowSaveHook.java:111)  
> at org.knime.gateway.impl.webui.preview.GenerateSVGWorkflowSaveHook.onSave(GenerateSVGWorkflowSaveHook.java:173)  
> at org.knime.core.node.workflow.WorkflowSaveHook.lambda$2(WorkflowSaveHook.java:154)  
> at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)  
> at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)  
> at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)  
> at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)  
> at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)  
> at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)  
> at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)  
> at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)  
> at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)  
> at org.knime.core.node.workflow.WorkflowSaveHook.runHooks(WorkflowSaveHook.java:152)  
> at org.knime.core.node.workflow.WorkflowManager.save(WorkflowManager.java:9749)  
> at org.knime.core.node.workflow.WorkflowManager.save(WorkflowManager.java:9697)  
> at org.knime.core.node.workflow.BatchExecutor.saveWorkflow(BatchExecutor.java:860)  
> at org.knime.core.node.workflow.BatchExecutor.runOne(BatchExecutor.java:959)  
> at org.knime.core.node.workflow.BatchExecutor.runAll(BatchExecutor.java:899)  
> at org.knime.core.node.workflow.BatchExecutor.mainRun(BatchExecutor.java:673)  
> at org.knime.product.headless.KNIMEBatchApplication.runBatchExecutor(KNIMEBatchApplication.java:138)  
> at org.knime.product.headless.KNIMEBatchApplication.start(KNIMEBatchApplication.java:91)  
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)  
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)  
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)  
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)  
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)  
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)  
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)  
> at java.base/java.lang.reflect.Method.invoke(Unknown Source)  
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:651)  
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:588)  
> at org.eclipse.equinox.launcher.Main.run(Main.java:1459)

The workflow still completes and produces the output, however this still causes issues for us as this error writes to stderr and that is detected as an error by our automation. There should be a way to avoid this as it wasn’t an issue in 5.3

According to co-pilot, it may be because of the way we added the nop.jar file, i.e., that adding it as

> -Xbootclasspath

might be incorrect due to the way java/eclipse/knime handle dependencies. But I (not being a java developer) am unsure the correct way to go about this and I cannot find it documented anywhere.

Can someone please clarify what causes this error, and how to fix it? All help will be appreciated.  
If more information is required let me know

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [July 21, 2026, 3:45pm UTC](https://forum.knime.com/t/5-8-slf4j-errors-in-batch-mode-how-to-properly-fix/91841/2 "2026-07-21T15:45:37Z")

</div>

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