unexpected error caused by Lexical error
Posted: 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)
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)