0 Replies Latest reply on Jan 21, 2002 11:14 AM by cepage

    AbstractMethodError

    cepage

      When I attempt to deploy my CMP 2.0 entity beans under JBoss 3.0 Alpha (W2K), I get the error message that I have reprinted below. The Deployment Descriptors have been successfully parsed and verified, and the error occurs when the container attempts to deploy the beans.

      The root issue appears to be an AbstractMethodError, which would occur if the container attempted to invoke an abstract method that was lacking an implementation. However, the only abstract methods in my beans are accessors that are compliant with the EJB 2.0 spec.

      For example, the remote interface defines:

      public String getLocationNumber() throws RemoteException;
      public void setLocationNumber(String locationNumber) throws RemoteException;

      The bean itself defines:

      public abstract String getLocationNumber();
      public abstract void setLocationNumber(String locationNumber);

      and the ejb-jar.xml defines:

      <cmp-field><field-name>locationNumber</field-name></cmp-field>

      What would cause the container to throw an AbstractMethodError?

      Thanks for your help,
      Corby

      ===================================

      [ContainerFactory,INFO] Deploying LocationEJB
      [ContainerFactory,INFO] Deploying LdcPointEJB
      [ContainerFactory,INFO] Deploying DeductPointEJB
      [ContainerFactory,INFO] Deploying BidirectionalPointEJB
      [J2eeDeployer#Default,ERROR] Starting Allocation.ear failed!
      javax.management.RuntimeErrorException: Error thrown in operation deploy
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      42)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:467)

      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
      444)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:215)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
      at java.lang.Thread.run(Unknown Source)
      [J2eeDeployer#Default,INFO] Module junitee.war is not running
      [J2eeDeployer#Default,INFO] Module Allocation.ear is not running
      [J2eeDeployer#Default,INFO] Destroying application Allocation.ear
      [J2eeDeployer#Default,INFO] Destroyed
      [AutoDeployer,ERROR] Deployment failed:file:/C:/alpha/jboss/deploy/Allocation.ea
      r
      org.jboss.deployment.J2eeDeploymentException: Error while starting Allocation.ea
      r: null, Cause: java.lang.AbstractMethodError
      at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:525)

      at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:
      444)
      at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:215)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
      at java.lang.Thread.run(Unknown Source)