XML Data Source Example fails with BIRT 2.1 [message #176466] |
Tue, 11 July 2006 12:34 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: abushnaq.ricoh-europe.com
Does anyone know if this is a bug or I do something wrong.
With the XML Data Source example that can be found at:
http://www.eclipse.org/birt/phoenix/examples/reports/birt2.1 /xmlds/index.php
Previwing the report or running the report engine with BIRT 2.1 will fail.
Generated report is empty.
Error message:
The following items have errors: Data (id = 44): - There are errors
evaluating script "row["ReportName"]". Error.ScriptEvaluationError ( 1
time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: There are
errors evaluating script "row["ReportName"]". at
...
(If it helps I can add the actual dunp)
It worked with older versions of BIRT.
|
|
|
Re: XML Data Source Example fails with BIRT 2.1 [message #176545 is a reply to message #176466] |
Wed, 12 July 2006 03:21 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Can you post the example you are using.
I downloaded the example and it works fine in Eclipse designer and
row["ReportName"] is no where in the design.
Jason
"Abdalla Bushnaq" <abushnaq@ricoh-europe.com> wrote in message
news:8e42d5e1abf1dc38feb3c8e6b2ac34bd$1@www.eclipse.org...
> Does anyone know if this is a bug or I do something wrong.
> With the XML Data Source example that can be found at:
> http://www.eclipse.org/birt/phoenix/examples/reports/birt2.1 /xmlds/index.php
> Previwing the report or running the report engine with BIRT 2.1 will fail.
> Generated report is empty.
>
> Error message:
> The following items have errors: Data (id = 44): - There are errors
> evaluating script "row["ReportName"]". Error.ScriptEvaluationError ( 1
> time(s) )
> detail : org.eclipse.birt.report.engine.api.EngineException: There are
> errors evaluating script "row["ReportName"]". at ..
>
> (If it helps I can add the actual dunp)
>
> It worked with older versions of BIRT.
>
>
|
|
|
Re: XML Data Source Example fails with BIRT 2.1 [message #177565 is a reply to message #176545] |
Fri, 14 July 2006 07:01 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: abushnaq.ricoh-europe.com
Jason Weathersby wrote:
> Can you post the example you are using.
> I downloaded the example and it works fine in Eclipse designer and
> row["ReportName"] is no where in the design.
> Jason
It is correct that row["ReportName"] is not used in the report and the
report engine fails with such a message. I also found this strang and
thought that it might be related with teh new layer introduced in BIRT 2.1
between the data sets and the tables.
Are you using BIRT 2.1 release version?
I was able to use a similar example with BIRT 2.01 without a problem.
I never tried a BIRT 2.1 beta or release candidate.
If you can run the example and I cannot, then I realy do not understand
what I do wrong.
BIRT should be compatible with Java 5?
There is not much I can realy do wrong because the example was working out
of the box with BIRT 2.01.
I realy would like to use BIRT 2.1 because of some interesting new
features. But currently all what I try with XML data source will fail in
the preview or reporting mode.
|
|
|
Re: XML Data Source Example fails with BIRT 2.1 [message #177661 is a reply to message #177565] |
Fri, 14 July 2006 13:52 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
I am using Java 5 and BIRT 2.1.
Open the report, switch to the xml view copy and paste the results
to this thread. Also if you can post the whole error that would be good.
Jason
"Abdalla Bushnaq" <abushnaq@ricoh-europe.com> wrote in message
news:a60db7f17a70d60ca6cfc172375bde68$1@www.eclipse.org...
> Jason Weathersby wrote:
>
>> Can you post the example you are using.
>> I downloaded the example and it works fine in Eclipse designer and
>> row["ReportName"] is no where in the design.
>
>> Jason
>
> It is correct that row["ReportName"] is not used in the report and the
> report engine fails with such a message. I also found this strang and
> thought that it might be related with teh new layer introduced in BIRT 2.1
> between the data sets and the tables.
> Are you using BIRT 2.1 release version?
> I was able to use a similar example with BIRT 2.01 without a problem.
> I never tried a BIRT 2.1 beta or release candidate.
> If you can run the example and I cannot, then I realy do not understand
> what I do wrong.
> BIRT should be compatible with Java 5?
> There is not much I can realy do wrong because the example was working out
> of the box with BIRT 2.01.
>
> I realy would like to use BIRT 2.1 because of some interesting new
> features. But currently all what I try with XML data source will fail in
> the preview or reporting mode.
>
>
|
|
|
Re: XML Data Source Example fails with BIRT 2.1 [message #177837 is a reply to message #177661] |
Sat, 15 July 2006 08:51 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: abushnaq.d.kamp.net
Thanks for helping,
OK, I redownloaded the demo from
http://download3.eclipse.org/birt/downloads/examples/reports /2.1/xmlds/XMLDS_After.rptdesign
I will post the report copied from my eclipse at the end of this message.
(this is getting realy long. is there a better way to attach sources?)
I also downloaded the image
http://download3.eclipse.org/birt/downloads/examples/reports /2.1/xmlds/Classic-Models-Minimal-M-Trans%20(smaller).png
Then I opened the report in Eclipse with BIRT 2.1 (This is the BIRT full
install).
I see an empty report. It does have a header and so, but no data.
Now to make sure I open the used data set and select "preview result". This
taks quit a while because it si a news feed, but the result will be shown.
I then try to select "View Report" in the menu. The report is generated but
the result is emty (looks same as in preview with header information but no
data) and has following error:
The following items have errors:
Data (id = 76):
- There are errors evaluating script "row["Channel Title"]".
Error.ScriptEvaluationError ( 1 time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: There are
errors evaluating script "row["Channel Title"]". at
org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:572)
at
org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:534)
at
org.eclipse.birt.report.engine.internal.executor.doc.Abstrac tReportReader$1.visitData(AbstractReportReader.java:320)
at
org.eclipse.birt.report.engine.content.impl.DataContent.acce pt(DataContent.java:111)
at
org.eclipse.birt.report.engine.content.ContentVisitorAdapter .visit(ContentVisitorAdapter.java:9)
at
org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.initializeContent(ReportItemReader.java:237)
at
org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.execute(ReportItemReader.java:57)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:90)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:77)
at
org.eclipse.birt.report.engine.internal.document.v3.ReportCo ntentLoaderV3.loadPage(ReportContentLoaderV3.java:50)
at
org.eclipse.birt.report.engine.internal.document.ReportConte ntLoader.loadPage(ReportContentLoader.java:56)
at
org.eclipse.birt.report.engine.api.impl.RenderTask.doRender( RenderTask.java:223)
at
org.eclipse.birt.report.engine.api.impl.RenderTask$PageRende r.render(RenderTask.java:593)
at
org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:524)
at org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
Source) at
org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
Source) at
org.eclipse.birt.report.service.BirtViewerReportService.getP age(Unknown
Source) at
org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.doExecution(Unknown
Source) at
org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.__execute(Unknown
Source) at
org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(Unknown
Source) at
org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(Unknown
Source) at
org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(Unknown
Source) at
org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleGetPage(Unknown
Source) 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.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(Unknown
Source) at
org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(Unknown
Source) 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.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
at
org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453) at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 ) at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699) at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(Unknown
Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995) at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve.java:246)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995) at
org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2422)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.eclipse.tomcat.internal.EclipseErrorReportValve.invoke(E clipseErrorReportValve.java:153)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995) at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995) at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:199) at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:828)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:700)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)Caused by:
java.lang.NullPointerException at
org.eclipse.birt.data.engine.impl.document.util.ExprResultSe t.getValue(ExprResultSet.java:131)
at
org.eclipse.birt.data.engine.impl.document.ResultIterator.ge tValue(ResultIterator.java:151)
at
org.eclipse.birt.report.engine.data.dte.DteResultSet.getValu e(DteResultSet.java:266)
at
org.eclipse.birt.report.engine.data.dte.NativeRowObject.get( NativeRowObject.java:90)
at
org.mozilla.javascript.ScriptableObject.getProperty(Scriptab leObject.java:1263)
at
org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1301)
at
org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1283)
at org.mozilla.javascript.gen.c28._c0(<inline>:1) at
org.mozilla.javascript.gen.c28.call(<inline>) at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:304) at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2769) at
org.mozilla.javascript.gen.c28.call(<inline>) at
org.mozilla.javascript.gen.c28.exec(<inline>) at
org.eclipse.birt.core.script.ScriptContext.eval(ScriptContex t.java:224) at
org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:565)
.... 85 more
Data (id = 77):
- There are errors evaluating script "row["Channel Description"]".
Error.ScriptEvaluationError ( 1 time(s) )
detail : org.eclipse.birt.report.engine.api.EngineException: There are
errors evaluating script "row["Channel Description"]". at
org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:572)
at
org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:534)
at
org.eclipse.birt.report.engine.internal.executor.doc.Abstrac tReportReader$1.visitData(AbstractReportReader.java:320)
at
org.eclipse.birt.report.engine.content.impl.DataContent.acce pt(DataContent.java:111)
at
org.eclipse.birt.report.engine.content.ContentVisitorAdapter .visit(ContentVisitorAdapter.java:9)
at
org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.initializeContent(ReportItemReader.java:237)
at
org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.execute(ReportItemReader.java:57)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:90)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:77)
at
org.eclipse.birt.report.engine.internal.document.v3.ReportCo ntentLoaderV3.loadPage(ReportContentLoaderV3.java:50)
at
org.eclipse.birt.report.engine.internal.document.ReportConte ntLoader.loadPage(ReportContentLoader.java:56)
at
org.eclipse.birt.report.engine.api.impl.RenderTask.doRender( RenderTask.java:223)
at
org.eclipse.birt.report.engine.api.impl.RenderTask$PageRende r.render(RenderTask.java:593)
at
org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:524)
at org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
Source) at
org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
Source) at
org.eclipse.birt.report.service.BirtViewerReportService.getP age(Unknown
Source) at
org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.doExecution(Unknown
Source) at
org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.__execute(Unknown
Source) at
org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(Unknown
Source) at
org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(Unknown
Source) at
org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(Unknown
Source) at
org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleGetPage(Unknown
Source) 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.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(Unknown
Source) at
org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(Unknown
Source) 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.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
at
org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453) at
org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 ) at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699) at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(Unknown
Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995) at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve.java:246)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995) at
org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2422)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.eclipse.tomcat.internal.EclipseErrorReportValve.invoke(E clipseErrorReportValve.java:153)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995) at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995) at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:199) at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:828)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:700)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:584)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)Caused by:
java.lang.NullPointerException at
org.eclipse.birt.data.engine.impl.document.util.ExprResultSe t.getValue(ExprResultSet.java:131)
at
org.eclipse.birt.data.engine.impl.document.ResultIterator.ge tValue(ResultIterator.java:151)
at
org.eclipse.birt.report.engine.data.dte.DteResultSet.getValu e(DteResultSet.java:266)
at
org.eclipse.birt.report.engine.data.dte.NativeRowObject.get( NativeRowObject.java:90)
at
org.mozilla.javascript.ScriptableObject.getProperty(Scriptab leObject.java:1263)
at
org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1301)
at
org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1283)
at org.mozilla.javascript.gen.c29._c0(<inline>:1) at
org.mozilla.javascript.gen.c29.call(<inline>) at
org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:304) at
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2769) at
org.mozilla.javascript.gen.c29.call(<inline>) at
org.mozilla.javascript.gen.c29.exec(<inline>) at
org.eclipse.birt.core.script.ScriptContext.eval(ScriptContex t.java:224) at
org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:565)
.... 85 more
And new comes the actual report taken from the XML source tab from Eclipse
report designer:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Written by Eclipse BIRT 2.0 -->
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.2"
id="1">
<property name="createdBy">Eclipse BIRT Designer Version
2.1.0.N20060531-1258 Build <20060531-1258></property>
<property name="units">in</property>
<property name="comments">Copyright (c) 2006 Actuate Corporation.</property>
<data-sources>
<oda-data-source extensionID="org.eclipse.birt.report.data.oda.xml"
name="Eclipse News Feed" id="48">
<text-property name="displayName">Eclipse News Feed</text-property>
<property
name="FILELIST">http://www.eclipse.org/home/eclipsenews.rss</property>
<property name="SCHEMAFILELIST"></property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set extensionID="org.eclipse.birt.report.data.oda.xml.dataSet"
name="Eclise News Headlines" id="49">
<text-property name="displayName">Eclise News Headlines</text-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">Channel Title</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">Channel URL</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">Channel Description</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">Channel Image URL</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">5</property>
<property name="name">News Item Headline</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">6</property>
<property name="name">Link To News Item</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">7</property>
<property name="name">Short Description Of News Item</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">8</property>
<property name="name">Publish Date of News Item</property>
<property name="dataType">string</property>
</structure>
</list-property>
</structure>
<property name="dataSource">Eclipse News Feed</property>
<property
name="queryText">table0#-TNAME-#table0#:#[/rss/channel/item]#:#{Channel
Title;String;../title},{Channel URL;String;../link},{Channel
Description;String;../description},{Channel Image
URL;String;../image/url},{News Item Headline;String;/title},{Link To News
Item;String;/link},{Short Description Of News
Item;String;/description},{Publish Date of News
Item;String;/pubDate}</property>
<property name="MAX_ROW">-1</property>
<property
name="XML_FILE">http://www.eclipse.org/home/eclipsenews.rss</property>
</oda-data-set>
</data-sets>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<value-of>new
Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<grid id="4">
<property name="width">100%</property>
<column id="5"/>
<column id="6"/>
<row id="7">
<cell id="8">
<image id="10">
<expression name="uri">"Classic-Models-Minimal-M-Trans
(smaller).png"</expression>
</image>
</cell>
<cell id="9">
<text id="11">
<property name="fontFamily">"Arial"</property>
<property name="fontSize">x-large</property>
<property name="fontWeight">bold</property>
<property name="textAlign">right</property>
<property name="contentType">html</property>
<text-property name="content"><![CDATA[News Feed Using XML Data
Source]]></text-property>
</text>
</cell>
</row>
</grid>
<table id="50">
<property name="fontFamily">"Arial"</property>
<property name="width">100%</property>
<property name="dataSet">Eclise News Headlines</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">Channel Title</property>
<expression name="expression">dataSetRow["Channel Title"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">Channel URL</property>
<expression name="expression">dataSetRow["Channel URL"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">Channel Description</property>
<expression name="expression">dataSetRow["Channel Description"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">Channel Image URL</property>
<expression name="expression">dataSetRow["Channel Image URL"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">News Item Headline</property>
<expression name="expression">dataSetRow["News Item Headline"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">Link To News Item</property>
<expression name="expression">dataSetRow["Link To News Item"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">Short Description Of News Item</property>
<expression name="expression">dataSetRow["Short Description Of News
Item"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">Publish Date of News Item</property>
<expression name="expression">dataSetRow["Publish Date of News
Item"]</expression>
<property name="dataType">string</property>
</structure>
</list-property>
<column id="63">
<property name="width">2.989in</property>
</column>
<column id="64">
<property name="width">3in</property>
</column>
<header>
<row id="51">
<cell id="52">
<property name="colSpan">2</property>
<property name="rowSpan">1</property>
<grid id="66">
<property name="width">100%</property>
<column id="67">
<property name="width">1.583in</property>
</column>
<column id="68">
<property name="width">4.333in</property>
</column>
<row id="69">
<cell id="70">
<image id="75">
<expression name="uri">row["Channel Image URL"]</expression>
</image>
</cell>
<cell id="71">
<data id="76">
<property name="fontWeight">bold</property>
<property name="resultSetColumn">Channel Title</property>
<structure name="action">
<property name="linkType">hyperlink</property>
<expression name="uri">row["Channel URL"]</expression>
<property name="targetWindow">_blank</property>
</structure>
</data>
</cell>
</row>
<row id="72">
<cell id="73">
<property name="colSpan">2</property>
<property name="rowSpan">1</property>
<data id="77">
<property name="fontWeight">bold</property>
<property name="resultSetColumn">Channel Description</property>
</data>
</cell>
</row>
</grid>
</cell>
</row>
</header>
<detail>
<row id="54">
<cell id="55">
<grid id="78">
<property name="width">100%</property>
<column id="79"/>
<row id="80">
<cell id="81">
<data id="84">
<property name="fontWeight">bold</property>
<property name="resultSetColumn">News Item Headline</property>
<structure name="action">
<property name="linkType">hyperlink</property>
<expression name="uri">row["Link To News Item"]</expression>
<property name="targetWindow">_blank</property>
</structure>
</data>
</cell>
</row>
<row id="82">
<cell id="83">
<data id="85">
<property name="fontSize">8pt</property>
<property name="fontStyle">italic</property>
<property name="resultSetColumn">Publish Date of News Item</property>
</data>
</cell>
</row>
</grid>
</cell>
<cell id="56">
<text-data id="87">
<property name="fontSize">8pt</property>
<expression name="valueExpr">row["Short Description Of News
Item"]</expression>
<property name="contentType">html</property>
</text-data>
</cell>
</row>
<row id="57">
<cell id="58">
<property name="colSpan">2</property>
<property name="rowSpan">1</property>
<text id="65">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<HR>]]></text-property>
</text>
</cell>
</row>
</detail>
<footer>
<row id="60">
<cell id="61"/>
<cell id="62"/>
</row>
</footer>
</table>
</body>
</report>
"Jason Weathersby" <jweathersby@actuate.com> schrieb im Newsbeitrag
news:e987i0$4a0$1@utils.eclipse.org...
>I am using Java 5 and BIRT 2.1.
> Open the report, switch to the xml view copy and paste the results
> to this thread. Also if you can post the whole error that would be good.
>
> Jason
|
|
|
Re: XML Data Source Example fails with BIRT 2.1 [message #178037 is a reply to message #177837] |
Mon, 17 July 2006 15:03 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
I cut your report and pasted into my 2.1 install and I am getting line feeds
in the xml design.
Did you download it by right clicking and saving as...? Don't open it and
cut and paste.
When you right click and save as make sure you change the file extension to
rptdesign.
Jason
"Abdalla Bushnaq" <abushnaq@d.kamp.net> wrote in message
news:e9ab4k$6mt$1@utils.eclipse.org...
> Thanks for helping,
> OK, I redownloaded the demo from
> http://download3.eclipse.org/birt/downloads/examples/reports /2.1/xmlds/XMLDS_After.rptdesign
> I will post the report copied from my eclipse at the end of this message.
> (this is getting realy long. is there a better way to attach sources?)
> I also downloaded the image
> http://download3.eclipse.org/birt/downloads/examples/reports /2.1/xmlds/Classic-Models-Minimal-M-Trans%20(smaller).png
>
> Then I opened the report in Eclipse with BIRT 2.1 (This is the BIRT full
> install).
> I see an empty report. It does have a header and so, but no data.
> Now to make sure I open the used data set and select "preview result".
> This taks quit a while because it si a news feed, but the result will be
> shown.
> I then try to select "View Report" in the menu. The report is generated
> but the result is emty (looks same as in preview with header information
> but no data) and has following error:
>
> The following items have errors:
>
>
> Data (id = 76):
> - There are errors evaluating script "row["Channel Title"]".
> Error.ScriptEvaluationError ( 1 time(s) )
> detail : org.eclipse.birt.report.engine.api.EngineException: There are
> errors evaluating script "row["Channel Title"]". at
> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:572)
> at
> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:534)
> at
> org.eclipse.birt.report.engine.internal.executor.doc.Abstrac tReportReader$1.visitData(AbstractReportReader.java:320)
> at
> org.eclipse.birt.report.engine.content.impl.DataContent.acce pt(DataContent.java:111)
> at
> org.eclipse.birt.report.engine.content.ContentVisitorAdapter .visit(ContentVisitorAdapter.java:9)
> at
> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.initializeContent(ReportItemReader.java:237)
> at
> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.execute(ReportItemReader.java:57)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:90)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:77)
> at
> org.eclipse.birt.report.engine.internal.document.v3.ReportCo ntentLoaderV3.loadPage(ReportContentLoaderV3.java:50)
> at
> org.eclipse.birt.report.engine.internal.document.ReportConte ntLoader.loadPage(ReportContentLoader.java:56)
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask.doRender( RenderTask.java:223)
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRende r.render(RenderTask.java:593)
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:524)
> at
> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
> Source) at
> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
> Source) at
> org.eclipse.birt.report.service.BirtViewerReportService.getP age(Unknown
> Source) at
> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.doExecution(Unknown
> Source) at
> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.__execute(Unknown
> Source) at
> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(Unknown
> Source) at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(Unknown
> Source) at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(Unknown
> Source) at
> org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleGetPage(Unknown
> Source) 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.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(Unknown
> Source) at
> org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(Unknown
> Source) 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.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
> at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453) at
> org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 ) at
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699) at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(Unknown
> Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve.java:246)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2422)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
> at
> org.eclipse.tomcat.internal.EclipseErrorReportValve.invoke(E clipseErrorReportValve.java:153)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:199)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:828)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:700)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:584)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:683)
> at java.lang.Thread.run(Unknown Source)Caused by:
> java.lang.NullPointerException at
> org.eclipse.birt.data.engine.impl.document.util.ExprResultSe t.getValue(ExprResultSet.java:131)
> at
> org.eclipse.birt.data.engine.impl.document.ResultIterator.ge tValue(ResultIterator.java:151)
> at
> org.eclipse.birt.report.engine.data.dte.DteResultSet.getValu e(DteResultSet.java:266)
> at
> org.eclipse.birt.report.engine.data.dte.NativeRowObject.get( NativeRowObject.java:90)
> at
> org.mozilla.javascript.ScriptableObject.getProperty(Scriptab leObject.java:1263)
> at
> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1301)
> at
> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1283)
> at org.mozilla.javascript.gen.c28._c0(<inline>:1) at
> org.mozilla.javascript.gen.c28.call(<inline>) at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:304)
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2769)
> at org.mozilla.javascript.gen.c28.call(<inline>) at
> org.mozilla.javascript.gen.c28.exec(<inline>) at
> org.eclipse.birt.core.script.ScriptContext.eval(ScriptContex t.java:224) at
> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:565)
> ... 85 more
>
>
> Data (id = 77):
> - There are errors evaluating script "row["Channel Description"]".
> Error.ScriptEvaluationError ( 1 time(s) )
> detail : org.eclipse.birt.report.engine.api.EngineException: There are
> errors evaluating script "row["Channel Description"]". at
> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:572)
> at
> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:534)
> at
> org.eclipse.birt.report.engine.internal.executor.doc.Abstrac tReportReader$1.visitData(AbstractReportReader.java:320)
> at
> org.eclipse.birt.report.engine.content.impl.DataContent.acce pt(DataContent.java:111)
> at
> org.eclipse.birt.report.engine.content.ContentVisitorAdapter .visit(ContentVisitorAdapter.java:9)
> at
> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.initializeContent(ReportItemReader.java:237)
> at
> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.execute(ReportItemReader.java:57)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:90)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:77)
> at
> org.eclipse.birt.report.engine.internal.document.v3.ReportCo ntentLoaderV3.loadPage(ReportContentLoaderV3.java:50)
> at
> org.eclipse.birt.report.engine.internal.document.ReportConte ntLoader.loadPage(ReportContentLoader.java:56)
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask.doRender( RenderTask.java:223)
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRende r.render(RenderTask.java:593)
> at
> org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:524)
> at
> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
> Source) at
> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
> Source) at
> org.eclipse.birt.report.service.BirtViewerReportService.getP age(Unknown
> Source) at
> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.doExecution(Unknown
> Source) at
> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.__execute(Unknown
> Source) at
> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(Unknown
> Source) at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(Unknown
> Source) at
> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(Unknown
> Source) at
> org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleGetPage(Unknown
> Source) 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.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(Unknown
> Source) at
> org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(Unknown
> Source) 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.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
> at
> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
> at
> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
> at
> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453) at
> org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 ) at
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699) at
> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(Unknown
> Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at
> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve.java:246)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2422)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
> at
> org.eclipse.tomcat.internal.EclipseErrorReportValve.invoke(E clipseErrorReportValve.java:153)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
> at
> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
> at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:199)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:828)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:700)
> at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:584)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:683)
> at java.lang.Thread.run(Unknown Source)Caused by:
> java.lang.NullPointerException at
> org.eclipse.birt.data.engine.impl.document.util.ExprResultSe t.getValue(ExprResultSet.java:131)
> at
> org.eclipse.birt.data.engine.impl.document.ResultIterator.ge tValue(ResultIterator.java:151)
> at
> org.eclipse.birt.report.engine.data.dte.DteResultSet.getValu e(DteResultSet.java:266)
> at
> org.eclipse.birt.report.engine.data.dte.NativeRowObject.get( NativeRowObject.java:90)
> at
> org.mozilla.javascript.ScriptableObject.getProperty(Scriptab leObject.java:1263)
> at
> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1301)
> at
> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1283)
> at org.mozilla.javascript.gen.c29._c0(<inline>:1) at
> org.mozilla.javascript.gen.c29.call(<inline>) at
> org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:304)
> at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2769)
> at org.mozilla.javascript.gen.c29.call(<inline>) at
> org.mozilla.javascript.gen.c29.exec(<inline>) at
> org.eclipse.birt.core.script.ScriptContext.eval(ScriptContex t.java:224) at
> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:565)
> ... 85 more
>
> And new comes the actual report taken from the XML source tab from Eclipse
> report designer:
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!-- Written by Eclipse BIRT 2.0 -->
>
> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.2"
> id="1">
>
> <property name="createdBy">Eclipse BIRT Designer Version
> 2.1.0.N20060531-1258 Build <20060531-1258></property>
>
> <property name="units">in</property>
>
> <property name="comments">Copyright (c) 2006 Actuate
> Corporation.</property>
>
> <data-sources>
>
> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.xml"
> name="Eclipse News Feed" id="48">
>
> <text-property name="displayName">Eclipse News Feed</text-property>
>
> <property
> name="FILELIST">http://www.eclipse.org/home/eclipsenews.rss</property>
>
> <property name="SCHEMAFILELIST"></property>
>
> </oda-data-source>
>
> </data-sources>
>
> <data-sets>
>
> <oda-data-set extensionID="org.eclipse.birt.report.data.oda.xml.dataSet"
> name="Eclise News Headlines" id="49">
>
> <text-property name="displayName">Eclise News Headlines</text-property>
>
> <structure name="cachedMetaData">
>
> <list-property name="resultSet">
>
> <structure>
>
> <property name="position">1</property>
>
> <property name="name">Channel Title</property>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="position">2</property>
>
> <property name="name">Channel URL</property>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="position">3</property>
>
> <property name="name">Channel Description</property>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="position">4</property>
>
> <property name="name">Channel Image URL</property>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="position">5</property>
>
> <property name="name">News Item Headline</property>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="position">6</property>
>
> <property name="name">Link To News Item</property>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="position">7</property>
>
> <property name="name">Short Description Of News Item</property>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="position">8</property>
>
> <property name="name">Publish Date of News Item</property>
>
> <property name="dataType">string</property>
>
> </structure>
>
> </list-property>
>
> </structure>
>
> <property name="dataSource">Eclipse News Feed</property>
>
> <property
> name="queryText">table0#-TNAME-#table0#:#[/rss/channel/item]#:#{Channel
> Title;String;../title},{Channel URL;String;../link},{Channel
> Description;String;../description},{Channel Image
> URL;String;../image/url},{News Item Headline;String;/title},{Link To News
> Item;String;/link},{Short Description Of News
> Item;String;/description},{Publish Date of News
> Item;String;/pubDate}</property>
>
> <property name="MAX_ROW">-1</property>
>
> <property
> name="XML_FILE">http://www.eclipse.org/home/eclipsenews.rss</property>
>
> </oda-data-set>
>
> </data-sets>
>
> <page-setup>
>
> <simple-master-page name="Simple MasterPage" id="2">
>
> <page-footer>
>
> <text id="3">
>
> <property name="contentType">html</property>
>
> <text-property name="content"><![CDATA[<value-of>new
> Date()</value-of>]]></text-property>
>
> </text>
>
> </page-footer>
>
> </simple-master-page>
>
> </page-setup>
>
> <body>
>
> <grid id="4">
>
> <property name="width">100%</property>
>
> <column id="5"/>
>
> <column id="6"/>
>
> <row id="7">
>
> <cell id="8">
>
> <image id="10">
>
> <expression name="uri">"Classic-Models-Minimal-M-Trans
> (smaller).png"</expression>
>
> </image>
>
> </cell>
>
> <cell id="9">
>
> <text id="11">
>
> <property name="fontFamily">"Arial"</property>
>
> <property name="fontSize">x-large</property>
>
> <property name="fontWeight">bold</property>
>
> <property name="textAlign">right</property>
>
> <property name="contentType">html</property>
>
> <text-property name="content"><![CDATA[News Feed Using XML Data
> Source]]></text-property>
>
> </text>
>
> </cell>
>
> </row>
>
> </grid>
>
> <table id="50">
>
> <property name="fontFamily">"Arial"</property>
>
> <property name="width">100%</property>
>
> <property name="dataSet">Eclise News Headlines</property>
>
> <list-property name="boundDataColumns">
>
> <structure>
>
> <property name="name">Channel Title</property>
>
> <expression name="expression">dataSetRow["Channel Title"]</expression>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="name">Channel URL</property>
>
> <expression name="expression">dataSetRow["Channel URL"]</expression>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="name">Channel Description</property>
>
> <expression name="expression">dataSetRow["Channel
> Description"]</expression>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="name">Channel Image URL</property>
>
> <expression name="expression">dataSetRow["Channel Image URL"]</expression>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="name">News Item Headline</property>
>
> <expression name="expression">dataSetRow["News Item
> Headline"]</expression>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="name">Link To News Item</property>
>
> <expression name="expression">dataSetRow["Link To News Item"]</expression>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="name">Short Description Of News Item</property>
>
> <expression name="expression">dataSetRow["Short Description Of News
> Item"]</expression>
>
> <property name="dataType">string</property>
>
> </structure>
>
> <structure>
>
> <property name="name">Publish Date of News Item</property>
>
> <expression name="expression">dataSetRow["Publish Date of News
> Item"]</expression>
>
> <property name="dataType">string</property>
>
> </structure>
>
> </list-property>
>
> <column id="63">
>
> <property name="width">2.989in</property>
>
> </column>
>
> <column id="64">
>
> <property name="width">3in</property>
>
> </column>
>
> <header>
>
> <row id="51">
>
> <cell id="52">
>
> <property name="colSpan">2</property>
>
> <property name="rowSpan">1</property>
>
> <grid id="66">
>
> <property name="width">100%</property>
>
> <column id="67">
>
> <property name="width">1.583in</property>
>
> </column>
>
> <column id="68">
>
> <property name="width">4.333in</property>
>
> </column>
>
> <row id="69">
>
> <cell id="70">
>
> <image id="75">
>
> <expression name="uri">row["Channel Image URL"]</expression>
>
> </image>
>
> </cell>
>
> <cell id="71">
>
> <data id="76">
>
> <property name="fontWeight">bold</property>
>
> <property name="resultSetColumn">Channel Title</property>
>
> <structure name="action">
>
> <property name="linkType">hyperlink</property>
>
> <expression name="uri">row["Channel URL"]</expression>
>
> <property name="targetWindow">_blank</property>
>
> </structure>
>
> </data>
>
> </cell>
>
> </row>
>
> <row id="72">
>
> <cell id="73">
>
> <property name="colSpan">2</property>
>
> <property name="rowSpan">1</property>
>
> <data id="77">
>
> <property name="fontWeight">bold</property>
>
> <property name="resultSetColumn">Channel Description</property>
>
> </data>
>
> </cell>
>
> </row>
>
> </grid>
>
> </cell>
>
> </row>
>
> </header>
>
> <detail>
>
> <row id="54">
>
> <cell id="55">
>
> <grid id="78">
>
> <property name="width">100%</property>
>
> <column id="79"/>
>
> <row id="80">
>
> <cell id="81">
>
> <data id="84">
>
> <property name="fontWeight">bold</property>
>
> <property name="resultSetColumn">News Item Headline</property>
>
> <structure name="action">
>
> <property name="linkType">hyperlink</property>
>
> <expression name="uri">row["Link To News Item"]</expression>
>
> <property name="targetWindow">_blank</property>
>
> </structure>
>
> </data>
>
> </cell>
>
> </row>
>
> <row id="82">
>
> <cell id="83">
>
> <data id="85">
>
> <property name="fontSize">8pt</property>
>
> <property name="fontStyle">italic</property>
>
> <property name="resultSetColumn">Publish Date of News Item</property>
>
> </data>
>
> </cell>
>
> </row>
>
> </grid>
>
> </cell>
>
> <cell id="56">
>
> <text-data id="87">
>
> <property name="fontSize">8pt</property>
>
> <expression name="valueExpr">row["Short Description Of News
> Item"]</expression>
>
> <property name="contentType">html</property>
>
> </text-data>
>
> </cell>
>
> </row>
>
> <row id="57">
>
> <cell id="58">
>
> <property name="colSpan">2</property>
>
> <property name="rowSpan">1</property>
>
> <text id="65">
>
> <property name="contentType">html</property>
>
> <text-property name="content"><![CDATA[<HR>]]></text-property>
>
> </text>
>
> </cell>
>
> </row>
>
> </detail>
>
> <footer>
>
> <row id="60">
>
> <cell id="61"/>
>
> <cell id="62"/>
>
> </row>
>
> </footer>
>
> </table>
>
> </body>
>
> </report>
>
>
>
> "Jason Weathersby" <jweathersby@actuate.com> schrieb im Newsbeitrag
> news:e987i0$4a0$1@utils.eclipse.org...
>>I am using Java 5 and BIRT 2.1.
>> Open the report, switch to the xml view copy and paste the results
>> to this thread. Also if you can post the whole error that would be good.
>>
>> Jason
>
>
|
|
|
Re: XML Data Source Example fails with BIRT 2.1 [message #180091 is a reply to message #178037] |
Wed, 26 July 2006 07:43 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: abushnaq.d.kamp.net
Hi Jason,
It looks to me as if your Eclipse version is reaction different then mine.
I downloaded my version as a birt-report-designer-all-in-one-2_1_0.zip.
This includes all needed plugins and Eclipse.
Did you use the same download?
I'm asking because it might be a problem with this install package that only
affects the XML data source.
"Jason Weathersby" <jweathersby@actuate.com> schrieb im Newsbeitrag
news:e9g8s0$lrf$1@utils.eclipse.org...
>I cut your report and pasted into my 2.1 install and I am getting line
>feeds in the xml design.
> Did you download it by right clicking and saving as...? Don't open it and
> cut and paste.
> When you right click and save as make sure you change the file extension
> to rptdesign.
>
> Jason
>
> "Abdalla Bushnaq" <abushnaq@d.kamp.net> wrote in message
> news:e9ab4k$6mt$1@utils.eclipse.org...
>> Thanks for helping,
>> OK, I redownloaded the demo from
>> http://download3.eclipse.org/birt/downloads/examples/reports /2.1/xmlds/XMLDS_After.rptdesign
>> I will post the report copied from my eclipse at the end of this message.
>> (this is getting realy long. is there a better way to attach sources?)
>> I also downloaded the image
>> http://download3.eclipse.org/birt/downloads/examples/reports /2.1/xmlds/Classic-Models-Minimal-M-Trans%20(smaller).png
>>
>> Then I opened the report in Eclipse with BIRT 2.1 (This is the BIRT full
>> install).
>> I see an empty report. It does have a header and so, but no data.
>> Now to make sure I open the used data set and select "preview result".
>> This taks quit a while because it si a news feed, but the result will be
>> shown.
>> I then try to select "View Report" in the menu. The report is generated
>> but the result is emty (looks same as in preview with header information
>> but no data) and has following error:
>>
>> The following items have errors:
>>
>>
>> Data (id = 76):
>> - There are errors evaluating script "row["Channel Title"]".
>> Error.ScriptEvaluationError ( 1 time(s) )
>> detail : org.eclipse.birt.report.engine.api.EngineException: There are
>> errors evaluating script "row["Channel Title"]". at
>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:572)
>> at
>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:534)
>> at
>> org.eclipse.birt.report.engine.internal.executor.doc.Abstrac tReportReader$1.visitData(AbstractReportReader.java:320)
>> at
>> org.eclipse.birt.report.engine.content.impl.DataContent.acce pt(DataContent.java:111)
>> at
>> org.eclipse.birt.report.engine.content.ContentVisitorAdapter .visit(ContentVisitorAdapter.java:9)
>> at
>> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.initializeContent(ReportItemReader.java:237)
>> at
>> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.execute(ReportItemReader.java:57)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:90)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:77)
>> at
>> org.eclipse.birt.report.engine.internal.document.v3.ReportCo ntentLoaderV3.loadPage(ReportContentLoaderV3.java:50)
>> at
>> org.eclipse.birt.report.engine.internal.document.ReportConte ntLoader.loadPage(ReportContentLoader.java:56)
>> at
>> org.eclipse.birt.report.engine.api.impl.RenderTask.doRender( RenderTask.java:223)
>> at
>> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRende r.render(RenderTask.java:593)
>> at
>> org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:524)
>> at
>> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
>> Source) at
>> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
>> Source) at
>> org.eclipse.birt.report.service.BirtViewerReportService.getP age(Unknown
>> Source) at
>> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.doExecution(Unknown
>> Source) at
>> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.__execute(Unknown
>> Source) at
>> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(Unknown
>> Source) at
>> org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(Unknown
>> Source) at
>> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(Unknown
>> Source) at
>> org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleGetPage(Unknown
>> Source) 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.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(Unknown
>> Source) at
>> org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(Unknown
>> Source) 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.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
>> at
>> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
>> at
>> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
>> at
>> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
>> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
>> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
>> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453) at
>> org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 ) at
>> org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
>> at
>> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(Unknown
>> Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>> at
>> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>> at
>> org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve.java:246)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>> at
>> org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2422)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>> at
>> org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>> at
>> org.eclipse.tomcat.internal.EclipseErrorReportValve.invoke(E clipseErrorReportValve.java:153)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>> at
>> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:199)
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:828)
>> at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:700)
>> at
>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:584)
>> at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:683)
>> at java.lang.Thread.run(Unknown Source)Caused by:
>> java.lang.NullPointerException at
>> org.eclipse.birt.data.engine.impl.document.util.ExprResultSe t.getValue(ExprResultSet.java:131)
>> at
>> org.eclipse.birt.data.engine.impl.document.ResultIterator.ge tValue(ResultIterator.java:151)
>> at
>> org.eclipse.birt.report.engine.data.dte.DteResultSet.getValu e(DteResultSet.java:266)
>> at
>> org.eclipse.birt.report.engine.data.dte.NativeRowObject.get( NativeRowObject.java:90)
>> at
>> org.mozilla.javascript.ScriptableObject.getProperty(Scriptab leObject.java:1263)
>> at
>> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1301)
>> at
>> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1283)
>> at org.mozilla.javascript.gen.c28._c0(<inline>:1) at
>> org.mozilla.javascript.gen.c28.call(<inline>) at
>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:304)
>> at
>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2769)
>> at org.mozilla.javascript.gen.c28.call(<inline>) at
>> org.mozilla.javascript.gen.c28.exec(<inline>) at
>> org.eclipse.birt.core.script.ScriptContext.eval(ScriptContex t.java:224)
>> at
>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:565)
>> ... 85 more
>>
>>
>> Data (id = 77):
>> - There are errors evaluating script "row["Channel Description"]".
>> Error.ScriptEvaluationError ( 1 time(s) )
>> detail : org.eclipse.birt.report.engine.api.EngineException: There are
>> errors evaluating script "row["Channel Description"]". at
>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:572)
>> at
>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:534)
>> at
>> org.eclipse.birt.report.engine.internal.executor.doc.Abstrac tReportReader$1.visitData(AbstractReportReader.java:320)
>> at
>> org.eclipse.birt.report.engine.content.impl.DataContent.acce pt(DataContent.java:111)
>> at
>> org.eclipse.birt.report.engine.content.ContentVisitorAdapter .visit(ContentVisitorAdapter.java:9)
>> at
>> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.initializeContent(ReportItemReader.java:237)
>> at
>> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.execute(ReportItemReader.java:57)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:90)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>> at
>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:77)
>> at
>> org.eclipse.birt.report.engine.internal.document.v3.ReportCo ntentLoaderV3.loadPage(ReportContentLoaderV3.java:50)
>> at
>> org.eclipse.birt.report.engine.internal.document.ReportConte ntLoader.loadPage(ReportContentLoader.java:56)
>> at
>> org.eclipse.birt.report.engine.api.impl.RenderTask.doRender( RenderTask.java:223)
>> at
>> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRende r.render(RenderTask.java:593)
>> at
>> org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:524)
>> at
>> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
>> Source) at
>> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
>> Source) at
>> org.eclipse.birt.report.service.BirtViewerReportService.getP age(Unknown
>> Source) at
>> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.doExecution(Unknown
>> Source) at
>> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.__execute(Unknown
>> Source) at
>> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(Unknown
>> Source) at
>> org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(Unknown
>> Source) at
>> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(Unknown
>> Source) at
>> org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleGetPage(Unknown
>> Source) 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.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(Unknown
>> Source) at
>> org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(Unknown
>> Source) 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.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
>> at
>> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
>> at
>> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
>> at
>> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
>> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
>> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
>> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453) at
>> org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 ) at
>> org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
>> at
>> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(Unknown
>> Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>> at
>> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>> at
>> org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve.java:246)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>> at
>> org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2422)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>> at
>> org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>> at
>> org.eclipse.tomcat.internal.EclipseErrorReportValve.invoke(E clipseErrorReportValve.java:153)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
>> at
>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>> at
>> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:199)
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:828)
>> at
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:700)
>> at
>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:584)
>> at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:683)
>> at java.lang.Thread.run(Unknown Source)Caused by:
>> java.lang.NullPointerException at
>> org.eclipse.birt.data.engine.impl.document.util.ExprResultSe t.getValue(ExprResultSet.java:131)
>> at
>> org.eclipse.birt.data.engine.impl.document.ResultIterator.ge tValue(ResultIterator.java:151)
>> at
>> org.eclipse.birt.report.engine.data.dte.DteResultSet.getValu e(DteResultSet.java:266)
>> at
>> org.eclipse.birt.report.engine.data.dte.NativeRowObject.get( NativeRowObject.java:90)
>> at
>> org.mozilla.javascript.ScriptableObject.getProperty(Scriptab leObject.java:1263)
>> at
>> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1301)
>> at
>> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1283)
>> at org.mozilla.javascript.gen.c29._c0(<inline>:1) at
>> org.mozilla.javascript.gen.c29.call(<inline>) at
>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:304)
>> at
>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2769)
>> at org.mozilla.javascript.gen.c29.call(<inline>) at
>> org.mozilla.javascript.gen.c29.exec(<inline>) at
>> org.eclipse.birt.core.script.ScriptContext.eval(ScriptContex t.java:224)
>> at
>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:565)
>> ... 85 more
>>
>> And new comes the actual report taken from the XML source tab from
>> Eclipse report designer:
>> <?xml version="1.0" encoding="UTF-8"?>
>>
>> <!-- Written by Eclipse BIRT 2.0 -->
>>
>> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.2"
>> id="1">
>>
>> <property name="createdBy">Eclipse BIRT Designer Version
>> 2.1.0.N20060531-1258 Build <20060531-1258></property>
>>
>> <property name="units">in</property>
>>
>> <property name="comments">Copyright (c) 2006 Actuate
>> Corporation.</property>
>>
>> <data-sources>
>>
>> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.xml"
>> name="Eclipse News Feed" id="48">
>>
>> <text-property name="displayName">Eclipse News Feed</text-property>
>>
>> <property
>> name="FILELIST">http://www.eclipse.org/home/eclipsenews.rss</property>
>>
>> <property name="SCHEMAFILELIST"></property>
>>
>> </oda-data-source>
>>
>> </data-sources>
>>
>> <data-sets>
>>
>> <oda-data-set extensionID="org.eclipse.birt.report.data.oda.xml.dataSet"
>> name="Eclise News Headlines" id="49">
>>
>> <text-property name="displayName">Eclise News Headlines</text-property>
>>
>> <structure name="cachedMetaData">
>>
>> <list-property name="resultSet">
>>
>> <structure>
>>
>> <property name="position">1</property>
>>
>> <property name="name">Channel Title</property>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="position">2</property>
>>
>> <property name="name">Channel URL</property>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="position">3</property>
>>
>> <property name="name">Channel Description</property>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="position">4</property>
>>
>> <property name="name">Channel Image URL</property>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="position">5</property>
>>
>> <property name="name">News Item Headline</property>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="position">6</property>
>>
>> <property name="name">Link To News Item</property>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="position">7</property>
>>
>> <property name="name">Short Description Of News Item</property>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="position">8</property>
>>
>> <property name="name">Publish Date of News Item</property>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> </list-property>
>>
>> </structure>
>>
>> <property name="dataSource">Eclipse News Feed</property>
>>
>> <property
>> name="queryText">table0#-TNAME-#table0#:#[/rss/channel/item]#:#{Channel
>> Title;String;../title},{Channel URL;String;../link},{Channel
>> Description;String;../description},{Channel Image
>> URL;String;../image/url},{News Item Headline;String;/title},{Link To News
>> Item;String;/link},{Short Description Of News
>> Item;String;/description},{Publish Date of News
>> Item;String;/pubDate}</property>
>>
>> <property name="MAX_ROW">-1</property>
>>
>> <property
>> name="XML_FILE">http://www.eclipse.org/home/eclipsenews.rss</property>
>>
>> </oda-data-set>
>>
>> </data-sets>
>>
>> <page-setup>
>>
>> <simple-master-page name="Simple MasterPage" id="2">
>>
>> <page-footer>
>>
>> <text id="3">
>>
>> <property name="contentType">html</property>
>>
>> <text-property name="content"><![CDATA[<value-of>new
>> Date()</value-of>]]></text-property>
>>
>> </text>
>>
>> </page-footer>
>>
>> </simple-master-page>
>>
>> </page-setup>
>>
>> <body>
>>
>> <grid id="4">
>>
>> <property name="width">100%</property>
>>
>> <column id="5"/>
>>
>> <column id="6"/>
>>
>> <row id="7">
>>
>> <cell id="8">
>>
>> <image id="10">
>>
>> <expression name="uri">"Classic-Models-Minimal-M-Trans
>> (smaller).png"</expression>
>>
>> </image>
>>
>> </cell>
>>
>> <cell id="9">
>>
>> <text id="11">
>>
>> <property name="fontFamily">"Arial"</property>
>>
>> <property name="fontSize">x-large</property>
>>
>> <property name="fontWeight">bold</property>
>>
>> <property name="textAlign">right</property>
>>
>> <property name="contentType">html</property>
>>
>> <text-property name="content"><![CDATA[News Feed Using XML Data
>> Source]]></text-property>
>>
>> </text>
>>
>> </cell>
>>
>> </row>
>>
>> </grid>
>>
>> <table id="50">
>>
>> <property name="fontFamily">"Arial"</property>
>>
>> <property name="width">100%</property>
>>
>> <property name="dataSet">Eclise News Headlines</property>
>>
>> <list-property name="boundDataColumns">
>>
>> <structure>
>>
>> <property name="name">Channel Title</property>
>>
>> <expression name="expression">dataSetRow["Channel Title"]</expression>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="name">Channel URL</property>
>>
>> <expression name="expression">dataSetRow["Channel URL"]</expression>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="name">Channel Description</property>
>>
>> <expression name="expression">dataSetRow["Channel
>> Description"]</expression>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="name">Channel Image URL</property>
>>
>> <expression name="expression">dataSetRow["Channel Image
>> URL"]</expression>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="name">News Item Headline</property>
>>
>> <expression name="expression">dataSetRow["News Item
>> Headline"]</expression>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="name">Link To News Item</property>
>>
>> <expression name="expression">dataSetRow["Link To News
>> Item"]</expression>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="name">Short Description Of News Item</property>
>>
>> <expression name="expression">dataSetRow["Short Description Of News
>> Item"]</expression>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> <structure>
>>
>> <property name="name">Publish Date of News Item</property>
>>
>> <expression name="expression">dataSetRow["Publish Date of News
>> Item"]</expression>
>>
>> <property name="dataType">string</property>
>>
>> </structure>
>>
>> </list-property>
>>
>> <column id="63">
>>
>> <property name="width">2.989in</property>
>>
>> </column>
>>
>> <column id="64">
>>
>> <property name="width">3in</property>
>>
>> </column>
>>
>> <header>
>>
>> <row id="51">
>>
>> <cell id="52">
>>
>> <property name="colSpan">2</property>
>>
>> <property name="rowSpan">1</property>
>>
>> <grid id="66">
>>
>> <property name="width">100%</property>
>>
>> <column id="67">
>>
>> <property name="width">1.583in</property>
>>
>> </column>
>>
>> <column id="68">
>>
>> <property name="width">4.333in</property>
>>
>> </column>
>>
>> <row id="69">
>>
>> <cell id="70">
>>
>> <image id="75">
>>
>> <expression name="uri">row["Channel Image URL"]</expression>
>>
>> </image>
>>
>> </cell>
>>
>> <cell id="71">
>>
>> <data id="76">
>>
>> <property name="fontWeight">bold</property>
>>
>> <property name="resultSetColumn">Channel Title</property>
>>
>> <structure name="action">
>>
>> <property name="linkType">hyperlink</property>
>>
>> <expression name="uri">row["Channel URL"]</expression>
>>
>> <property name="targetWindow">_blank</property>
>>
>> </structure>
>>
>> </data>
>>
>> </cell>
>>
>> </row>
>>
>> <row id="72">
>>
>> <cell id="73">
>>
>> <property name="colSpan">2</property>
>>
>> <property name="rowSpan">1</property>
>>
>> <data id="77">
>>
>> <property name="fontWeight">bold</property>
>>
>> <property name="resultSetColumn">Channel Description</property>
>>
>> </data>
>>
>> </cell>
>>
>> </row>
>>
>> </grid>
>>
>> </cell>
>>
>> </row>
>>
>> </header>
>>
>> <detail>
>>
>> <row id="54">
>>
>> <cell id="55">
>>
>> <grid id="78">
>>
>> <property name="width">100%</property>
>>
>> <column id="79"/>
>>
>> <row id="80">
>>
>> <cell id="81">
>>
>> <data id="84">
>>
>> <property name="fontWeight">bold</property>
>>
>> <property name="resultSetColumn">News Item Headline</property>
>>
>> <structure name="action">
>>
>> <property name="linkType">hyperlink</property>
>>
>> <expression name="uri">row["Link To News Item"]</expression>
>>
>> <property name="targetWindow">_blank</property>
>>
>> </structure>
>>
>> </data>
>>
>> </cell>
>>
>> </row>
>>
>> <row id="82">
>>
>> <cell id="83">
>>
>> <data id="85">
>>
>> <property name="fontSize">8pt</property>
>>
>> <property name="fontStyle">italic</property>
>>
>> <property name="resultSetColumn">Publish Date of News Item</property>
>>
>> </data>
>>
>> </cell>
>>
>> </row>
>>
>> </grid>
>>
>> </cell>
>>
>> <cell id="56">
>>
>> <text-data id="87">
>>
>> <property name="fontSize">8pt</property>
>>
>> <expression name="valueExpr">row["Short Description Of News
>> Item"]</expression>
>>
>> <property name="contentType">html</property>
>>
>> </text-data>
>>
>> </cell>
>>
>> </row>
>>
>> <row id="57">
>>
>> <cell id="58">
>>
>> <property name="colSpan">2</property>
>>
>> <property name="rowSpan">1</property>
>>
>> <text id="65">
>>
>> <property name="contentType">html</property>
>>
>> <text-property name="content"><![CDATA[<HR>]]></text-property>
>>
>> </text>
>>
>> </cell>
>>
>> </row>
>>
>> </detail>
>>
>> <footer>
>>
>> <row id="60">
>>
>> <cell id="61"/>
>>
>> <cell id="62"/>
>>
>> </row>
>>
>> </footer>
>>
>> </table>
>>
>> </body>
>>
>> </report>
>>
>>
>>
>> "Jason Weathersby" <jweathersby@actuate.com> schrieb im Newsbeitrag
>> news:e987i0$4a0$1@utils.eclipse.org...
>>>I am using Java 5 and BIRT 2.1.
>>> Open the report, switch to the xml view copy and paste the results
>>> to this thread. Also if you can post the whole error that would be
>>> good.
>>>
>>> Jason
>>
>>
>
>
|
|
|
Re: XML Data Source Example fails with BIRT 2.1 [message #180354 is a reply to message #180091] |
Thu, 27 July 2006 04:27 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
|
I am using the same version.
Jason
"Abdalla Bushnaq" <abushnaq@d.kamp.net> wrote in message
news:ea76f2$uec$1@utils.eclipse.org...
> Hi Jason,
> It looks to me as if your Eclipse version is reaction different then mine.
> I downloaded my version as a birt-report-designer-all-in-one-2_1_0.zip.
> This includes all needed plugins and Eclipse.
> Did you use the same download?
> I'm asking because it might be a problem with this install package that
> only affects the XML data source.
>
>
> "Jason Weathersby" <jweathersby@actuate.com> schrieb im Newsbeitrag
> news:e9g8s0$lrf$1@utils.eclipse.org...
>>I cut your report and pasted into my 2.1 install and I am getting line
>>feeds in the xml design.
>> Did you download it by right clicking and saving as...? Don't open it
>> and cut and paste.
>> When you right click and save as make sure you change the file extension
>> to rptdesign.
>>
>> Jason
>>
>> "Abdalla Bushnaq" <abushnaq@d.kamp.net> wrote in message
>> news:e9ab4k$6mt$1@utils.eclipse.org...
>>> Thanks for helping,
>>> OK, I redownloaded the demo from
>>> http://download3.eclipse.org/birt/downloads/examples/reports /2.1/xmlds/XMLDS_After.rptdesign
>>> I will post the report copied from my eclipse at the end of this
>>> message. (this is getting realy long. is there a better way to attach
>>> sources?)
>>> I also downloaded the image
>>> http://download3.eclipse.org/birt/downloads/examples/reports /2.1/xmlds/Classic-Models-Minimal-M-Trans%20(smaller).png
>>>
>>> Then I opened the report in Eclipse with BIRT 2.1 (This is the BIRT full
>>> install).
>>> I see an empty report. It does have a header and so, but no data.
>>> Now to make sure I open the used data set and select "preview result".
>>> This taks quit a while because it si a news feed, but the result will be
>>> shown.
>>> I then try to select "View Report" in the menu. The report is generated
>>> but the result is emty (looks same as in preview with header information
>>> but no data) and has following error:
>>>
>>> The following items have errors:
>>>
>>>
>>> Data (id = 76):
>>> - There are errors evaluating script "row["Channel Title"]".
>>> Error.ScriptEvaluationError ( 1 time(s) )
>>> detail : org.eclipse.birt.report.engine.api.EngineException: There are
>>> errors evaluating script "row["Channel Title"]". at
>>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:572)
>>> at
>>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:534)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.doc.Abstrac tReportReader$1.visitData(AbstractReportReader.java:320)
>>> at
>>> org.eclipse.birt.report.engine.content.impl.DataContent.acce pt(DataContent.java:111)
>>> at
>>> org.eclipse.birt.report.engine.content.ContentVisitorAdapter .visit(ContentVisitorAdapter.java:9)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.initializeContent(ReportItemReader.java:237)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.execute(ReportItemReader.java:57)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:90)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:77)
>>> at
>>> org.eclipse.birt.report.engine.internal.document.v3.ReportCo ntentLoaderV3.loadPage(ReportContentLoaderV3.java:50)
>>> at
>>> org.eclipse.birt.report.engine.internal.document.ReportConte ntLoader.loadPage(ReportContentLoader.java:56)
>>> at
>>> org.eclipse.birt.report.engine.api.impl.RenderTask.doRender( RenderTask.java:223)
>>> at
>>> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRende r.render(RenderTask.java:593)
>>> at
>>> org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:524)
>>> at
>>> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
>>> Source) at
>>> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
>>> Source) at
>>> org.eclipse.birt.report.service.BirtViewerReportService.getP age(Unknown
>>> Source) at
>>> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.doExecution(Unknown
>>> Source) at
>>> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.__execute(Unknown
>>> Source) at
>>> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(Unknown
>>> Source) at
>>> org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(Unknown
>>> Source) at
>>> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(Unknown
>>> Source) at
>>> org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleGetPage(Unknown
>>> Source) 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.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(Unknown
>>> Source) at
>>> org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(Unknown
>>> Source) 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.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
>>> at
>>> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
>>> at
>>> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
>>> at
>>> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
>>> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
>>> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
>>> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453)
>>> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 ) at
>>> org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
>>> at
>>> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(Unknown
>>> Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>>> at
>>> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>>> at
>>> org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve.java:246)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>>> at
>>> org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2422)
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>>> at
>>> org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>>> at
>>> org.eclipse.tomcat.internal.EclipseErrorReportValve.invoke(E clipseErrorReportValve.java:153)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>>> at
>>> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:199)
>>> at
>>> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:828)
>>> at
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:700)
>>> at
>>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:584)
>>> at
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:683)
>>> at java.lang.Thread.run(Unknown Source)Caused by:
>>> java.lang.NullPointerException at
>>> org.eclipse.birt.data.engine.impl.document.util.ExprResultSe t.getValue(ExprResultSet.java:131)
>>> at
>>> org.eclipse.birt.data.engine.impl.document.ResultIterator.ge tValue(ResultIterator.java:151)
>>> at
>>> org.eclipse.birt.report.engine.data.dte.DteResultSet.getValu e(DteResultSet.java:266)
>>> at
>>> org.eclipse.birt.report.engine.data.dte.NativeRowObject.get( NativeRowObject.java:90)
>>> at
>>> org.mozilla.javascript.ScriptableObject.getProperty(Scriptab leObject.java:1263)
>>> at
>>> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1301)
>>> at
>>> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1283)
>>> at org.mozilla.javascript.gen.c28._c0(<inline>:1) at
>>> org.mozilla.javascript.gen.c28.call(<inline>) at
>>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:304)
>>> at
>>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2769)
>>> at org.mozilla.javascript.gen.c28.call(<inline>) at
>>> org.mozilla.javascript.gen.c28.exec(<inline>) at
>>> org.eclipse.birt.core.script.ScriptContext.eval(ScriptContex t.java:224)
>>> at
>>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:565)
>>> ... 85 more
>>>
>>>
>>> Data (id = 77):
>>> - There are errors evaluating script "row["Channel Description"]".
>>> Error.ScriptEvaluationError ( 1 time(s) )
>>> detail : org.eclipse.birt.report.engine.api.EngineException: There are
>>> errors evaluating script "row["Channel Description"]". at
>>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:572)
>>> at
>>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:534)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.doc.Abstrac tReportReader$1.visitData(AbstractReportReader.java:320)
>>> at
>>> org.eclipse.birt.report.engine.content.impl.DataContent.acce pt(DataContent.java:111)
>>> at
>>> org.eclipse.birt.report.engine.content.ContentVisitorAdapter .visit(ContentVisitorAdapter.java:9)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.initializeContent(ReportItemReader.java:237)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.doc.ReportI temReader.execute(ReportItemReader.java:57)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExecutor.execute(LocalizedReportItemExecutor.ja va:35)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:90)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:98)
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportExecutor.execute(LocalizedReportExecutor.java:77)
>>> at
>>> org.eclipse.birt.report.engine.internal.document.v3.ReportCo ntentLoaderV3.loadPage(ReportContentLoaderV3.java:50)
>>> at
>>> org.eclipse.birt.report.engine.internal.document.ReportConte ntLoader.loadPage(ReportContentLoader.java:56)
>>> at
>>> org.eclipse.birt.report.engine.api.impl.RenderTask.doRender( RenderTask.java:223)
>>> at
>>> org.eclipse.birt.report.engine.api.impl.RenderTask$PageRende r.render(RenderTask.java:593)
>>> at
>>> org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.java:524)
>>> at
>>> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
>>> Source) at
>>> org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unknown
>>> Source) at
>>> org.eclipse.birt.report.service.BirtViewerReportService.getP age(Unknown
>>> Source) at
>>> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.doExecution(Unknown
>>> Source) at
>>> org.eclipse.birt.report.service.actionhandler.AbstractGetPag eActionHandler.__execute(Unknown
>>> Source) at
>>> org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandler.execute(Unknown
>>> Source) at
>>> org.eclipse.birt.report.soapengine.processor.AbstractBaseDoc umentProcessor.__executeAction(Unknown
>>> Source) at
>>> org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.executeAction(Unknown
>>> Source) at
>>> org.eclipse.birt.report.soapengine.processor.BirtDocumentPro cessor.handleGetPage(Unknown
>>> Source) 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.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(Unknown
>>> Source) at
>>> org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(Unknown
>>> Source) 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.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397)
>>> at
>>> org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186)
>>> at
>>> org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323)
>>> at
>>> org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32)
>>> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at
>>> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at
>>> org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:453)
>>> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 ) at
>>> org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699)
>>> at
>>> org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(Unknown
>>> Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>>> at
>>> org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:247)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:193)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:256)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>>> at
>>> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>>> at
>>> org.apache.catalina.valves.CertificatesValve.invoke(Certific atesValve.java:246)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>>> at
>>> org.apache.catalina.core.StandardContext.invoke(StandardCont ext.java:2422)
>>> at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:180)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>>> at
>>> org.apache.catalina.valves.ErrorDispatcherValve.invoke(Error DispatcherValve.java:171)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>>> at
>>> org.eclipse.tomcat.internal.EclipseErrorReportValve.invoke(E clipseErrorReportValve.java:153)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:641)
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>>> at
>>> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:174)
>>> at
>>> org.apache.catalina.core.StandardPipeline$StandardPipelineVa lveContext.invokeNext(StandardPipeline.java:643)
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPip eline.java:480)
>>> at org.apache.catalina.core.ContainerBase.invoke(ContainerBase. java:995)
>>> at
>>> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapte r.java:199)
>>> at
>>> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:828)
>>> at
>>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.processConnection(Http11Protocol.java:700)
>>> at
>>> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp oint.java:584)
>>> at
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.ru n(ThreadPool.java:683)
>>> at java.lang.Thread.run(Unknown Source)Caused by:
>>> java.lang.NullPointerException at
>>> org.eclipse.birt.data.engine.impl.document.util.ExprResultSe t.getValue(ExprResultSet.java:131)
>>> at
>>> org.eclipse.birt.data.engine.impl.document.ResultIterator.ge tValue(ResultIterator.java:151)
>>> at
>>> org.eclipse.birt.report.engine.data.dte.DteResultSet.getValu e(DteResultSet.java:266)
>>> at
>>> org.eclipse.birt.report.engine.data.dte.NativeRowObject.get( NativeRowObject.java:90)
>>> at
>>> org.mozilla.javascript.ScriptableObject.getProperty(Scriptab leObject.java:1263)
>>> at
>>> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1301)
>>> at
>>> org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRun time.java:1283)
>>> at org.mozilla.javascript.gen.c29._c0(<inline>:1) at
>>> org.mozilla.javascript.gen.c29.call(<inline>) at
>>> org.mozilla.javascript.ContextFactory.doTopCall(ContextFacto ry.java:304)
>>> at
>>> org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime .java:2769)
>>> at org.mozilla.javascript.gen.c29.call(<inline>) at
>>> org.mozilla.javascript.gen.c29.exec(<inline>) at
>>> org.eclipse.birt.core.script.ScriptContext.eval(ScriptContex t.java:224)
>>> at
>>> org.eclipse.birt.report.engine.executor.ExecutionContext.eva luate(ExecutionContext.java:565)
>>> ... 85 more
>>>
>>> And new comes the actual report taken from the XML source tab from
>>> Eclipse report designer:
>>> <?xml version="1.0" encoding="UTF-8"?>
>>>
>>> <!-- Written by Eclipse BIRT 2.0 -->
>>>
>>> <report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.2"
>>> id="1">
>>>
>>> <property name="createdBy">Eclipse BIRT Designer Version
>>> 2.1.0.N20060531-1258 Build <20060531-1258></property>
>>>
>>> <property name="units">in</property>
>>>
>>> <property name="comments">Copyright (c) 2006 Actuate
>>> Corporation.</property>
>>>
>>> <data-sources>
>>>
>>> <oda-data-source extensionID="org.eclipse.birt.report.data.oda.xml"
>>> name="Eclipse News Feed" id="48">
>>>
>>> <text-property name="displayName">Eclipse News Feed</text-property>
>>>
>>> <property
>>> name="FILELIST">http://www.eclipse.org/home/eclipsenews.rss</property>
>>>
>>> <property name="SCHEMAFILELIST"></property>
>>>
>>> </oda-data-source>
>>>
>>> </data-sources>
>>>
>>> <data-sets>
>>>
>>> <oda-data-set extensionID="org.eclipse.birt.report.data.oda.xml.dataSet"
>>> name="Eclise News Headlines" id="49">
>>>
>>> <text-property name="displayName">Eclise News Headlines</text-property>
>>>
>>> <structure name="cachedMetaData">
>>>
>>> <list-property name="resultSet">
>>>
>>> <structure>
>>>
>>> <property name="position">1</property>
>>>
>>> <property name="name">Channel Title</property>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="position">2</property>
>>>
>>> <property name="name">Channel URL</property>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="position">3</property>
>>>
>>> <property name="name">Channel Description</property>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="position">4</property>
>>>
>>> <property name="name">Channel Image URL</property>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="position">5</property>
>>>
>>> <property name="name">News Item Headline</property>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="position">6</property>
>>>
>>> <property name="name">Link To News Item</property>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="position">7</property>
>>>
>>> <property name="name">Short Description Of News Item</property>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="position">8</property>
>>>
>>> <property name="name">Publish Date of News Item</property>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> </list-property>
>>>
>>> </structure>
>>>
>>> <property name="dataSource">Eclipse News Feed</property>
>>>
>>> <property
>>> name="queryText">table0#-TNAME-#table0#:#[/rss/channel/item]#:#{Channel
>>> Title;String;../title},{Channel URL;String;../link},{Channel
>>> Description;String;../description},{Channel Image
>>> URL;String;../image/url},{News Item Headline;String;/title},{Link To
>>> News Item;String;/link},{Short Description Of News
>>> Item;String;/description},{Publish Date of News
>>> Item;String;/pubDate}</property>
>>>
>>> <property name="MAX_ROW">-1</property>
>>>
>>> <property
>>> name="XML_FILE">http://www.eclipse.org/home/eclipsenews.rss</property>
>>>
>>> </oda-data-set>
>>>
>>> </data-sets>
>>>
>>> <page-setup>
>>>
>>> <simple-master-page name="Simple MasterPage" id="2">
>>>
>>> <page-footer>
>>>
>>> <text id="3">
>>>
>>> <property name="contentType">html</property>
>>>
>>> <text-property name="content"><![CDATA[<value-of>new
>>> Date()</value-of>]]></text-property>
>>>
>>> </text>
>>>
>>> </page-footer>
>>>
>>> </simple-master-page>
>>>
>>> </page-setup>
>>>
>>> <body>
>>>
>>> <grid id="4">
>>>
>>> <property name="width">100%</property>
>>>
>>> <column id="5"/>
>>>
>>> <column id="6"/>
>>>
>>> <row id="7">
>>>
>>> <cell id="8">
>>>
>>> <image id="10">
>>>
>>> <expression name="uri">"Classic-Models-Minimal-M-Trans
>>> (smaller).png"</expression>
>>>
>>> </image>
>>>
>>> </cell>
>>>
>>> <cell id="9">
>>>
>>> <text id="11">
>>>
>>> <property name="fontFamily">"Arial"</property>
>>>
>>> <property name="fontSize">x-large</property>
>>>
>>> <property name="fontWeight">bold</property>
>>>
>>> <property name="textAlign">right</property>
>>>
>>> <property name="contentType">html</property>
>>>
>>> <text-property name="content"><![CDATA[News Feed Using XML Data
>>> Source]]></text-property>
>>>
>>> </text>
>>>
>>> </cell>
>>>
>>> </row>
>>>
>>> </grid>
>>>
>>> <table id="50">
>>>
>>> <property name="fontFamily">"Arial"</property>
>>>
>>> <property name="width">100%</property>
>>>
>>> <property name="dataSet">Eclise News Headlines</property>
>>>
>>> <list-property name="boundDataColumns">
>>>
>>> <structure>
>>>
>>> <property name="name">Channel Title</property>
>>>
>>> <expression name="expression">dataSetRow["Channel Title"]</expression>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="name">Channel URL</property>
>>>
>>> <expression name="expression">dataSetRow["Channel URL"]</expression>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="name">Channel Description</property>
>>>
>>> <expression name="expression">dataSetRow["Channel
>>> Description"]</expression>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="name">Channel Image URL</property>
>>>
>>> <expression name="expression">dataSetRow["Channel Image
>>> URL"]</expression>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="name">News Item Headline</property>
>>>
>>> <expression name="expression">dataSetRow["News Item
>>> Headline"]</expression>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="name">Link To News Item</property>
>>>
>>> <expression name="expression">dataSetRow["Link To News
>>> Item"]</expression>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="name">Short Description Of News Item</property>
>>>
>>> <expression name="expression">dataSetRow["Short Description Of News
>>> Item"]</expression>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> <structure>
>>>
>>> <property name="name">Publish Date of News Item</property>
>>>
>>> <expression name="expression">dataSetRow["Publish Date of News
>>> Item"]</expression>
>>>
>>> <property name="dataType">string</property>
>>>
>>> </structure>
>>>
>>> </list-property>
>>>
>>> <column id="63">
>>>
>>> <property name="width">2.989in</property>
>>>
>>> </column>
>>>
>>> <column id="64">
>>>
>>> <property name="width">3in</property>
>>>
>>> </column>
>>>
>>> <header>
>>>
>>> <row id="51">
>>>
>>> <cell id="52">
>>>
>>> <property name="colSpan">2</property>
>>>
>>> <property name="rowSpan">1</property>
>>>
>>> <grid id="66">
>>>
>>> <property name="width">100%</property>
>>>
>>> <column id="67">
>>>
>>> <property name="width">1.583in</property>
>>>
>>> </column>
>>>
>>> <column id="68">
>>>
>>> <property name="width">4.333in</property>
>>>
>>> </column>
>>>
>>> <row id="69">
>>>
>>> <cell id="70">
>>>
>>> <image id="75">
>>>
>>> <expression name="uri">row["Channel Image URL"]</expression>
>>>
>>> </image>
>>>
>>> </cell>
>>>
>>> <cell id="71">
>>>
>>> <data id="76">
>>>
>>> <property name="fontWeight">bold</property>
>>>
>>> <property name="resultSetColumn">Channel Title</property>
>>>
>>> <structure name="action">
>>>
>>> <property name="linkType">hyperlink</property>
>>>
>>> <expression name="uri">row["Channel URL"]</expression>
>>>
>>> <property name="targetWindow">_blank</property>
>>>
>>> </structure>
>>>
>>> </data>
>>>
>>> </cell>
>>>
>>> </row>
>>>
>>> <row id="72">
>>>
>>> <cell id="73">
>>>
>>> <property name="colSpan">2</property>
>>>
>>> <property name="rowSpan">1</property>
>>>
>>> <data id="77">
>>>
>>> <property name="fontWeight">bold</property>
>>>
>>> <property name="resultSetColumn">Channel Description</property>
>>>
>>> </data>
>>>
>>> </cell>
>>>
>>> </row>
>>>
>>> </grid>
>>>
>>> </cell>
>>>
>>> </row>
>>>
>>> </header>
>>>
>>> <detail>
>>>
>>> <row id="54">
>>>
>>> <cell id="55">
>>>
>>> <grid id="78">
>>>
>>> <property name="width">100%</property>
>>>
>>> <column id="79"/>
>>>
>>> <row id="80">
>>>
>>> <cell id="81">
>>>
>>> <data id="84">
>>>
>>> <property name="fontWeight">bold</property>
>>>
>>> <property name="resultSetColumn">News Item Headline</property>
>>>
>>> <structure name="action">
>>>
>>> <property name="linkType">hyperlink</property>
>>>
>>> <expression name="uri">row["Link To News Item"]</expression>
>>>
>>> <property name="targetWindow">_blank</property>
>>>
>>> </structure>
>>>
>>> </data>
>>>
>>> </cell>
>>>
>>> </row>
>>>
>>> <row id="82">
>>>
>>> <cell id="83">
>>>
>>> <data id="85">
>>>
>>> <property name="fontSize">8pt</property>
>>>
>>> <property name="fontStyle">italic</property>
>>>
>>> <property name="resultSetColumn">Publish Date of News Item</property>
>>>
>>> </data>
>>>
>>> </cell>
>>>
>>> </row>
>>>
>>> </grid>
>>>
>>> </cell>
>>>
>>> <cell id="56">
>>>
>>> <text-data id="87">
>>>
>>> <property name="fontSize">8pt</property>
>>>
>>> <expression name="valueExpr">row["Short Description Of News
>>> Item"]</expression>
>>>
>>> <property name="contentType">html</property>
>>>
>>> </text-data>
>>>
>>> </cell>
>>>
>>> </row>
>>>
>>> <row id="57">
>>>
>>> <cell id="58">
>>>
>>> <property name="colSpan">2</property>
>>>
>>> <property name="rowSpan">1</property>
>>>
>>> <text id="65">
>>>
>>> <property name="contentType">html</property>
>>>
>>> <text-property name="content"><![CDATA[<HR>]]></text-property>
>>>
>>> </text>
>>>
>>> </cell>
>>>
>>> </row>
>>>
>>> </detail>
>>>
>>> <footer>
>>>
>>> <row id="60">
>>>
>>> <cell id="61"/>
>>>
>>> <cell id="62"/>
>>>
>>> </row>
>>>
>>> </footer>
>>>
>>> </table>
>>>
>>> </body>
>>>
>>> </report>
>>>
>>>
>>>
>>> "Jason Weathersby" <jweathersby@actuate.com> schrieb im Newsbeitrag
>>> news:e987i0$4a0$1@utils.eclipse.org...
>>>>I am using Java 5 and BIRT 2.1.
>>>> Open the report, switch to the xml view copy and paste the results
>>>> to this thread. Also if you can post the whole error that would be
>>>> good.
>>>>
>>>> Jason
>>>
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04630 seconds