0 Replies Latest reply on Jan 17, 2006 4:40 AM by kickmetoandy

    NullPointerException when compiling EJB-QL statement

    kickmetoandy Newbie

      Hello all,

      i am using JBoss 4.0.3SP1 and xdoclet to generate the xml files. Everything
      worked fine with JBoss Version 3.2.7. After updating to 4.0.3 i am getting
      the following exception for one cmp bean (all other cmp beans are
      deployed fine) :

      org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'sele
      ct object(o) from MPaySaldo as o where o.saldo <= -100'; - nested throwable: (ja
      va.lang.NullPointerException)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.<init>(JDBCEJBQLQuery.j
      ava:52)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JD
      BCCommandFactory.java:60)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManage
      r.java:272)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDB
      CStoreManager.java:490)
       at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
      r.java:381)
       at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
      er.java:157)
       at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
      upport.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
      eanSupport.java:230)
       at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at
      ......
      



      <query>
       <query-method>
       <method-name>findForFlushing</method-name>
       <method-params>
       </method-params>
       </query-method>
       <ejb-ql>[CDATA[select object(o) from MPaySaldo as o where o.saldo <= -100 ]]</ejb-ql>
       </query>
      


      What can be the problem ? Thanks in advance.
      if you need more information, tell me.

      Andy