Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow do debug AssertionError cannot be cast to Exception?
https://www.eclipse.org/forums/index.php/mv/msg/170475/541802/#msg_541802
org.apache.axis.AxisFault: ; nested exception is:
java.lang.ClassCastException: java.lang.AssertionError cannot be cast to java.lang.Exception
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) ~[axis.jar:na]
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:333) ~[axis.jar:na]
at org.apache.axis.strategies.InvocationStrategy.visit(Invocati onStrategy.java:32) ~[axis.jar:na]
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) ~[axis.jar:na]
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) ~[axis.jar:na]
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService .java:454) ~[axis.jar:na]
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 ) ~[axis.jar:na]
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServle t.java:699) ~[axis.jar:na]
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPost(BirtSoapMessageDispatcherServlet.java:265) [viewservlets.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) [javax.servlet_2.5.0.v200806031605.jar:na]
at org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBase.java:327) [axis.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet_2.5.0.v200806031605.jar:na]
at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.service(BirtSoapMessageDispatcherServlet.java:122) [viewservlets.jar:na]
at org.eclipse.equinox.http.registry.internal.ServletManager$Se rvletWrapper.service(ServletManager.java:180) [org.eclipse.equinox.http.registry_1.0.200.v20090520-1800.ja r:na]
at org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90) [org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800.jar :na]
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111) [org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800.jar :na]
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59) [org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800.jar :na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [javax.servlet_2.5.0.v200806031605.jar:na]
at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In ternalHttpServiceServlet.service(HttpServerManager.java:318) [org.eclipse.equinox.http.jetty_2.0.0.v20090520-1800.jar:na]
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder .java:502) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl er.java:380) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl er.java:181) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl er.java:765) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp er.java:152) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.jetty.Server.handle(Server.java:324) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio n.java:535) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.jetty.HttpConnection$RequestHandler.content(Http Connection.java:880) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:748) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 219) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn dPoint.java:409) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr eadPool.java:520) [org.mortbay.jetty.util_6.1.15.v200905182336.jar:na]
Caused by: java.lang.ClassCastException: java.lang.AssertionError cannot be cast to java.lang.Exception
at org.eclipse.birt.report.soapengine.processor.AbstractBaseCom ponentProcessor.process(AbstractBaseComponentProcessor.java: 116) ~[viewservlets.jar:na]
at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI mpl.getUpdatedObjects(BirtSoapBindingImpl.java:66) ~[viewservlets.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_20]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39) ~[na:1.6.0_20]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25) ~[na:1.6.0_20]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_20]
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP rovider.java:397) ~[axis.jar:na]
at org.apache.axis.providers.java.RPCProvider.processMessage(RP CProvider.java:186) ~[axis.jar:na]
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi der.java:323) ~[axis.jar:na]
... 30 common frames omitted
]]>Jonathan2010-06-22T14:56:07-00:00Re: How do debug AssertionError cannot be cast to Exception?
https://www.eclipse.org/forums/index.php/mv/msg/170475/541806/#msg_541806
Jason
On 6/22/2010 10:56 AM, Jonathan wrote:
> Birt loads up find but when we try to load a report we get the following
> error. How can we go about figuring out what we made wrong? Googling for
> something like this is sadly not so easy and my attempts has not come up
> with anything.
>
> org.apache.axis.AxisFault: ; nested exception is:
> java.lang.ClassCastException: java.lang.AssertionError cannot be cast to
> java.lang.Exception
> at org.apache.axis.AxisFault.makeFault(AxisFault.java:101) ~[axis.jar:na]
> at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi
> der.java:333) ~[axis.jar:na]
> at org.apache.axis.strategies.InvocationStrategy.visit(Invocati
> onStrategy.java:32) ~[axis.jar:na]
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> ~[axis.jar:na]
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) ~[axis.jar:na]
> at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService
> .java:454) ~[axis.jar:na]
> at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281 )
> ~[axis.jar:na]
> at org.apache.axis.transport.http.AxisServlet.doPost(AxisServle
> t.java:699) ~[axis.jar:na]
> at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer
> vlet.doPost(BirtSoapMessageDispatcherServlet.java:265)
> [viewservlets.jar:na]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> [javax.servlet_2.5.0.v200806031605.jar:na]
> at org.apache.axis.transport.http.AxisServletBase.service(AxisS
> ervletBase.java:327) [axis.jar:na]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> [javax.servlet_2.5.0.v200806031605.jar:na]
> at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer
> vlet.service(BirtSoapMessageDispatcherServlet.java:122)
> [viewservlets.jar:na]
> at org.eclipse.equinox.http.registry.internal.ServletManager$Se
> rvletWrapper.service(ServletManager.java:180)
> [org.eclipse.equinox.http.registry_1.0.200.v20090520-1800.ja r:na]
> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
> n.handleRequest(ServletRegistration.java:90)
> [org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800.jar :na]
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
> ssAlias(ProxyServlet.java:111)
> [org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800.jar :na]
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
> ce(ProxyServlet.java:59)
> [org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800.jar :na]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> [javax.servlet_2.5.0.v200806031605.jar:na]
> at org.eclipse.equinox.http.jetty.internal.HttpServerManager$In
> ternalHttpServiceServlet.service(HttpServerManager.java:318)
> [org.eclipse.equinox.http.jetty_2.0.0.v20090520-1800.jar:na]
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder
> .java:502) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandl
> er.java:380) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandl
> er.java:181) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandl
> er.java:765) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapp
> er.java:152) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.jetty.Server.handle(Server.java:324)
> [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnectio
> n.java:535) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.jetty.HttpConnection$RequestHandler.content(Http
> Connection.java:880) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:748)
> [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 219)
> [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 404)
> [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEn
> dPoint.java:409) [org.mortbay.jetty.server_6.1.15.v200905151201.jar:na]
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThr
> eadPool.java:520) [org.mortbay.jetty.util_6.1.15.v200905182336.jar:na]
> Caused by: java.lang.ClassCastException: java.lang.AssertionError cannot
> be cast to java.lang.Exception
> at org.eclipse.birt.report.soapengine.processor.AbstractBaseCom
> ponentProcessor.process(AbstractBaseComponentProcessor.java: 116)
> ~[viewservlets.jar:na]
> at org.eclipse.birt.report.soapengine.endpoint.BirtSoapBindingI
> mpl.getUpdatedObjects(BirtSoapBindingImpl.java:66) ~[viewservlets.jar:na]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[na:1.6.0_20]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
> ssorImpl.java:39) ~[na:1.6.0_20]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
> thodAccessorImpl.java:25) ~[na:1.6.0_20]
> at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_20]
> at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCP
> rovider.java:397) ~[axis.jar:na]
> at org.apache.axis.providers.java.RPCProvider.processMessage(RP
> CProvider.java:186) ~[axis.jar:na]
> at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvi
> der.java:323) ~[axis.jar:na]
> .. 30 common frames omitted
>
>]]>Jason Weathersby2010-06-22T15:11:26-00:00Re: How do debug AssertionError cannot be cast to Exception?
https://www.eclipse.org/forums/index.php/mv/msg/170475/545400/#msg_545400
< http://github.com/jonalv/bioclipse.brunn/blob/master/plugins /net.bioclipse.brunn.ui/src/net/bioclipse/brunn/ui/editors/m asterPlateEditor/MasterPlateReport.java#L224-234>
Sadly I did not write this code. It used to work earlier when we had Birt installed locally in Eclipse, now we have them in a separate target.platform and somewhere in this move this problem turned up. It's very difficult to know how to debug something like this though...
Do you have any suggestions? ]]>Jonathan2010-07-07T16:05:13-00:00Re: How do debug AssertionError cannot be cast to Exception?
https://www.eclipse.org/forums/index.php/mv/msg/170475/545404/#msg_545404
as a test?
Jason
On 7/7/2010 12:05 PM, Jonathan wrote:
> Yes our project (Bioclipse) have at least two features with plugins that
> use Birt for generating reports and we get the same error message in
> both cases. As for the question of how they are run I guess the best I
> can do is point at this code which is one example of how one report is run:
>
> < http://github.com/jonalv/bioclipse.brunn/blob/master/plugins /net.bioclipse.brunn.ui/src/net/bioclipse/brunn/ui/editors/m asterPlateEditor/MasterPlateReport.java#L224-234>
>
>
> Sadly I did not write this code. It used to work earlier when we had
> Birt installed locally in Eclipse, now we have them in a separate
> target.platform and somewhere in this move this problem turned up. It's
> very difficult to know how to debug something like this though...
>
> Do you have any suggestions?]]>Jason Weathersby2010-07-07T16:20:14-00:00Re: How do debug AssertionError cannot be cast to Exception?
https://www.eclipse.org/forums/index.php/mv/msg/170475/559197/#msg_559197
I have just completed building the birt_web application from the 2.5.2 release source using the following directions. ( http://wiki.eclipse.org/BIRT/FAQ/Birt_Project#Q:_How_do_I_ex port_the_2.5_BIRT_web_viewer.3F)
When trying to run the included sample reports, test.rptdesign and test1.rptdesign, I too get the java.lang.ClassCastException: java.lang.AssertionError cannot be cast to java.lang.Exception error.
What is missing?]]>Don Bergstrom2010-09-15T22:30:23-00:00Re: How do debug AssertionError cannot be cast to Exception?
https://www.eclipse.org/forums/index.php/mv/msg/170475/559453/#msg_559453
Can you post the complete stacktrace?
Jason
On 9/15/2010 6:30 PM, Don Bergstrom wrote:
> Jason,
>
> I have just completed building the birt_web application from the 2.5.2
> release source using the following directions.
> ( http://wiki.eclipse.org/BIRT/FAQ/Birt_Project#Q:_How_do_I_ex port_the_2.5_BIRT_web_viewer.3F)
>
> When trying to run the included sample reports, test.rptdesign and
> test1.rptdesign, I too get the java.lang.ClassCastException:
> java.lang.AssertionError cannot be cast to java.lang.Exception error.
>
> What is missing?]]>Jason Weathersby2010-09-16T16:57:25-00:00Re: How do debug AssertionError cannot be cast to Exception?
https://www.eclipse.org/forums/index.php/mv/msg/170475/559498/#msg_559498
It appears that the 2.5.2 version of the web viewer does not run when the -enableassertations flag is set. Setting the -disableassertations flag seems to ensure that the reports run with out the class cast exception for the assertation error.
This is also reproducable using the WebViewerExample app in the birt-runtime-2-5-2.zip file.]]>Don Bergstrom2010-09-16T20:44:12-00:00Re: How do debug AssertionError cannot be cast to Exception?
https://www.eclipse.org/forums/index.php/mv/msg/170475/559680/#msg_559680
Jason
On 9/16/2010 4:44 PM, Don Bergstrom wrote:
> It appears that the 2.5.2 version of the web viewer does not run when
> the -enableassertations flag is set. Setting the -disableassertations
> flag ensures that the reports run with out the class cast exception for
> the assertation error.]]>Jason Weathersby2010-09-17T14:52:45-00:00Re: How do debug AssertionError cannot be cast to Exception?
https://www.eclipse.org/forums/index.php/mv/msg/170475/559975/#msg_559975
https://bugs.eclipse.org/bugs/show_bug.cgi?id=325769]]>Don Bergstrom2010-09-20T15:13:42-00:00