[jboss-jira] [JBoss JIRA] (AS7-1658) Referencing a remote business view within the same server leads to CCE

Peer Bech Hansen (JIRA) jira-events at lists.jboss.org
Wed Mar 7 15:57:36 EST 2012


    [ https://issues.jboss.org/browse/AS7-1658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674889#comment-12674889 ] 

Peer Bech Hansen edited comment on AS7-1658 at 3/7/12 3:56 PM:
---------------------------------------------------------------

It looks like the error is not fixed in JBoss AS 7.1.0.final.

I'v got the exact same problem in a new projekt:

21:46:27,255 ERROR [stderr] (http--127.0.0.1-8080-1) java.lang.ClassCastException: com.monzware.emms.MetricServiceLocal$$$view1 cannot be cast to com.monzware.emms.MetricServiceLocal
21:46:27,257 ERROR [stderr] (http--127.0.0.1-8080-1)    at com.monzware.emms.MetricService.getService(MetricService.java:35)
21:46:27,258 ERROR [stderr] (http--127.0.0.1-8080-1)    at com.monzware.emms.MetricService.getMetric(MetricService.java:26)
21:46:27,259 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:46:27,259 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
21:46:27,260 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
21:46:27,261 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Method.java:597)
21:46:27,262 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155)
21:46:27,263 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
21:46:27,264 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
21:46:27,265 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
21:46:27,266 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525)
21:46:27,267 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)
21:46:27,267 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
21:46:27,268 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
21:46:27,269 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
21:46:27,270 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
21:46:27,271 ERROR [stderr] (http--127.0.0.1-8080-1)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
21:46:27,272 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
21:46:27,272 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
21:46:27,274 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
21:46:27,275 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
21:46:27,275 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154)
21:46:27,277 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
21:46:27,277 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
21:46:27,278 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
21:46:27,280 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
21:46:27,281 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
21:46:27,282 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
21:46:27,283 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
21:46:27,284 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.Thread.run(Thread.java:662)
                
      was (Author: bech):
    I looks like the error is not fixed in JBoss AS 7.1.0.final.

I'v got the exact same problem in a new projekt:

21:46:27,255 ERROR [stderr] (http--127.0.0.1-8080-1) java.lang.ClassCastException: com.monzware.emms.MetricServiceLocal$$$view1 cannot be cast to com.monzware.emms.MetricServiceLocal
21:46:27,257 ERROR [stderr] (http--127.0.0.1-8080-1)    at com.monzware.emms.MetricService.getService(MetricService.java:35)
21:46:27,258 ERROR [stderr] (http--127.0.0.1-8080-1)    at com.monzware.emms.MetricService.getMetric(MetricService.java:26)
21:46:27,259 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
21:46:27,259 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
21:46:27,260 ERROR [stderr] (http--127.0.0.1-8080-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
21:46:27,261 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.reflect.Method.invoke(Method.java:597)
21:46:27,262 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155)
21:46:27,263 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
21:46:27,264 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
21:46:27,265 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
21:46:27,266 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525)
21:46:27,267 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502)
21:46:27,267 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
21:46:27,268 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
21:46:27,269 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
21:46:27,270 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
21:46:27,271 ERROR [stderr] (http--127.0.0.1-8080-1)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
21:46:27,272 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
21:46:27,272 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
21:46:27,274 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
21:46:27,275 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
21:46:27,275 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154)
21:46:27,277 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
21:46:27,277 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
21:46:27,278 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
21:46:27,280 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
21:46:27,281 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
21:46:27,282 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
21:46:27,283 ERROR [stderr] (http--127.0.0.1-8080-1)    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
21:46:27,284 ERROR [stderr] (http--127.0.0.1-8080-1)    at java.lang.Thread.run(Thread.java:662)
                  
> Referencing a remote business view within the same server leads to CCE
> ----------------------------------------------------------------------
>
>                 Key: AS7-1658
>                 URL: https://issues.jboss.org/browse/AS7-1658
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.0.1.Final
>            Reporter: Carlo de Wolf
>            Assignee: Stuart Douglas
>            Priority: Critical
>             Fix For: 7.1.0.Beta1
>
>         Attachments: AS7-1658-testcase.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list