+1 vote
916 views

Here are the log details

92607mainERRORorg.openlca.app.editors.systems.CalculationWizardCalculation failed
java.lang.reflect.InvocationTargetException
     at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:399)
     at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1035)
     at org.openlca.app.editors.systems.CalculationWizard.performFinish(CalculationWizard.java:135)
     at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:833)
     at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:472)
     at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:622)
     at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
     at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
     at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
     at org.eclipse.jface.window.Window.open(Window.java:799)
     at org.openlca.app.editors.systems.CalculationWizard.open(CalculationWizard.java:85)
     at org.openlca.app.editors.systems.ProductSystemInfoPage.lambda$7(ProductSystemInfoPage.java:117)
     at org.openlca.app.util.Controls$1.widgetSelected(Controls.java:64)
     at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
     at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)
     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056)
     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)
     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
     at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)
     at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
     at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:635)
     at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
     at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559)
     at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
     at org.openlca.app.rcp.RcpApplication.start(RcpApplication.java:16)
     at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
     at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
     at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
     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:660)
     at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
     at org.eclipse.equinox.launcher.Main.run(Main.java:1468)
    Caused by: java.lang.NullPointerException
     at org.openlca.core.math.DataStructures.matrixData(DataStructures.java:125)
     at org.openlca.core.math.SystemCalculator.calculator(SystemCalculator.java:105)
     at org.openlca.core.math.SystemCalculator.calculateContributions(SystemCalculator.java:55)
     at org.openlca.app.editors.systems.CalculationWizard$Calculation.solve(CalculationWizard.java:239)
     at org.openlca.app.editors.systems.CalculationWizard$Calculation.run(CalculationWizard.java:211)
     at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

What should I do?

Any lead would be appreciated.

in openLCA by (180 points)
by (14.0k points)
There is currently a known issue that you get exactly this kind of exception when you try to calculate a model that has no elementary flows: https://github.com/GreenDelta/olca-app/issues/13. Maybe this is the same reason here?

1 Answer

0 votes
by (125k points)

Caused by: java.lang.NullPointerException
     at org.openlca.core.math.DataStructures.matrixData(DataStructures.java:125)

I think your model is probably not well formulated; validate the database and you will then see issues; does this happen with every product system or only with some? What kind of database are you using? Did you import the database from somewhere else? Thank you.

...