Interactive View NullPointerException

Hi,

continuing work on a workflow I noticed that Knime throws this error related to a Component Output not finishing …


Resetting the component does not work. I recall that I faced a similiar issue before.

Time Stamp Log
2024-09-25 12:27:01,521 ERROR Bar Chart 3:1581:0:1383:0:1380 {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.(UIExtensionEnt.java:120),org.knime.gateway.api.entity.NodeViewEnt.(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)]}}
2024-09-25 12:27:21,526 ERROR Bar Chart 3:1581:0:1383:0:1380 Timeout during image generation. Employing fallback strategy of capturing a screenshot. Note that the returned image might not be rendered completely.
2024-09-25 12:27:22,209 ERROR Component Output 3:1581:0:1383:0:2 {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.(UIExtensionEnt.java:120),org.knime.gateway.api.entity.NodeViewEnt.(NodeViewEnt.java:168),org.knime.gateway.api.entity.NodeViewEnt.create(NodeViewEnt.java:104),org.knime.gateway.api.entity.NodeViewEnt.create(NodeViewEnt.java:144),org.knime.js.cef.pagebuilder.PageBuilderUtil.lambda$3(PageBuilderUtil.java:180),org.knime.core.wizard.AbstractPageManager.createWizardPageInternal(AbstractPageManager.java:196),org.knime.core.wizard.CompositeViewPageManager.createWizardPage(CompositeViewPageManager.java:140),org.knime.js.cef.pagebuilder.PageBuilderUtil.initializePageBuilderForReportGeneration(PageBuilderUtil.java:182),org.knime.js.cef.headless.CEFHeadlessUtil.generateContent(CEFHeadlessUtil.java:211),org.knime.js.cef.headless.CEFHeadlessUtil.generateReport(CEFHeadlessUtil.java:135),org.knime.reporting2.porttype.ReportPortObject.fromExecutedComponent(ReportPortObject.java:131),org.knime.reporting2.ReportServiceImpl.createOutput(ReportServiceImpl.java:69),org.knime.core.node.port.report.ReportUtil.lambda$0(ReportUtil.java:94),java.base/java.util.Optional.map(Unknown Source),org.knime.core.node.port.report.ReportUtil.computeReportObject(ReportUtil.java:94),org.knime.core.node.workflow.virtual.subnode.VirtualSubNodeOutputNodeModel.execute(VirtualSubNodeOutputNodeModel.java:179),org.knime.core.node.NodeModel.executeModel(NodeModel.java:588),org.knime.core.node.ExtendedScopeNodeModel.executeModel(ExtendedScopeNodeModel.java:86),org.knime.core.node.workflow.virtual.subnode.VirtualSubNodeOutputNodeModel.executeModel(VirtualSubNodeOutputNodeModel.java:163),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)]}}
2024-09-25 12:27:57,357 WARN WizardNodeView Unable to retrieve value from view
2024-09-25 12:28:22,522 ERROR Component Output 3:1581:0:1383:0:2 java.lang.InterruptedException

Threaddump as followss:

240925 Knime Interactive View Nullpointer Exception - Topic 83485.tdump.txt (80.7 KB)

Best
Mike

Thank you @mwiegand for reporting this,

We created a ticket for it: UIEXT-2233

2 Likes

Hi @mwiegand,

As @armingrudd already said - thanks for bringing this to our attention. Unfortunately, we were unable to reproduce the issue as of yet.

  • Would it be possible for you to share the workflow with us (or a minimal example workflow that fails with similar error)?
  • Could you check whether you also run into the issue if you disable image generation / image output ports for the view nodes within the failing component?
  • Can you confirm that you are on AP 5.3.2?

Thanks in advance,

Marc

2 Likes

Hi @marc-bux,

yes, I am using the latest Knime version with all extenisons update. The issue persists since a view versions as the workflow impacted by it I created many month ago.

I am currently out of time to spare. Though, I roughly recall to have shared the workflow (a trimmed down version) with @DanielBog due to privacy concerns if shared the regular way.

Let me know in case the workflow got lost. I will try to find some time in the next days to share it once more.

Best
Mike