0 votes
751 views
Hi deat Openlca team,

when trying to calculate the impacts of my product "quick results" works, however i get an error-message when trying to calculate the Analysis. How can i fix this?
in openLCA by (210 points)

2 Answers

0 votes
by (125k points)
Could you please tell what the error message says? That would be useful.
0 votes
by (210 points)

Thanks for your quick response. First I get:

"the direct calculation creates an in-memory product system of all processes in the database. This only gives correct results when there are unambiguous links between these processes. You can also check the linking properties of the databses under ´Database --> check linking properties"

And then an error message poped up. The corresponding log-file is attached.

by (125k points)
ok, any chance you make this bigger ;)
just copy the text, paste it in your answer, thanks.
by (210 points)
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:136)
        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:4364)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4151)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3768)
        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.processes.ProcessToolbar$FactCalculationDialog.runCalculation(ProcessToolbar.java:149)
        at org.openlca.app.editors.processes.ProcessToolbar$FactCalculationDialog.show(ProcessToolbar.java:136)
        at org.openlca.app.editors.processes.ProcessToolbar.directCalculation(ProcessToolbar.java:110)
        at org.openlca.app.editors.processes.InfoPage.lambda$1(InfoPage.java:84)
        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:4364)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1512)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1535)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1324)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4151)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3768)
        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.NegativeArraySizeException
        at org.openlca.core.matrix.format.DenseMatrix.<init>(DenseMatrix.java:16)
        at org.openlca.core.matrix.format.MatrixConverter.dense(MatrixConverter.java:14)
        at org.openlca.julia.JuliaSolver.invert(JuliaSolver.java:63)
        at org.openlca.julia.JuliaSolver.invert(JuliaSolver.java:10)
        at org.openlca.core.math.LcaCalculator.calculateFull(LcaCalculator.java:95)
        at org.openlca.core.math.SystemCalculator.calculateFull(SystemCalculator.java:61)
        at org.openlca.app.editors.systems.CalculationWizard$Calculation.analyse(CalculationWizard.java:231)
        at org.openlca.app.editors.systems.CalculationWizard$Calculation.run(CalculationWizard.java:207)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
by (125k points)
Thank you! "Caused by: java.lang.NegativeArraySizeException" your system is not making sense, this happens with the ProBas database unfortunately  that you seem to use (from the screenshot), also for products directly in the database (not our fault, this is the database as is published). You should not create a system with autoconnect but build it manually with this database. Or, if you have a very small system (e.g. 4 processes), and really large processes, then 1.10.3 has a bug and cannot calculate, this was fixed in 1.11. Good luck!
by (210 points)
Thanks fotr your reply! what exactly do you mean with buildig it manually?
...