Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1458

CCE upon returning EJB2.x Proxy to caller

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.0.0-Beta1
    • None
    • core
    • None

      Upon returning an EJB2.x Proxy to the caller, CCE. There are 2 root errors involved. One is in SLSB Container, upon localHomeCreate:

      Caused by: java.lang.ClassCastException
      at java.lang.Class.cast(Class.java:2951)
      at org.jboss.ejb3.stateless.StatelessContainer.invokeHomeCreate(StatelessContainer.java:631)
      at org.jboss.ejb3.session.SessionSpecContainer.invokeHomeMethod(SessionSpecContainer.java:304)
      at org.jboss.ejb3.session.SessionSpecContainer.invoke(SessionSpecContainer.java:187)

      Behind that is a CCE when the caller gets the requested Proxy:

      Caused by: java.lang.ClassCastException: $Proxy169
      at $Proxy172.create(Unknown Source)
      at blah.TestBean.getTwoLocal(TestBean.java:44)
      at blah.TestBeanBase.getInvokedBusinessInterfaceLocalIllegal(TestBeanBase.java:189)

              arubinge@redhat.com Andrew Rubinger (Inactive)
              arubinge@redhat.com Andrew Rubinger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: