Hi,
I've run into a problem with trying to access a local image file (please refer to the stack trace below). The image shows up fine in the pdf but the error message still shows up. In the onCreate(IImageInstance image, IReportContext context) method of the IImageEventHandler IoAgencyLogoEH, I call image.setFile(<fully qualified filename>).
Thanks for your help,
Yuan
<row id="38">
<property name="height">1.5in</property>
<cell id="39"/>
<cell id="40">
<property name="height">3in</property>
<property name="textAlign">center</property>
<property name="verticalAlign">middle</property>
<image id="654">
<property name="eventHandlerClass">mbxg.liberteclient.customreports.insertionorder.IoAgencyLogoEH</property>
<property name="height">136px</property>
<property name="size">scale-to-item</property>
<property name="source">url</property>
<expression name="uri">
http://foo.com/bar.gif</expression>
</image>
</cell>
<cell id="41"/>
</row>
Oct 28, 2007 5:58:21 PM org.eclipse.birt.report.engine.executor.ExecutionContext evaluate
SEVERE: Unexpected end of file (<inline>#1)
org.mozilla.javascript.EvaluatorException: Unexpected end of file (<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.Parser.reportError(Parser.java:126)
at org.mozilla.javascript.Parser.primaryExpr(Parser.java:2005)
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:1148)
at org.mozilla.javascript.Parser.statementHelper(Parser.java:1134)
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:220)
at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:576)
at org.eclipse.birt.report.engine.executor.ExecutionContext.evaluate(ExecutionContext.java:555)
at org.eclipse.birt.report.engine.executor.ReportItemExecutor.evaluate(ReportItemExecutor.java:274)
at org.eclipse.birt.report.engine.executor.ImageItemExecutor.handleURIImage(ImageItemExecutor.java:181)
at org.eclipse.birt.report.engine.executor.ImageItemExecutor.handleImage(ImageItemExecutor.java:134)
at org.eclipse.birt.report.engine.executor.ImageItemExecutor.execute(ImageItemExecutor.java:104)
at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportItemExecutor.execute(WrappedReportItemExecutor.java:45)
at org.eclipse.birt.report.engine.internal.executor.l18n.LocalizedReportItemExecutor.execute(LocalizedReportItemExecutor.java:33)
at org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:86)
at org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:91)
at org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:91)
at org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:91)
at org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:91)
at org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:91)
at org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:91)
at org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeAll(ReportExecutorUtil.java:91)
at org.eclipse.birt.report.engine.executor.ReportExecutorUtil.executeMasterPage(ReportExecutorUtil.java:70)
at org.eclipse.birt.report.engine.layout.pdf.PDFPageLM.startPage(PDFPageLM.java:240)
at org.eclipse.birt.report.engine.layout.pdf.PDFPageLM.layout(PDFPageLM.java:211)
at org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEngine.layoutReport(PDFReportLayoutEngine.java:64)
at org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEngine.layout(PDFReportLayoutEngine.java:87)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:140)
at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:68)
at mbxg.liberteclient.customreports.insertionorder.Reporter.createDocument(Reporter.java:134)
at mbxg.liberteclient.customreports.insertionorder.Reporter.run(Reporter.java:49)
at mbxg.liberteclient.customreports.insertionorder.BirtTest.testPreBuyIoReport(BirtTest.java:62)
at mbxg.liberteclient.customreports.insertionorder.BirtTest.run(BirtTest.java:41)
at mbxg.liberteclient.customreports.insertionorder.BirtTest.main(BirtTest.java:20)