Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Viewer session expired issue(Viewer session expired issue on BIRT reports)
Viewer session expired issue [message #716093] Tue, 16 August 2011 12:52 Go to next message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Hey Jason

I have been intermittently getting an error / alert box during BIRT report loading saying "Viewer session has expired".

I am trying to render the BIRT report on the jsp file using the birt.tld. I use the birt:viewer tag here.

I have seen a lot of posts related to this topic but without any definitive solution.Could you please comment on this error? Please get back if you need any further assistance from me on the same.

Thanks much in anticipation.

Regards
Gaurav
Re: Viewer session expired issue [message #716235 is a reply to message #716093] Tue, 16 August 2011 18:01 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Gaurav,

Is there anyway in your code to reproduce the issue where we could test
it? Can you post the code and version of birt you are using?

Jason

On 8/16/2011 8:52 AM, Gaurav wrote:
> Hey Jason
>
> I have been intermittently getting an error / alert box during BIRT
> report loading saying "Viewer session has expired".
>
> I am trying to render the BIRT report on the jsp file using the
> birt.tld. I use the birt:viewer tag here.
>
> I have seen a lot of posts related to this topic but without any
> definitive solution.Could you please comment on this error? Please get
> back if you need any further assistance from me on the same.
>
> Thanks much in anticipation.
>
> Regards
> Gaurav
Re: Viewer session expired issue [message #717064 is a reply to message #716235] Fri, 19 August 2011 07:44 Go to previous messageGo to next message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Hey Jason,

Thanks for the reply and apologies for not writing earlier.

This issue is very inconsistent but let me check if I could arrange for a sample code for your team to test.

Best Regards
Gaurav
Re: Viewer session expired issue [message #735223 is a reply to message #716235] Tue, 11 October 2011 09:46 Go to previous messageGo to next message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Hey Jason

Its been long since I wrote on this issue. Unfortunately, this issue still haunts me. The only positive that has come up is I have been able to reproduce this issue, in a not very elegant fashion though.

What I noticed is that I get a "Viewing Session is not available or expired" every time I restart my tomcat server. This is the only consistent manner in which the error shows up.

I have a struts web application running on the apache-tomcat-6.0.18 server which interacts with the BIRT viewer(running on the same server in a different web app) via birt.tld using the frameset mapping.

Would this information help?

Thanks again.

Best Regards
Gaurav
Re: Viewer session expired issue [message #735285 is a reply to message #735223] Tue, 11 October 2011 12:31 Go to previous messageGo to next message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Also after doing a View Source on the screen,I noticed that the report which fails has an incorrect(compared with the folder name in the document folder) value for the field "Constants.viewingSessionId" in the java.

Following is the code from Attributes.jsp of the birt viewer project.

<script type="text/javascript">
// <![CDATA[

Constants.nullValue = '<%= IBirtConstants.NULL_VALUE %>';

// Request attributes
if ( !Constants.request )
{
Constants.request = {};
}
Constants.request.format = '<%= ParameterAccessor.getFormat(request) %>';
Constants.request.rtl = <%= ParameterAccessor.isRtl( request ) %>;
Constants.request.isDesigner = <%= ParameterAccessor.isDesigner() %>;
Constants.request.servletPath = "<%= request.getAttribute( "ServletPath" ) %>".substr(1);
<% IViewingSession viewingSession = ViewingSessionUtil.getSession(request);
String subSessionId = null;
if ( viewingSession != null )
{
subSessionId = viewingSession.getId();
}%>
Constants.viewingSessionId = <%= subSessionId!=null?"\"" + subSessionId + "\"":"null" %>;
// ]]>
</script>

[Updated on: Tue, 11 October 2011 13:22]

Report message to a moderator

Re: Viewer session expired issue [message #735302 is a reply to message #735285] Tue, 11 October 2011 13:40 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you open a bugzilla entry with steps to reproduce and post the bugid
here?

Jason

On 10/11/2011 8:31 AM, Gaurav wrote:
> Also after doing a View Source on the screen,I noticed that the report
> which fails has an incorrect(compared with the folder name in the
> document folder) value for the field "Constants.viewingSessionId" in the
> java.
> Not sure where this value gets populated from and how.
Re: Viewer session expired issue [message #754345 is a reply to message #735302] Wed, 02 November 2011 09:27 Go to previous messageGo to next message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Any updates on the Bug 342625. The issue I am facing is similar.
Re: Viewer session expired issue [message #755251 is a reply to message #754345] Mon, 07 November 2011 19:41 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Have you tried this with BIRT 3.7?

Jason

On 11/2/2011 5:27 AM, Gaurav wrote:
> Any updates on the Bug 342625. The issue I am facing is similar.
Re: Viewer session expired issue [message #755426 is a reply to message #755251] Tue, 08 November 2011 13:23 Go to previous messageGo to next message
Gaurav  is currently offline Gaurav Friend
Messages: 20
Registered: June 2011
Junior Member
Not really, haven't tried 3.7.

Re: Viewer session expired issue [message #755562 is a reply to message #755426] Tue, 08 November 2011 19:49 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you try it as a test?

Jason

On 11/8/2011 8:23 AM, Gaurav wrote:
> Not really, haven't tried 3.7.
>
>
Previous Topic:Dynamic HTML formatted tooltip in crosstab
Next Topic:Manipulate elements manually over script
Goto Forum:
  


Current Time: Tue Mar 19 14:04:37 GMT 2024

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

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

Back to the top