Project: Birt
Bug 145965 [regression]EvaluatorException when run and render attached report
Reported: 2006-06-08 06:06:37 | Status: closed fixed

Description: EvaluatorException when run and render attached report Steps to reproduce: 1. Render attached report using Engine API: RunTask and RenderTask Result: SEVERE: unterminated string literal (<inline>#1) org.mozilla.javascript.EvaluatorException: unterminated string literal (<inline>#1) at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:95) at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:82) at org.mozilla.javascript.Parser.addError(Parser.java:120) at org.mozilla.javascript.TokenStream.getToken(TokenStream.java:514) at org.mozilla.javascript.Parser.peekToken(Parser.java:138) at org.mozilla.javascript.Parser.primaryExpr(Parser.java:1948) at org.mozilla.javascript.Parser.memberExpr(Parser.java:1637) at org.mozilla.javascript.Parser.unaryExpr(Parser.java:1500) at org.mozilla.javascript.Parser.mulExpr(Parser.java:1429) at org.mozilla.javascript.Parser.addExpr(Parser.java:1410) at org.mozilla.javascript.Parser.shiftExpr(Parser.java:1390) at org.mozilla.javascript.Parser.relExpr(Parser.java:1364) at org.mozilla.javascript.Parser.eqExpr(Parser.java:1320) at org.mozilla.javascript.Parser.bitAndExpr(Parser.java:1309) at org.mozilla.javascript.Parser.bitXorExpr(Parser.java:1298) at org.mozilla.javascript.Parser.bitOrExpr(Parser.java:1287) at org.mozilla.javascript.Parser.andExpr(Parser.java:1275) at org.mozilla.javascript.Parser.orExpr(Parser.java:1263) at org.mozilla.javascript.Parser.condExpr(Parser.java:1246) at org.mozilla.javascript.Parser.assignExpr(Parser.java:1228) at org.mozilla.javascript.Parser.expr(Parser.java:1217) at org.mozilla.javascript.Parser.statementHelper(Parser.java:1104) at org.mozilla.javascript.Parser.statement(Parser.java:616) at org.mozilla.javascript.Parser.parse(Parser.java:347) at org.mozilla.javascript.Parser.parse(Parser.java:287) at org.mozilla.javascript.Context.compileImpl(Context.java:2349) at org.mozilla.javascript.Context.compileString(Context.java:1372) at org.mozilla.javascript.Context.compileString(Context.java:1361) at org.eclipse.birt.core.script.ScriptContext.eval(ScriptContext.java:221) at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:543) at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:512) at org.eclipse.birt.report.engine.data.dte.DteResultSet.evaluate(DteResultSet.java:328) at org.eclipse.birt.report.engine.extension.internal.RowSet.evaluate(RowSet.java:114) at org.eclipse.birt.chart.reportitem.ChartReportItemGenerationImpl.onRowSets(ChartReportItemGenerationImpl.java:166) at org.eclipse.birt.report.engine.executor.ExtendedItemExecutor.generateContent(ExtendedItemExecutor.java:142) at org.eclipse.birt.report.engine.executor.ExtendedItemExecutor.execute(ExtendedItemExecutor.java:93) at org.eclipse.birt.report.engine.executor.ReportExecutorVisitor.visitExtendedItem(ReportExecutorVisitor.java:83) at org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedItemDesign.java:30) at org.eclipse.birt.report.engine.executor.GridItemExecutor.executeCell(GridItemExecutor.java:280) at org.eclipse.birt.report.engine.executor.GridItemExecutor.executeRow(GridItemExecutor.java:211) at org.eclipse.birt.report.engine.executor.GridItemExecutor.execute(GridItemExecutor.java:135) at org.eclipse.birt.report.engine.executor.ReportExecutorVisitor.visitGridItem(ReportExecutorVisitor.java:190) at org.eclipse.birt.report.engine.ir.GridItemDesign.accept(GridItemDesign.java:117) at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(ReportExecutor.java:129) at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(ReportExecutor.java:89) at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:218) at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:127) at org.eclipse.birt.report.tests.engine.api.RenderTaskTest.createReportDocument(RenderTaskTest.java:677) at org.eclipse.birt.report.tests.engine.api.RenderTaskTest.renderReport(RenderTaskTest.java:470) at org.eclipse.birt.report.tests.engine.api.RenderTaskTest.testRender0(RenderTaskTest.java:64) 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 junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:58) at org.eclipse.pde.internal.junit.runtime.CoreTestApplication.run(CoreTestApplication.java:24) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Files changed in fix:
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/ExpressionUtil.java