1 Reply Latest reply on Dec 14, 2005 11:46 AM by Hugo

    Nullpointer in JDBCEJBQLQuery distinct

    Hugo Newbie

      Hello,

      I try to deploy an ejb2.ear that deploys ok on jboss 4.0.1sp1
      however I get the stacktrace included below.
      From what I can understand of the jboss code (which is limited) I think that
      the class JDBCEJBQLCompiler should handle the fact that rowlocking may return null; All other calls to getRowLockingTemplate() do.
      help?

      Hugo


      java.lang.NullPointerException
      2005-12-14 11:38:59,046 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.visit(JDBCEJBQLCompiler.java:653)
      2005-12-14 11:38:59,046 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.ejbql.ASTEJBQL.jjtAccept(ASTEJBQL.java:23)
      2005-12-14 11:38:59,046 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler.compileEJBQL(JDBCEJBQLCompiler.java:156)
      2005-12-14 11:38:59,046 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.(JDBCEJBQLQuery.java:43)
      2005-12-14 11:38:59,046 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createEJBQLQuery(JDBCCommandFactory.java:60)
      2005-12-14 11:38:59,046 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start(JDBCQueryManager.java:272)
      2005-12-14 11:38:59,046 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:490)
      2005-12-14 11:38:59,046 INFO [STDOUT] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:381)
      2005-12-14 11:38:59,046 INFO [STDOUT] at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:157)
      2005-12-14 11:38:59,046 INFO [STDOUT] at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)