1 Reply Latest reply on Sep 20, 2004 8:34 AM by thorsten maus

    jboss 3.2.5 finder produces nullpointer

    thorsten maus Newbie

      having problems deploying a simple finder method ...


      the xdoclet entry:

      * @ejb.finder
      * query="SELECT OBJECT(o) FROM User AS o"
      * signature="java.util.Collection findAll()"

      the jbosscmp-jdbc entry


      <query-method>
      <method-name>findAll</method-name>
      <method-params>
      </method-params>
      </query-method>
      <jboss-ql><![CDATA[SELECT OBJECT(o) FROM User AS o]]></jboss-ql>


      the ejb-jar entry

      <query-method>
      <method-name>findAll</method-name>
      <method-params>
      </method-params>
      </query-method>
      <ejb-ql><![CDATA[SELECT OBJECT(o) FROM User AS o]]></ejb-ql>


      the following exception appears while deploying the bean ...

      12:02:22,331 INFO [EjbModule] Deploying User
      12:02:23,296 ERROR [EntityContainer] Starting failed jboss.j2ee:jndiName=User,service=EJB
      java.lang.NullPointerException
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.getInstance(JDBCQueryManager.java:88)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCJBossQLQuery.(JDBCJBossQLQuery.java:39)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createJBossQLQuery(JDBCCommandFactory.java:72)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:254)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:498)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:396)


      thanks for your help