Bar Chart: NullPointerException without erroring out

Hi,

I happen to notice this NullPointerException but the Bar Chart was able to complete it’s task.

2024-09-24 17:09:01,571 ERROR Bar Chart 3:1581:0:1383:0:1379 {"internalError":{"typeName":"java.lang.NullPointerException","message":"View settings were accessed before loaded","stackTrace":["java.base/java.util.Objects.requireNonNull(Unknown Source)","org.knime.base.views.node.BaseViewsNodeView.getViewSettings(BaseViewsNodeView.java:120)","org.knime.base.views.node.BaseViewsNodeView.lambda$2(BaseViewsNodeView.java:115)","org.knime.core.webui.data.InitialDataService.getInitialData(InitialDataService.java:109)","org.knime.core.webui.node.DataServiceManager.callInitialDataService(DataServiceManager.java:143)","org.knime.gateway.api.entity.UIExtensionEnt.<init>(UIExtensionEnt.java:120)","org.knime.gateway.api.entity.NodeViewEnt.<init>(NodeViewEnt.java:168)","org.knime.gateway.api.entity.NodeViewEnt.create(NodeViewEnt.java:104)","org.knime.gateway.api.entity.NodeViewEnt.create(NodeViewEnt.java:94)","org.knime.js.cef.pagebuilder.PageBuilderUtil.initializePageBuilderImageGeneration(PageBuilderUtil.java:153)","org.knime.js.cef.headless.CEFHeadlessUtil.generateContent(CEFHeadlessUtil.java:209)","org.knime.js.cef.headless.CEFHeadlessUtil.generatePng(CEFHeadlessUtil.java:115)","org.knime.base.views.node.BaseViewsNodeModel.execute(BaseViewsNodeModel.java:248)","org.knime.core.node.NodeModel.executeModel(NodeModel.java:588)","org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1286)","org.knime.core.node.Node.execute(Node.java:1049)","org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:594)","org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:98)","org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:198)","org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:117)","org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(ThreadUtils.java:367)","org.knime.core.util.ThreadUtils$RunnableWithContext.run(ThreadUtils.java:221)","java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)","java.base/java.util.concurrent.FutureTask.run(Unknown Source)","org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)","org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:246)"]}}

Here is the threaddump.

240924 Knime bar Chart Null POinter Exception threaddump - Topic 83463.tdump.txt (78.0 KB)

Best
Mike

Hey @mwiegand,

Looking at the error, it looks like it is from View settings were accessed before loaded. Did this continually happen on the same bar chartnode or was it one off thing?

Thanks,
TL

1 Like

As far as I can recall the interactive view was open once. Then I closed it, Reset, retried, failed again. I will try to reproduce it again to give more accurate feedback.

1 Like