The viewing session is not available or has expired [message #633743] |
Tue, 19 October 2010 04:20  |
Eclipse User |
|
|
|
Hi , I am using
1. BIRT Report Designer :2.6.1 All-in-one
2. BIRT Runtime Release Build: 2.6.1
3. jdk 1.5.0
I get the error "The viewing session is not available or has expired" in both firefox and IE. if I refresh the page, the report loads properly.
How do I solve it?
|
|
|
|
|
|
|
|
Re: The viewing session is not available or has expired [message #634766 is a reply to message #634405] |
Sat, 23 October 2010 06:06   |
Eclipse User |
|
|
|
Hi jason,
I am not using jsp. I am using oracle apex 3.2 , which is a rapid application development tool for building websites and this runs on Oracle database. With this it is possible to create pages quickly. In one such page, I have two combo box's and a button and they are used to filter the various reports displayed.When a user filters a report , all the filters are stored as that users preference so that the next time the user logins, he should be able to see the report filtered according to his preference.
Now coming back ot birt, the iframe is printed on screen using javascript..
<script type="text/javascript">
document.writeln('<iframe id=ifrm1 src=\'\' width=800 height=600 />');
likewise for remaing iframes
</script>
During onload I am calling the function below...
function foo()
{
/*here some statements are there to get users preference and store in a variable called as param. In case the user has not filtered reports so far, I am using some default values for report paramters/filter and then the statement below follows */
var url='http://'+window.location.hostname+':80/birt-viewer/fram eset?__report=myreport.rptdesign'+param; //here param is the report paramer i.e. users filter
var ifrm=document.getElementById('ifrm1');
ifrm.src=url;
....
like wise for all reports
.....
}
When tomcat starts, the reports are displayed onload without the error . After sometime, when a user logins, he can see that error, so he has to refresh the page in order for the report to load. There is nothing in stack trace.In the viewer.properties files, I have
viewer.session.timeout=0
Kindly do let me know if you need any more inputs
regards
Sandy
|
|
|
Re: The viewing session is not available or has expired [message #635071 is a reply to message #634766] |
Mon, 25 October 2010 10:56   |
Eclipse User |
|
|
|
Sandy,
That property is for the viewer but Tomcat I believe defaults to a 30
minute session timeout. Do you think this may be the issue?
I think you can change this in the web.xml of
tomcat_home/conf/web.xml
<session-config>
<session-timeout>30</session-timeout>
</session-config>
Jason
On 10/23/2010 6:06 AM, sandy wrote:
> Hi jason,
>
> I am not using jsp. I am using oracle apex 3.2 , which is a rapid
> application development tool for building websites and this runs on
> Oracle database. With this it is possible to create pages quickly. In
> one such page, I have two combo box's and a button and they are used to
> filter the various reports displayed.When a user filters a report , all
> the filters are stored as that users preference so that the next time
> the user logins, he should be able to see the report filtered according
> to his preference. Now coming back ot birt, the iframe is printed on
> screen using javascript..
>
> <script type="text/javascript">
> document.writeln('<iframe id=ifrm1 src=\'\' width=800 height=600 />');
> likewise for remaing iframes
> </script>
>
> During onload I am calling the function below...
>
> function foo()
> {
>
> /*here some statements are there to get users preference and store in a
> variable called as param. In case the user has not filtered reports so
> far, I am using some default values for report paramters/filter and then
> the statement below follows */
>
> var url='http://'+window.location.hostname+':80/birt-viewer/fram
> eset?__report=myreport.rptdesign'+param; //here param is the report
> paramer i.e. users filter
> var ifrm=document.getElementById('ifrm1'); ifrm.src=url;
> ....
> like wise for all reports
> .....
> }
>
> When tomcat starts, the reports are displayed onload without the error .
> After sometime, when a user logins, he can see that error, so he has to
> refresh the page in order for the report to load. There is nothing in
> stack trace.In the viewer.properties files, I have
> viewer.session.timeout=0
>
> Kindly do let me know if you need any more inputs
>
> regards
>
> Sandy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: The viewing session is not available or has expired [message #677562 is a reply to message #666465] |
Wed, 08 June 2011 16:23  |
Eclipse User |
|
|
|
I will be comming back to this shortly, we are only getting this error on some pages.
We have a large app, some pages all work fine, other pages result in 50 % of cases on the first login give a "view session has expired....".
The scenario is that we have two applications hosted in Websphere, the OLTP app in one context using the birt viewer in a seperate content with e.g Websphere, with the OOLAP running reports via a relative url e.g./Viewer......
I found these suggestions and I will try these steps first and then get back :
-------------------
http://pipecuts.wordpress.com/2011/01/13/birt-the-viewing-session-is-not-available-or-has-expired/
1 WebViewer.display()
from a Eclipse RCP View calling to display a BIRT report and your report is open without any problem within the view, I know how much you are happy with BIRT.
However, if when you click on Print Report toolbar command, and choose HTML print format, you see your report opens in a Internet Explorer window with a exception as follows, maybe you want to read the rest of this post.
This seems to be a Internet Explorer policy with iframe, cookies and cross-site.
Here you are the complete stack trace:
view sourceprint?
01 org.eclipse.birt.report.exception.ViewerException: The viewing session is not available or has expired.
The actual workaround is disable the Internet Explorer Protected Mode for your site zone or something like that. Mine was intranet zone, it was easy! These are the steps:
1.Open IE.
2.From the IE command bar, choose Tools and then Internet Options.
3.In the Internet Options window, click on the Security tab.
4.Below the Security level for this zone area (in my case, it's Intranet), and directly above the Custom level... and Default level buttons, uncheck the Enable Protected Mode checkbox.
Note: disabling Protected Mode requires a restart of IE, as you may have seen next to the checkbox in this step.
5.Click OK on the Internet Options window.
6.If you're prompted with a Warning! dialog box, advising that The current security settings will put your computer at risk, click the OK button.
7.Close IE and then open it up again.
As I was advised by Jason I filed the bug ID 333931. The initial discussion about this started in BIRT forum on this topic.
That's it!
http://www.birt-exchange.org/org/forum/index.php/topic/17735-the-viewing-session-is-not-available-or-has-expired-again/page__s__e003379307e137920c24e2a6fcbc0487
Hello,
Today I encountered the same "The viewing session is not available or has expired." message again. Some months ago I managed to find a solution (see this post).
This time the issue was a bit different: it only happened when the reports were accessed from IE, but not from Firefox and only for some of them. Looking at the differences I saw that for some of the reports the URL included the hostname and for the others the IP address of the Tomcat server. The ones that were failing to be displayed were the ones accessed by IP.
So you could check how you are accessing the reports and how the URL is specified. In my case using the hostname of the machine hosting the Tomcat did the trick.
Regards,
Mudor
http://www.eclipse.org/forums/index.php?t=msg&goto=633743&S=03064e3e2ed2939c0a484443289d5b74#msg_633743
Can you open a bug for this? As a work around could you try to add
&__overwrite=true ? This will recreate the report document every time
but may get around the problem.
-------------------
|
|
|