|
Re: ViewerException in IE [message #636218 is a reply to message #636013] |
Fri, 29 October 2010 16:40 |
|
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 05:38 |
Josh Hall Messages: 31 Registered: October 2010 |
Member |
|
|
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 15:13 |
|
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 #636994 is a reply to message #636817] |
Wed, 03 November 2010 16:50 |
|
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?
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03650 seconds