0 Replies Latest reply on Jul 7, 2003 6:29 PM by mclark00

    NullPointerexception JDBCCommandFactory.java:137

    mclark00

      I'm running into a strange problem in the deployment of an entity bean where I'm getting the following exception:

      org.jboss.deployment.DeploymentException: Couldn't create entity command: ; - nested throwable: (java.lang.NullPointerException)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEntityCommand(JDBCCommandFactory.java:481)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManage(JDBCStoreManager.java:481)
      .
      .
      .

      Debug logs don't show anything interesting, and the line of code that contains the NPE looks like this:

      JDBCCreateEntityCommand cec = null;
      try{
      --Exception---> cec = (JDBCCreateEntityCommand)manager.getMetaData(),getEntityCommand().getCommandClass().newInstance();
      cec.init(manager);
      }
      catch( DeploymentException de )
      {
      throw de;
      }
      catch( Exception e )
      {
      throw new DeploymentException( "Couldn't create entity command: ", e );
      }

      log.debug("entity-command: " + manager.getMetaData().getEntityCommand());

      return cec;
      }


      I'm sure the problem is in our descriptors, which I can post, but I was hoping someone who has dealt with this code will recognize an easy thing that we might have done wrong.

      Thanks,
      Matt Clark