Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1512

@LocalBean @Asynchronous void methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.4
    • 4.0-beta-1
    • container system, ejb31
    • None

    Description

      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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: