Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335981 - Report Viewer Simply DOES NOT WORK
Summary: Report Viewer Simply DOES NOT WORK
Status: REOPENED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportViewer CLA
QA Contact: weiming tang CLA
URL:
Whiteboard: Obsolete
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-01 10:58 EST by support CLA
Modified: 2011-08-24 03:47 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description support CLA 2011-02-01 10:58:25 EST
Build Identifier: 2.6.1

Using Tomcat integration steps to the letter both with 2.5.3 and 2.6.1 no example works. Error returned is always the same "The viewing session is not available or has expired". No StackTrace is returned.

We are simply using a web browser to connect to birt like so. It does not matter what report we use or what flavor of viewer. The following links are live so try it for yourself.

http://esq3.houdiniesq.com/birt-viewer/frameset?__report=report/SalesInvoice.rptdesign
http://esq3.houdiniesq.com/birt-viewer/run?__report=report/SalesInvoice.rptdesign
http://esq3.houdiniesq.com/birt-viewer/preview?__report=report/SalesInvoice.rptdesign

I HAVE TRIED THIS 5 MONTHS AGO AND IT IS STILL BROKEN. I can appreciate how everyone uses eclipse to run their reports but this is not practical for end users. I have just about given up and will use Jasper instead.


Reproducible: Always

Steps to Reproduce:
1. Download 2.6.1 runtime
2. Installed onto running live TomCat server
3. http://esq3.houdiniesq.com/birt-viewer/run?__report=report/SalesInvoice.rptdesign
Comment 1 Xiaoying Gu CLA 2011-02-18 02:47:49 EST
Hi,

This was covered by our smoke test and we didnot encounter this issue in 2.3/2.5/2.6 release.

Could you elaborate more how you deploy birt viewer on your tomcat? 
And can you preview the embeded sample report after you deployed on tomcat, by click the link on http://<server address>/birt-viewer/index.jsp ?
Comment 2 Xiaoying Gu CLA 2011-02-24 20:34:38 EST
Since there is no response from the submitter, close this issue as worksforme.

Please feel free to reopen if any further information could be provided.
Comment 3 support CLA 2011-05-27 17:53:36 EDT
THIS DOES NOT WORK. NEVER HAS UNLESS YOU RUN THE RUNTIME IN ECLIPSE

simple test, test for yourself on live site using provided URLs.

BACKGROUND: BIRT Runtime running in Tomcat. 
Reports with no parameters work but those with just don't!

TESTS:

test 1)

Same report runs if parameters are passed

http://esq3.houdiniesq.com:80/rpt/run?__report=report/timebystaffbydate.rptdesign&__format=pdf&StartDate=01/01/2010&EndDate=01/01/2012&Staff=Colin

teste 2)

Call the same report so that the parameter window appears. Enter the parameters and click Ok and the following exception below URL is thrown.

http://esq3.houdiniesq.com:80/rpt/run?__report=report/timebystaffbydate.rptdesign&__format=pdf

EXCEPTION:

- The viewing session is not available or has expired.
org.eclipse.birt.report.exception.ViewerException: The viewing session is not available or has expired.
	at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:239)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	at java.lang.Thread.run(Thread.java:636)
Comment 4 Xiaoying Gu CLA 2011-06-01 23:12:34 EDT
In the birt.war or WebViewerExample, these is a embedded sample report test1.rptdesign, which also use a parameter.
Can you reproduce this issue if you preview the sample report test1.rptdesign?
Comment 5 support CLA 2011-06-02 11:34:31 EDT
(In reply to comment #4)
> In the birt.war or WebViewerExample, these is a embedded sample report
> test1.rptdesign, which also use a parameter.
> Can you reproduce this issue if you preview the sample report test1.rptdesign?

No it does not work. As I said no rptdesign that has a param window works. Here is a live link to the test1.rptdesign and the exception thrown when Ok is clicked. If the parameters are passed the reports run fine.

http://esq3.houdiniesq.com:80/rpt/run?__report=report/test1.rptdesign&__format=pdf


- The viewing session is not available or has expired.
org.eclipse.birt.report.exception.ViewerException: The viewing session is not available or has expired.
	at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:239)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:122)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	at java.lang.Thread.run(Thread.java:636)
Comment 6 Jason Weathersby CLA 2011-06-02 13:08:42 EDT
You have Tomcat running on port 80?  Any chance you could test another port?  Also can you try /preview instead of /run?

