It seems it is a bug... Environment: JBoss 3.2.7, JDK 1.5.0_04
Query text: SELECT OBJECT(s) FROM story s WHERE s.category = ?1 Relationship between category and story is one-to-many. When trying to execute something like this: storyHome.findByCategory(null) the following NPE occurs: java.lang.NullPointerException | at org.jboss.ejb.plugins.cmp.jdbc.QueryParameter.set(QueryParameter.java:288) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:222) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(JDBCAbstractQueryCommand.java:128) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBCFindEntityCommand.java:47) | at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.findEntity(JDBCStoreManager.java:589) | at org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersistenceManager.java:271) | at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.findEntity(CachedConnectionInterceptor.java:302) | at org.jboss.ejb.EntityContainer.findSingleObject(EntityContainer.java:1039) | at org.jboss.ejb.EntityContainer.findLocal(EntityContainer.java:623) Does anyone knows how to eliminate this? Thank you. PS. According to the EJB 2.0 Spec (section 11.2.9), null value as a query parameter value must be interpreteted as "is null" clause. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899608#3899608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3899608 ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user