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

Non-public timeout method fails

XMLWordPrintable

    • 0.1.1

      java.lang.RuntimeException: No method ejbTimeout(javax.ejb.Timer timer) found on bean TimerEJB
      at org.jboss.ejb3.EJBContainer.getTimeoutCallback(EJBContainer.java:1047)
      at org.jboss.ejb3.stateless.StatelessContainer.initializeTimeout(StatelessContainer.java:186)
      at org.jboss.ejb3.stateless.StatelessContainer.<init>(StatelessContainer.java:116)
      at org.jboss.ejb3.Ejb3AnnotationHandler.getStatelessContainer(Ejb3AnnotationHandler.java:313)
      at org.jboss.ejb3.Ejb3DescriptorHandler.getStatelessContainer(Ejb3DescriptorHandler.java:499)
      at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:206)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:720)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:671)
      at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:653)
      at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:616)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:493)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:175)
      ... 74 more
      Caused by: java.lang.NoSuchMethodException: org.jboss.ejb3.core.test..privatetimer.TimerEJB.ejbTimeout(javax.ejb.Timer)
      at java.lang.Class.getMethod(Class.java:1605)
      at org.jboss.ejb3.EJBContainer.getTimeoutCallback(EJBContainer.java:1039)
      ... 85 more

      EJB 3.0 18.2.2:
      A Timeout method can have public, private, protected, or package level access.

              rhn-engineering-cdewolf Carlo de Wolf
              rhn-engineering-cdewolf Carlo de Wolf
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: