Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Cannot view non-test reports with BIRT Viewer 2.5.1
Cannot view non-test reports with BIRT Viewer 2.5.1 [message #514210] Fri, 12 February 2010 20:35 Go to next message
Christoph is currently offline ChristophFriend
Messages: 55
Registered: July 2009
Member
Hello,

I'm having difficulty viewing reports with BIRT Report Viewer:

Viewer Version : 2.5.1
Engine Version: 2.5.1
JRE version: 1.6.0_12
Tomcat version: 6.0

In addition to the two test reports that are installed with the report viewer, I have deployed a simple, text only, report called test_report.rptdesign, and SalesInvoice.rptdesign ( http://www.eclipse.org/birt/phoenix/examples/solution/SalesI nvoice.rptdesign). I previewed all of these reports with BIRT Report Designer 2.5.1.

I can successfully view the two test reports using the following URLs:

http://myhost:8080/birt-viewer/frameset?__report=test.rptdes ign
http://myhost:8080/birt-viewer/frameset?__report=test1.rptde sign

However, when I attempt to access the other reports as follows:

http://myhost:8080/birt-viewer/frameset?__report=test_report .rptdesign
http://myhost:8080/birt-viewer/frameset?__report=SalesInvoic e.rptdesign

I get the following error:

org.eclipse.birt.report.exception.ViewerException: The report file : /opt/tomcat6/webapps/birt-viewer/test_report.rptdesign does not exist or contains errors. (Full stacktrace below under Error 1.)

I am stumped as to why some reports work and the others don't. Any help with this would be most welcome.

Also, when I put any of these reports into the birt-viewer/report directory and try to access them (e.g.: http://myhost:8080/birt-viewer/frameset?__report=/report/tes t.rptdesign), I get the following error:

org.eclipse.birt.report.exception.ViewerException: There is no report design object available. (Full stacktrace below under Error 2.)

However, this issue will be moot when the first one is resolved.

Thanks in advance,

Christoph

------------------------------------------

Error 1:

The report file : /opt/tomcat6/webapps/birt-viewer/test_report.rptdesign does not exist or contains errors.

org.eclipse.birt.report.exception.ViewerException: The report file : /opt/tomcat6/webapps/birt-viewer/test_report.rptdesign does not exist or contains errors.
at org.eclipse.birt.report.context.ViewerAttributeBean.getDesig nHandle(ViewerAttributeBean.java:659)
at org.eclipse.birt.report.context.ViewerAttributeBean.__init(V iewerAttributeBean.java:231)
at org.eclipse.birt.report.context.BaseAttributeBean.init(BaseA ttributeBean.java:233)
at org.eclipse.birt.report.context.ViewerAttributeBean.<init>(ViewerAttributeBean.java:116)
at org.eclipse.birt.report.context.BirtContext.__init(BirtConte xt.java:44)
at org.eclipse.birt.report.context.BaseContext.<init>(BaseContext.java:69)
at org.eclipse.birt.report.context.BirtContext.<init>(BirtContext.java:30)
at org.eclipse.birt.report.servlet.ViewerServlet.__getContext(V iewerServlet.java:150)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doGet(BirtSoapMessageDispatcherServlet.java:151)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:454)
at java.lang.Thread.run(Thread.java:619)

Error 2:

There is no report design object available.

org.eclipse.birt.report.exception.ViewerException: There is no report design object available.
at org.eclipse.birt.report.context.ViewerAttributeBean.__init(V iewerAttributeBean.java:233)
at org.eclipse.birt.report.context.BaseAttributeBean.init(BaseA ttributeBean.java:233)
at org.eclipse.birt.report.context.ViewerAttributeBean.<init>(ViewerAttributeBean.java:116)
at org.eclipse.birt.report.context.BirtContext.__init(BirtConte xt.java:44)
at org.eclipse.birt.report.context.BaseContext.<init>(BaseContext.java:69)
at org.eclipse.birt.report.context.BirtContext.<init>(BirtContext.java:30)
at org.eclipse.birt.report.servlet.ViewerServlet.__getContext(V iewerServlet.java:150)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doGet(BirtSoapMessageDispatcherServlet.java:151)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF ilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:454)
at java.lang.Thread.run(Thread.java:619)
Re: Cannot view non-test reports with BIRT Viewer 2.5.1 [message #514539 is a reply to message #514210] Mon, 15 February 2010 12:38 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Christoph,

On the first error where are you putting the design?

Also open the SalesInvoice.rptdesign in the designer to verify that the
download is not corrupt.

Jason

Christoph wrote:
> Hello,
>
> I'm having difficulty viewing reports with BIRT Report Viewer:
>
> Viewer Version : 2.5.1
> Engine Version: 2.5.1
> JRE version: 1.6.0_12
> Tomcat version: 6.0
>
> In addition to the two test reports that are installed with the report
> viewer, I have deployed a simple, text only, report called
> test_report.rptdesign, and SalesInvoice.rptdesign
> ( http://www.eclipse.org/birt/phoenix/examples/solution/SalesI nvoice.rptdesign).
> I previewed all of these reports with BIRT Report Designer 2.5.1.
>
> I can successfully view the two test reports using the following URLs:
>
> http://myhost:8080/birt-viewer/frameset?__report=test.rptdes ign
> http://myhost:8080/birt-viewer/frameset?__report=test1.rptde sign
>
> However, when I attempt to access the other reports as follows:
>
> http://myhost:8080/birt-viewer/frameset?__report=test_report .rptdesign
> http://myhost:8080/birt-viewer/frameset?__report=SalesInvoic e.rptdesign
>
> I get the following error:
>
> org.eclipse.birt.report.exception.ViewerException: The report file :
> /opt/tomcat6/webapps/birt-viewer/test_report.rptdesign does not exist or
> contains errors. (Full stacktrace below under Error 1.)
>
> I am stumped as to why some reports work and the others don't. Any help
> with this would be most welcome.
>
> Also, when I put any of these reports into the birt-viewer/report
> directory and try to access them (e.g.:
> http://myhost:8080/birt-viewer/frameset?__report=/report/tes t.rptdesign),
> I get the following error:
>
> org.eclipse.birt.report.exception.ViewerException: There is no report
> design object available. (Full stacktrace below under Error 2.)
>
> However, this issue will be moot when the first one is resolved.
>
> Thanks in advance,
>
> Christoph
>
> ------------------------------------------
>
> Error 1:
>
> The report file : /opt/tomcat6/webapps/birt-viewer/test_report.rptdesign
> does not exist or contains errors.
>
> org.eclipse.birt.report.exception.ViewerException: The report file :
> /opt/tomcat6/webapps/birt-viewer/test_report.rptdesign does not exist or
> contains errors.
> at org.eclipse.birt.report.context.ViewerAttributeBean.getDesig
> nHandle(ViewerAttributeBean.java:659)
> at org.eclipse.birt.report.context.ViewerAttributeBean.__init(V
> iewerAttributeBean.java:231)
> at org.eclipse.birt.report.context.BaseAttributeBean.init(BaseA
> ttributeBean.java:233)
> at
> org.eclipse.birt.report.context.ViewerAttributeBean.<init>(ViewerAttributeBean.java:116)
>
> at org.eclipse.birt.report.context.BirtContext.__init(BirtConte
> xt.java:44)
> at
> org.eclipse.birt.report.context.BaseContext.<init>(BaseContext.java:69)
> at
> org.eclipse.birt.report.context.BirtContext.<init>(BirtContext.java:30)
> at org.eclipse.birt.report.servlet.ViewerServlet.__getContext(V
> iewerServlet.java:150)
> at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer
> vlet.doGet(BirtSoapMessageDispatcherServlet.java:151)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at org.apache.axis.transport.http.AxisServletBase.service(AxisS
> ervletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer
> vlet.service(BirtSoapMessageDispatcherServlet.java:122)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
> lter(ApplicationFilterChain.java:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
> licationFilterChain.java:206)
> at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF
> ilter.java:68)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
> lter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
> licationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
> dWrapperValve.java:233)
> at org.apache.catalina.core.StandardContextValve.invoke(Standar
> dContextValve.java:191)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
> stValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
> rtValve.java:102)
> at org.apache.catalina.core.StandardEngineValve.invoke(Standard
> EngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd
> apter.java:293)
> at org.apache.coyote.http11.Http11Processor.process(Http11Proce
> ssor.java:849)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand
> ler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin
> t.java:454)
> at java.lang.Thread.run(Thread.java:619)
>
> Error 2:
>
> There is no report design object available.
>
> org.eclipse.birt.report.exception.ViewerException: There is no report
> design object available.
> at org.eclipse.birt.report.context.ViewerAttributeBean.__init(V
> iewerAttributeBean.java:233)
> at org.eclipse.birt.report.context.BaseAttributeBean.init(BaseA
> ttributeBean.java:233)
> at
> org.eclipse.birt.report.context.ViewerAttributeBean.<init>(ViewerAttributeBean.java:116)
>
> at org.eclipse.birt.report.context.BirtContext.__init(BirtConte
> xt.java:44)
> at
> org.eclipse.birt.report.context.BaseContext.<init>(BaseContext.java:69)
> at
> org.eclipse.birt.report.context.BirtContext.<init>(BirtContext.java:30)
> at org.eclipse.birt.report.servlet.ViewerServlet.__getContext(V
> iewerServlet.java:150)
> at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer
> vlet.doGet(BirtSoapMessageDispatcherServlet.java:151)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> at org.apache.axis.transport.http.AxisServletBase.service(AxisS
> ervletBase.java:327)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer
> vlet.service(BirtSoapMessageDispatcherServlet.java:122)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
> lter(ApplicationFilterChain.java:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
> licationFilterChain.java:206)
> at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerF
> ilter.java:68)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
> lter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
> licationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
> dWrapperValve.java:233)
> at org.apache.catalina.core.StandardContextValve.invoke(Standar
> dContextValve.java:191)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
> stValve.java:128)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
> rtValve.java:102)
> at org.apache.catalina.core.StandardEngineValve.invoke(Standard
> EngineValve.java:109)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd
> apter.java:293)
> at org.apache.coyote.http11.Http11Processor.process(Http11Proce
> ssor.java:849)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand
> ler.process(Http11Protocol.java:583)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin
> t.java:454)
> at java.lang.Thread.run(Thread.java:619)
Re: Cannot view non-test reports with BIRT Viewer 2.5.1 [message #514562 is a reply to message #514210] Mon, 15 February 2010 19:11 Go to previous messageGo to next message
Christoph is currently offline ChristophFriend
Messages: 55
Registered: July 2009
Member
Hi Jason,

As it turns out, I had two birt-viewer installations on the host and I was placing reports in the wrong one. Everything works fine now. My apologies for the oversight.

The reports are all in the "root" birt-viewer directory, and I still get Error 2 when I place them in the birt-viewer/report/ subdirectory. But everything is fine when they are in the root directory, so this isn't an issue anymore.

Feeling sheepish,

Christoph

Re: Cannot view non-test reports with BIRT Viewer 2.5.1 [message #514587 is a reply to message #514562] Mon, 15 February 2010 16:20 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Christoph,

It should have found it under the report directory. Try
without the leading slash:
eg

__report=report/test.rptdesign

You can also set the working folder in the web.xml
<context-param>
<param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
<param-value></param-value>
</context-param>

Jason

Christoph wrote:
> Hi Jason,
>
> As it turns out, I had two birt-viewer installations on the host and I
> was placing reports in the wrong one. Everything works fine now. My
> apologies for the oversight.
>
> The reports are all in the "root" birt-viewer directory, and I still get
> Error 2 when I place them in the birt-viewer/report/ subdirectory. But
> everything is fine when they are in the root directory, so this isn't an
> issue anymore.
>
> Feeling sheepish,
>
> Christoph
>
>
Re: Cannot view non-test reports with BIRT Viewer 2.5.1 [message #515866 is a reply to message #514587] Sun, 21 February 2010 22:36 Go to previous message
Christoph is currently offline ChristophFriend
Messages: 55
Registered: July 2009
Member
Thanks very much, Jason. Dropping the leading slash worked.
-Christoph
Previous Topic:connection
Next Topic:Chart export to excel
Goto Forum:
  


Current Time: Sun Dec 21 12:09:30 GMT 2014

Powered by FUDForum. Page generated in 0.02969 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software