Skip to main content



      Home
Home » Archived » BIRT » ViewerException in IE
ViewerException in IE [message #636013] Thu, 28 October 2010 19:26 Go to next message
Eclipse UserFriend
Hi,

BIRT 2.6.1
IE 8
Tomcat 6 and Websphere 6
URL https://localhost:8443/spear/frameset/admin?__showtitle=fals e&__locale=en_AU&__report=admin/organisationSummary. rptdesign


When I generate a report using the above URL, it renders fine, however I notice the following exceptoin in the logs. Doesn't happen if I'm using Chrome. Any ideas?

Thanks, Josh.

org.eclipse.birt.report.exception.ViewerException: There is no report design object available.
at org.eclipse.birt.report.context.ViewerAttributeBean.__init(V iewerAttributeBean.java:226)
at org.eclipse.birt.report.context.BaseAttributeBean.init(BaseA ttributeBean.java:233)
at org.eclipse.birt.report.context.ViewerAttributeBean.<init>(ViewerAttributeBean.java:118)
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 au.gov.vic.dse.lx.spear.web.servlets.BirtViewerServlet.__get Context(BirtViewerServlet.java:141)
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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil .java:244)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUt il.java:276)
Re: ViewerException in IE [message #636218 is a reply to message #636013] Fri, 29 October 2010 12:40 Go to previous messageGo to next message
Eclipse UserFriend
Josh,

Are you using a modified version of the Viewer?
admin is not a servlet mapping in the viewer.

Jason

On 10/28/2010 7:26 PM, Josh wrote:
> Hi,
>
> BIRT 2.6.1
> IE 8
> Tomcat 6 and Websphere 6
> URL
> https://localhost:8443/spear/frameset/admin?__showtitle=fals e&__locale=en_AU&__report=admin/organisationSummary. rptdesign
>
>
>
> When I generate a report using the above URL, it renders fine, however I
> notice the following exceptoin in the logs. Doesn't happen if I'm using
> Chrome. Any ideas?
>
> Thanks, Josh.
>
> org.eclipse.birt.report.exception.ViewerException: There is no report
> design object available.
> at org.eclipse.birt.report.context.ViewerAttributeBean.__init(V
> iewerAttributeBean.java:226)
> at org.eclipse.birt.report.context.BaseAttributeBean.init(BaseA
> ttributeBean.java:233)
> at
> org.eclipse.birt.report.context.ViewerAttributeBean.<init>(ViewerAttributeBean.java:118)
>
> 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 au.gov.vic.dse.lx.spear.web.servlets.BirtViewerServlet.__get
> Context(BirtViewerServlet.java:141)
> 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil .java:244)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> at org.apache.catalina.security.SecurityUtil.execute(SecurityUt
> il.java:276)
>
Re: ViewerException in IE [message #636406 is a reply to message #636218] Mon, 01 November 2010 01:38 Go to previous messageGo to next message
Eclipse UserFriend
Hi Jason,

Yes, it is a *slightly* modified version of the viewer application. The reports are secured via standard web.xml <security-constraint> entries, hence the url relating to 'admin'. The reports there are for admin only.

Having now put in some more logging, I can see the errors are due to the browser (IE) calling back (after the initial call) for the *.js resources, as per:-
https://localhost:8443/spear/frameset/birt/ajax/ui/dialog/Bi rtSimpleExportDataDialog.js


Because the 'frameset' is in those URL's, the ViewServlet gets invoked and it goes off looking for report parameters in the URL, which it can't find.

The interesting thing is that the callbacks are not shown in my logging when using Chrome, which explains the difference.

All that said, I'm still at a loss as to (a)how to get rid of these errors, and (b)why the behavior if different between browsers.

Thanks. Josh.
Re: ViewerException in IE [message #636494 is a reply to message #636406] Mon, 01 November 2010 11:13 Go to previous messageGo to next message
Eclipse UserFriend
The AJAX framework is using web service calls back to the viewer servlet
to get the parameter data. I believe the chrome issue may have already
been reported:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=326295

Jason



On 11/1/2010 1:38 AM, Josh wrote:
> Hi Jason,
>
> Yes, it is a *slightly* modified version of the viewer application. The
> reports are secured via standard web.xml <security-constraint> entries,
> hence the url relating to 'admin'. The reports there are for admin only.
> Having now put in some more logging, I can see the errors are due to the
> browser (IE) calling back (after the initial call) for the *.js
> resources, as per:-
> https://localhost:8443/spear/frameset/birt/ajax/ui/dialog/Bi rtSimpleExportDataDialog.js
>
>
>
> Because the 'frameset' is in those URL's, the ViewServlet gets invoked
> and it goes off looking for report parameters in the URL, which it can't
> find.
>
> The interesting thing is that the callbacks are not shown in my logging
> when using Chrome, which explains the difference.
>
> All that said, I'm still at a loss as to (a)how to get rid of these
> errors, and (b)why the behavior if different between browsers.
>
> Thanks. Josh.
Re: ViewerException in IE [message #636807 is a reply to message #636494] Tue, 02 November 2010 17:03 Go to previous messageGo to next message
Eclipse UserFriend
I was aware of that Chrome bug, however I don't think it's related to this issue. In fact, as mentioned, Chrome is working fine, it's actually IE that's reporting the errors.
Re: ViewerException in IE [message #636817 is a reply to message #636807] Tue, 02 November 2010 18:40 Go to previous messageGo to next message
Eclipse UserFriend
I've found that if I add the following to org.eclipse.birt.report.servlet.ViewerServlet, the errors are no longer reported:-

	@Override
	public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException
	{
		if (!((HttpServletRequest)req).getRequestURL().toString().endsWith(".js"))
		{
			super.service(req, res);
		}
	}


Is this something you might like committed?
Re: ViewerException in IE [message #636994 is a reply to message #636817] Wed, 03 November 2010 12:50 Go to previous messageGo to next message
Eclipse UserFriend
Can you open a bugzilla entry and suggest this mod?

Jason

On 11/2/2010 6:41 PM, Josh wrote:
> I've found that if I add the following to
> org.eclipse.birt.report.servlet.ViewerServlet, the errors are no longer
> reported:-
>
>
> @Override
> public void service(ServletRequest req, ServletResponse res) throws
> ServletException, IOException
> {
> if (!((HttpServletRequest)req).getRequestURL().toString().endsW ith( ".js"))
> {
> super.service(req, res);
> }
> }
>
>
> Is this something you might like committed?
>
Re: ViewerException in IE [message #637034 is a reply to message #636994] Wed, 03 November 2010 17:29 Go to previous message
Eclipse UserFriend
Done. https://bugs.eclipse.org/bugs/show_bug.cgi?id=329403

Regards, Josh.
Previous Topic:Data source URL
Next Topic:Font size handling in IE different
Goto Forum:
  


Current Time: Mon Jul 07 05:33:12 EDT 2025

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

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

Back to the top