-
Notifications
You must be signed in to change notification settings - Fork 60
Using results as providers - Calculation failed? #464
Copy link
Copy link
Open
Description
Hello,
I'm having an issue when trying to use results as providers on my project. I received LCA results from a supplier. Results for 3 indicators. so I created a "result" in openLCA and added those indicators and linked them to a flow (image as an example) :
Then I added that flow to a process and linked the provider :
When i try a calculation with the product system of that process I get "calculation" error with this message :
Calculation failed
Installation details
- openLCA version: 2.5.0
- operating system: Windows 11
- os architecture: amd64
- os version: 10.0
- native libraries loaded: false
- with sparse matrix support: false
Full error stack trace
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:395)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1035)
at org.openlca.app.wizards.calculation.CalculationWizard.performFinish(CalculationWizard.java:106)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:837)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:474)
at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:615)
at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:83)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:286)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4338)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1214)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4136)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3724)
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.systems.CalculationDispatch.call(CalculationDispatch.java:43)
at org.openlca.app.editors.systems.CalculationDispatch.call(CalculationDispatch.java:26)
at org.openlca.app.editors.systems.ProductSystemInfoPage.lambda$7(ProductSystemInfoPage.java:118)
at org.openlca.app.util.Controls$2.widgetSelected(Controls.java:109)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:286)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:91)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4338)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1214)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4136)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3724)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1042)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:678)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:583)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at org.openlca.app.rcp.RcpApplication.start(RcpApplication.java:13)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:219)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:149)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:115)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:467)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:298)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:627)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1431)
Caused by: java.lang.IllegalArgumentException: the reference exchange of the result is not a provider flow
at org.openlca.core.matrix.index.TechFlow.of(TechFlow.java:72)
at org.openlca.core.results.providers.ResultModelProvider.<init>(ResultModelProvider.java:33)
at org.openlca.core.results.providers.ResultModelProvider.of(ResultModelProvider.java:29)
at org.openlca.core.math.SystemCalculator.solveSubSystems(SystemCalculator.java:139)
at org.openlca.core.math.SystemCalculator.solve(SystemCalculator.java:79)
at org.openlca.core.math.SystemCalculator.calculateLazy(SystemCalculator.java:69)
at org.openlca.app.wizards.calculation.CalculationWizard.runCalculation(CalculationWizard.java:141)
at org.openlca.app.wizards.calculation.CalculationWizard.lambda$1(CalculationWizard.java:109)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:123)
I guess I did something wrong?
Thanks in advance
Gonzalo
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels