0 votes
1.0k views

Dear all, I have a question, I have imported a database from a CSV file from Simapro to my OpenLCA software and when I am trying to assess the environmental impact an error message pop up with the following

java.lang.reflect.InvocationTargetException
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:423)
        at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1059)
        at org.openlca.app.editors.systems.CalculationWizard.performFinish(Unknown Source)
        at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)
        at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
        at org.eclipse.jface.window.Window.open(Window.java:808)
        at org.openlca.app.editors.systems.CalculationWizard.open(Unknown Source)
        at org.openlca.app.editors.systems.ProductSystemInfoPage.lambda$6(Unknown Source)
        at org.openlca.app.util.Controls$1.widgetSelected(Unknown Source)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
        at org.openlca.app.rcp.RcpApplication.start(Unknown Source)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
        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:648)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
    Caused by: java.lang.NullPointerException
        at org.openlca.core.math.SystemCalculator.calculator(SystemCalculator.java:57)
        at org.openlca.core.math.SystemCalculator.calculateContributions(SystemCalculator.java:37)
        at org.openlca.app.editors.systems.CalculationWizard$Calculation.solve(Unknown Source)
        at org.openlca.app.editors.systems.CalculationWizard$Calculation.run(Unknown Source)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)


Please if you could help me to know the reason that error message is shown

Best regards.

in openLCA by

1 Answer

0 votes
by (113k points)
 
Best answer
Hello Oscar,
this import via csv is often difficult since SimaPro does not have unique id numbers, so that it needs some refactoring before a complete and consistent model is created. From what you sent it is hard to see where the issue is, but something essential is missing (thus the Nullpointer exception). If you want you can contact us directly, we have some experiences meanwhile in reading and converting SimaPro models.
Best wishes,
Andreas
by
Thanks a lot for the answer.

How can I contact you directly? is there a email or something to have a direct connection. I`ll be very interested.

Regards
by
Dear Andreas, best regards.

I would really appreciate if you could provide me some information about how can I contact you to get some help in converting mi CSV files in a way they can be imported into openlca.

Thanks a lot in advance
...