unexpected error caused by Lexical error

Post Reply
huma
Posts: 2
Joined: 10 Feb 2015 23:23

unexpected error caused by Lexical error

Post by huma » 10 Feb 2015 23:31

Hi,
I am trying to calculate the analysis of a product system but I always get an unexpected error caused by Lexical error at line 1, column 15. Encountered: <EOF> after : ""
How can I fix it?

Thank you in advance!

The log file shows this:

2809118 main ERROR org.openlca.app.editors.systems.CalculationWizard Calculation failed
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1028)
at org.openlca.app.editors.systems.CalculationWizard.performFinish(Unknown Source)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
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.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.openlca.app.editors.systems.ProductSystemInfoPage$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.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
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:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Caused by: org.openlca.expressions.TokenMgrError: Lexical error at line 1, column 15. Encountered: <EOF> after : ""
at org.openlca.expressions.FormulaParserTokenManager.getNextToken(FormulaParserTokenManager.java:590)
at org.openlca.expressions.FormulaParser.jj_ntk(FormulaParser.java:596)
at org.openlca.expressions.FormulaParser.power(FormulaParser.java:260)
at org.openlca.expressions.FormulaParser.term(FormulaParser.java:241)
at org.openlca.expressions.FormulaParser.realsum(FormulaParser.java:173)
at org.openlca.expressions.FormulaParser.compare(FormulaParser.java:110)
at org.openlca.expressions.FormulaParser.logicalAnd(FormulaParser.java:90)
at org.openlca.expressions.FormulaParser.logicalXor(FormulaParser.java:70)
at org.openlca.expressions.FormulaParser.logicalOr(FormulaParser.java:50)
at org.openlca.expressions.FormulaParser.expand(FormulaParser.java:44)
at org.openlca.expressions.FormulaParser.parse(FormulaParser.java:39)
at org.openlca.expressions.Scope.tryEval(Scope.java:68)
at org.openlca.expressions.Scope.eval(Scope.java:58)
at org.openlca.core.matrix.ExchangeCell.tryEval(ExchangeCell.java:43)
at org.openlca.core.matrix.ExchangeCell.eval(ExchangeCell.java:32)
at org.openlca.core.matrix.ExchangeMatrix$2.apply(ExchangeMatrix.java:86)
at org.openlca.core.matrix.ExchangeMatrix.iterate(ExchangeMatrix.java:125)
at org.openlca.core.matrix.ExchangeMatrix.eval(ExchangeMatrix.java:83)
at org.openlca.core.matrix.Inventory.evalFormulas(Inventory.java:111)
at org.openlca.core.matrix.Inventory.createMatrix(Inventory.java:79)
at org.openlca.core.math.SystemCalculator.doSetUp(SystemCalculator.java:58)
at org.openlca.core.math.SystemCalculator.calculateContributions(SystemCalculator.java:40)
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:121)

aciroth
Posts: 750
Joined: 09 May 2010 23:28

Re: unexpected error caused by Lexical error

Post by aciroth » 11 Feb 2015 14:34

Hi, well this is of course a bit hard to solve from the information you provide, - which database are you using, which product system, which version of openLCA, ... did you do any other modification of the database? If the database and model are ok the analysis works; and openLCA contains measures to prevent ill-specified databases and models, but you can of course change things with the SQL editor for example.
Please let us know.
Thanks,
Andreas

huma
Posts: 2
Joined: 10 Feb 2015 23:23

Re: unexpected error caused by Lexical error

Post by huma » 11 Feb 2015 22:19

Hi,

well that's my very first LCA and I'm modelling the production of tomatoes (cradle-to-grave). I'm using the ProBas database and the latest version of openLCA. I didn't do any modifications. It seems like there was an error in one of the processes I imported from ecoinvent. I deleted that process, now it is possible to calculate the product system. But a lot of processes in my product system show negative LCIA relusts. How is it possible that one process has only negative values in all impact categories?

Thank you very much in advance!
Kind Regards

aciroth
Posts: 750
Joined: 09 May 2010 23:28

Re: unexpected error caused by Lexical error

Post by aciroth » 12 Feb 2015 22:24

Ah thank you - but then you combine ecoinvent (which version, from where - not from nexus I think) with ProbBas? In ProBas, system expansion is quite often used which can lead to negative values.
Hope this helps!
Andreas

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests