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

@LocalBean @Asynchronous void methods

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.4
    • Fix Version/s: 4.0-beta-1
    • Component/s: container system, ejb31
    • Labels:
      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

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

              Dates

              • Created:
                Updated: