0 votes
198 views
I am using 2.1.0. I get an error when direct calculating a process even after removing all the products that have more than one provider. I have seen many posts mentioning that the direct calculation option is only for easy systems. Ignoring the fact that I made the system "simple" already, what is the alternative. How do I calculate a product system in a way that is not considered a "direct calculation", and what are the conditions for me to calculate a product system?

The following is the error message I get from the process (without removing ambiguous products):

org.openlca.app.util.ErrorReporterCalculation failedjava.lang.reflect.InvocationTargetException: null
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:395)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1034)
    at org.openlca.app.wizards.calculation.CalculationWizard.performFinish(CalculationWizard.java:106)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:833)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:473)
    at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
    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:4256)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4054)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3642)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
    at org.eclipse.jface.window.Window.open(Window.java:799)
    at org.openlca.app.wizards.calculation.CalculationWizard.open(CalculationWizard.java:61)
    at org.openlca.app.editors.processes.ProcessToolbar$FactCalculationDialog.show(ProcessToolbar.java:134)
    at org.openlca.app.editors.processes.ProcessToolbar.directCalculation(ProcessToolbar.java:109)
    at org.openlca.app.editors.processes.InfoPage.lambda$1(InfoPage.java:81)
    at org.openlca.app.util.Controls$2.widgetSelected(Controls.java:111)
    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:4256)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1066)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4054)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3642)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1155)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:643)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:550)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:171)
    at org.openlca.app.rcp.RcpApplication.start(RcpApplication.java:13)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:402)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
    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:659)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1467) java.lang.NullPointerException: null
    at java.base/java.util.Objects.requireNonNull(Unknown Source)
    at org.openlca.core.matrix.index.TechIndex.of(TechIndex.java:100)
    at org.openlca.core.math.SystemCalculator.solve(SystemCalculator.java:70)
    at org.openlca.core.math.SystemCalculator.calculateEager(SystemCalculator.java:65)
    at org.openlca.app.wizards.calculation.CalculationWizard.runCalculation(CalculationWizard.java:142)
    at org.openlca.app.wizards.calculation.CalculationWizard.lambda$1(CalculationWizard.java:109)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
in openLCA by (120 points)

1 Answer

0 votes
by (126k points)
Hi, as also the warning states when you launch the direct calculation, it is meant for systems where the connections for products are not ambigous, like in the old EcoSpold1 format, and in most input/output databases. If in doubt, run a check in openLCA (check linking properties). Thank you!

If you calculate a product system, you are not using the direct calculation. So if the direct calculation does not work (as indicated by the linking property results) then make a product system and calculate that. Please tell me if this works for you, thank you again.
...