Jason
Comment 7 support CLA 2011-06-02 13:35:37 EDT
(In reply to comment #6)
> You have Tomcat running on port 80?  Any chance you could test another port? 
> Also can you try /preview instead of /run?
> 
> Jason

Changing port to 8080 or using preview has no change. You know I did provide the URL which you could see for yourself.

Same result. Port change does not help.

http://esq3.houdiniesq.com/rpt/preview?__report=report/timebystaffbydate.rptdesign&__format=pdf&


(In reply to comment #6)
> You have Tomcat running on port 80?  Any chance you could test another port? 
> Also can you try /preview instead of /run?
> 
> Jason
Comment 8 support CLA 2011-06-02 14:22:08 EDT
(In reply to comment #6)
> You have Tomcat running on port 80?  Any chance you could test another port? 
> Also can you try /preview instead of /run?
> 
> Jason

Changing port to 8080 or using preview has no change. You know I did provide the URL which you could see for yourself.

Same result. Port change does not help.

http://esq3.houdiniesq.com/rpt/preview?__report=report/timebystaffbydate.rptdesign&__format=pdf&


(In reply to comment #6)
> You have Tomcat running on port 80?  Any chance you could test another port? 
> Also can you try /preview instead of /run?
> 
> Jason
Comment 9 support CLA 2011-06-02 14:24:19 EDT
(In reply to comment #8)
> (In reply to comment #6)
> > You have Tomcat running on port 80?  Any chance you could test another port? 
> > Also can you try /preview instead of /run?
> > 
> > Jason
> 
> Changing port to 8080 or using preview has no change. You know I did provide
> the URL which you could see for yourself.
> 
> Same result. Port change does not help.
> 
> http://esq3.houdiniesq.com/rpt/preview?__report=report/timebystaffbydate.rptdesign&__format=pdf&
> 
> 
> (In reply to comment #6)
> > You have Tomcat running on port 80?  Any chance you could test another port? 
> > Also can you try /preview instead of /run?
> > 
> > Jason

Jason,

Sorry my last comment sounded rude. That wasn't my intention. I received a collision warning so I must have hit save before I finished editing my reply.
Comment 10 Jason Weathersby CLA 2011-06-02 14:27:28 EDT
Seems my comment did not go through.  What browser are you using to test?  Are cookies enabled?  This error appears to be happending when the AJAX framework calls the web services of the viewer.
Comment 11 support CLA 2011-06-02 15:13:40 EDT
(In reply to comment #10)
> Seems my comment did not go through.  What browser are you using to test?  Are
> cookies enabled?  This error appears to be happending when the AJAX framework
> calls the web services of the viewer.

Yes javascript and cookies enabled. Tried Safari, Chrome and Firefox.
Comment 12 Jason Weathersby CLA 2011-06-02 16:08:31 EDT
Are you using the browser on the same machine the viewer is deployed on?  Are tomcat connections going through a proxy?
Comment 13 support CLA 2011-06-02 17:25:37 EDT
(In reply to comment #12)
> Are you using the browser on the same machine the viewer is deployed on?  Are
> tomcat connections going through a proxy?

The server is remote. I;m thousands of miles away. No proxy.
Comment 14 support CLA 2011-06-02 17:40:34 EDT
(In reply to comment #12)
> Are you using the browser on the same machine the viewer is deployed on?  Are
> tomcat connections going through a proxy?

I'm accessing it just like you would. IF you click any of the URLs I have provided you would get the error hence so would I and our staff.
Comment 15 support CLA 2011-06-11 23:41:14 EDT
Just FYI,

fi i run tomcat locally on OSX with the BIRT runtime I get the same error so it has nothing to do with where the BIRT runtime is relative to the caller. Report designs with a Parameter throw an exception. Pass the parameters to the report instead and all is fine.
Comment 16 support CLA 2011-06-11 23:44:42 EDT
Just FYI,

fi i run tomcat locally on OSX with the BIRT runtime I get the same error so it has nothing to do with where the BIRT runtime is relative to the caller. Report designs with a Parameter throw an exception. Pass the parameters to the report instead and all is fine.

HERE are live test, same report. One with parameter window and the other passing the parameters instead.


http://esq3.houdiniesq.com:80/rpt/run?__report=report/timebystaffbydate.rptdesign&__format=pdf&StartDate=01/01/2010&EndDate=01/01/2012&Staff=Colin


http://esq3.houdiniesq.com:80/rpt/run?__report=report/timebystaffbydate.rptdesign&__format=pdf
Comment 17 support CLA 2011-08-19 17:34:52 EDT
Has anyone looked at this issue?

Once again live test - pass parameters report runs fine, run report so parameter window is used instead and you get the infamous exception..."The viewing session is not available or has expired"

Using Birt 3.7.0
Copied WebViewerExample folder (renamed to rpt) and dropped it into a instance of Tomcat (on CentOS) in the webapps folder. Simple Tomcat runtime deployment. Reports are stored in report subfolder but IT DOES NOT matter where the rptdesign is located.

*** here are two live test URLS. See for yourself. First runs fine, second does NOT!

http://esq3.houdiniesq.com:80/rpt/run?__report=report/timebystaffbydate.rptdesign&__format=pdf&StartDate=01/01/2010&EndDate=01/01/2012&Staff=Colin


http://esq3.houdiniesq.com:80/rpt/run?__report=report/timebystaffbydate.rptdesign&__format=pdf

*** Changing ports, server location (local/remote), using preview instead of run has no effect. Sample reports do not run. URLS for BIRT test reports below

http://esq3.houdiniesq.com:80/rpt/run?__report=report/test.rptdesign&__format=pdf

http://esq3.houdiniesq.com:80/rpt/run?__report=report/test1.rptdesign&__format=pdf


______________________________________

Same issue exist no change, no fix. Any report with a parameter window throws exception.


- The viewing session is not available or has expired.
org.eclipse.birt.report.exception.ViewerException: The viewing session is not available or has expired.
	at org.eclipse.birt.report.servlet.BaseReportEngineServlet.doGet(BaseReportEngineServlet.java:158)
	at org.eclipse.birt.report.servlet.BaseReportEngineServlet.doPost(BaseReportEngineServlet.java:224)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.eclipse.birt.report.servlet.BaseReportEngineServlet.service(BaseReportEngineServlet.java:116)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
	at java.lang.Thread.run(Thread.java:636)
Comment 18 Xiaoying Gu CLA 2011-08-24 03:47:18 EDT
I tried it in 3.7.0 release and tomcat 6.0, the question can't be reproduce.
Could you attach the report you preview or other information?