@LocalBean @Asynchronous void methods
-------------------------------------

                 Key: OPENEJB-1512
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1512
             Project: OpenEJB
          Issue Type: Bug
          Components: container system, ejb31
    Affects Versions: 3.1.4
            Reporter: David Blevins
             Fix For: 4.0-beta-1


Any @Asynchronous method that returns void and has an @LocalBean proxy results 
in:

java.lang.ClassCastException: 
org.apache.openejb.core.ivm.EjbObjectProxyHandler$FutureAdapter cannot be cast 
to java.lang.Void
        at 
org.superbiz.accesstimeout.BusyBee$LocalBeanProxy.stayBusy(org/superbiz/accesstimeout/BusyBee.java)
        at org.superbiz.accesstimeout.BusyBeeTest.test(BusyBeeTest.java:37)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at 
com.intellij.junit3.JUnit3IdeaTestRunner.doRun(JUnit3IdeaTestRunner.java:108)
        at 
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:64)


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to