1 Reply Latest reply on Jul 31, 2002 6:36 PM by Brian Macy

    Weird VerifyError on deploy

    Brian Macy Newbie

      I have an MBean that calls a function on a Stateless Session Bean. If I redeploy the EJBs (which the Stateless Session Bean is part of) I get a VerifyError exception:

      14:22:15,039 ERROR [EJBDeployer] Verfiy failed
      java.lang.VerifyError: (class: com/pany/session/AlertEngineBean, method: getNextAlertProcessor signature: ()Lcom/pany/interfaces/Processor;) Incompatible object argument for function call

      This particular function takes no arguements and returns a Processor object (which despite the class path is an abstract base class and not an interface). Processor is not an EJB but is serializable.

      Anyways, I don't know why this error would occur. This in on 3.0.0 or 3.0.1rc1 (which 3.0.1rc1 got rid of the Circularity and other weird problems I was having with stock 3.0.0).

      Brian Macy

        • 1. Re: Weird VerifyError on deploy
          Brian Macy Newbie

          And for the full stacktrace (note this deploy is done by touching the existing jar file):

          14:45:44,465 ERROR [EJBDeployer] Verfiy failed
          java.lang.VerifyError: (class: com/pany/session/AlertEngineBean, method: getNextAlertProcessor signature: ()Lcom/pany/interfaces/Processor;) Incompatible object argument for function call
          at java.lang.Class.getDeclaredMethods0(Native Method)
          at java.lang.Class.privateGetDeclaredMethods(Class.java:1613)
          at java.lang.Class.privateGetPublicMethods(Class.java:1641)
          at java.lang.Class.getMethods(Class.java:805)
          at org.jboss.verifier.strategy.AbstractVerifier.hasEJBCreateMethod(AbstractVerifier.java:638)
          at org.jboss.verifier.strategy.EJBVerifier20.verifySessionBean(EJBVerifier20.java:963)
          at org.jboss.verifier.strategy.EJBVerifier20.checkSession(EJBVerifier20.java:90)
          at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:133)
          at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:346)
          at org.jboss.deployment.MainDeployer.create(MainDeployer.java:740)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:614)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:581)
          at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:324)
          at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
          at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
          at $Proxy4.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:412)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:530)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:202)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)