Bugs item #533572, was opened at 2002-03-22 07:16
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=533572&group_id=22866

Category: JBossCMP
Group: v3.0 Rabbit Hole
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Bohlen (mattes3)
>Assigned to: Dain Sundstrom (dsundstrom)
Summary: NullPointerException in EJBQL parser

Initial Comment:
OS = Win2K 
JDK = 1.3.1_02 

I have written an EJBQL query:
"SELECT DISTINCT OBJECT(c) FROM Customer AS c WHERE 
c.firstName = ?1"

Unfortunately, because of a typo, the EJB name in the 
deployment descriptor of my bean was not "Customer".

Upon deployment of the bean, the EJBQL parser crashed 
with a NullPointerException:

2002-03-22 14:06:04,790 ERROR 
[org.jboss.ejb.ContainerFactory] Could not deploy 
file:/D:/Programming/jboss-all/build/output/jboss-
3.0.0alpha/tmp/deploy/Default/samples.ear
java.lang.NullPointerException
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.<init>
(JDBCEJBQLQuery.java:54)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.creat
eEJBQLQuery(JDBCCommandFactory.java:49)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCQueryManager.start
(JDBCQueryManager.java:182)
        at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start
(JDBCStoreManager.java:309)
        at 
org.jboss.ejb.plugins.CMPPersistenceManager.start
(CMPPersistenceManager.java:175)
        at org.jboss.ejb.EntityContainer.start
(EntityContainer.java:341)
        at org.jboss.ejb.Application.start
(Application.java:219)
        at org.jboss.ejb.ContainerFactory.deploy
(ContainerFactory.java:389)
        at org.jboss.ejb.ContainerFactory.deploy
(ContainerFactory.java:312)
        at java.lang.reflect.Method.invoke(Native 
Method)
        at 
com.sun.management.jmx.MBeanServerImpl.invoke
(MBeanServerImpl.java:1628)
        at 
com.sun.management.jmx.MBeanServerImpl.invoke
(MBeanServerImpl.java:1523)
        at 
org.jboss.deployment.J2eeDeployer.startModules
(J2eeDeployer.java:468)
        at 
org.jboss.deployment.J2eeDeployer.startApplication
(J2eeDeployer.java:439)
        at org.jboss.deployment.J2eeDeployer.deploy
(J2eeDeployer.java:203)
        at java.lang.reflect.Method.invoke(Native 
Method)
        at 
com.sun.management.jmx.MBeanServerImpl.invoke
(MBeanServerImpl.java:1628)
        at 
com.sun.management.jmx.MBeanServerImpl.invoke
(MBeanServerImpl.java:1523)
        at org.jboss.deployment.AutoDeployer.deploy
(AutoDeployer.java:681)
        at org.jboss.deployment.AutoDeployer.run
(AutoDeployer.java:325)
        at java.lang.Thread.run(Thread.java:484)

The parser should have given an error message instead.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=533572&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to