Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 83783 invoked from network); 26 Apr 2006 19:48:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Apr 2006 19:48:30 -0000 Received: (qmail 8900 invoked by uid 500); 26 Apr 2006 19:48:26 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 8845 invoked by uid 500); 26 Apr 2006 19:48:26 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 8834 invoked by uid 99); 26 Apr 2006 19:48:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 12:48:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2006 12:48:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BC8787142C8 for ; Wed, 26 Apr 2006 19:48:03 +0000 (GMT) Message-ID: <84482699.1146080883770.JavaMail.root@brutus> Date: Wed, 26 Apr 2006 19:48:03 +0000 (GMT+00:00) From: "Aaron Mulder (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Updated: (GERONIMO-1176) Bad "resource" reference is not caught at deployment time In-Reply-To: <510336827.1132059808550.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/GERONIMO-1176?page=all ] Aaron Mulder updated GERONIMO-1176: ----------------------------------- Fix Version: 1.1 (was: 1.2) Priority: Critical (was: Major) We should validate the file, certainly. We should not throw an NPE, certainly. Not sure the behavior described in the first comment is still applicable to 1.1 (without objectNameGroup); that can be investigated in more detail later. > Bad "resource" reference is not caught at deployment time > --------------------------------------------------------- > > Key: GERONIMO-1176 > URL: http://issues.apache.org/jira/browse/GERONIMO-1176 > Project: Geronimo > Type: Bug > Security: public(Regular issues) > Components: OpenEJB > Versions: 1.0-M5 > Environment: Windows XP, Sun JDK1.4.2_09 > Reporter: Manu T George > Assignee: Aaron Mulder > Priority: Critical > Fix For: 1.1 > > In openejb-jar.xml file for a cmp entity bean if the cmp-connection-factory element contains a name tag instead of a resource-link tag a null pointer exception is thrown instead of an error message shown during deployment. This is a problem with both the deployer and openEJB I guess. > > SystemDatasource > > Stack trace > Exception in thread "main" java.rmi.RemoteException: The bean encountered a non- > application exception. method; nested exception is: > java.lang.NullPointerException > at org.openejb.server.ejbd.EjbRequestHandler.invoke(EjbRequestHandler.ja > va:303) > at org.openejb.server.ejbd.EjbRequestHandler.doEjbHome_FIND(EjbRequestHa > ndler.java:394) > at org.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHa > ndler.java:209) > at org.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:150) > at org.openejb.server.ejbd.EjbServer.service(EjbServer.java:87) > at org.openejb.server.ejbd.EjbServer$$FastClassByCGLIB$$d379d2ff.invoke( > ) > at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) > at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod > Invoker.java:38) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio > n.java:118) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance. > java:760) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5 > 7) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat > ionInvoker.java:36) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro > xyMethodInterceptor.java:96) > at org.activeio.xnet.ServerService$$EnhancerByCGLIB$$461aa4d2.service( enerated>) > at org.activeio.xnet.ServicePool$2.run(ServicePool.java:67) > at org.activeio.xnet.ServicePool$3.run(ServicePool.java:90) > at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(Th > readPool.java:138) > at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown So > urce) > at java.lang.Thread.run(Unknown Source) > Caused by: java.lang.NullPointerException > at org.tranql.sql.DataSourceDelegate.getConnection(DataSourceDelegate.ja > va:36) > at org.tranql.sql.jdbc.JDBCQueryCommand.execute(JDBCQueryCommand.java:61 > ) > at org.openejb.entity.cmp.CMPFinder.execute(CMPFinder.java:98) > at org.openejb.entity.cmp.CollectionValuedFinder.execute(CollectionValue > dFinder.java:81) > at org.openejb.dispatch.DispatchInterceptor.invoke(DispatchInterceptor.j > ava:72) > at org.apache.geronimo.naming.java.ComponentContextInterceptor.invoke(Co > mponentContextInterceptor.java:56) > at org.openejb.ConnectionTrackingInterceptor.invoke(ConnectionTrackingIn > terceptor.java:81) > at org.openejb.entity.EntityInstanceInterceptor.invoke(EntityInstanceInt > erceptor.java:136) > at org.openejb.entity.cmp.InTxCacheInterceptor.invoke(InTxCacheIntercept > or.java:84) > at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(ContainerPo > licy.java:140) > at org.openejb.transaction.TransactionContextInterceptor.invoke(Transact > ionContextInterceptor.java:80) > at org.openejb.SystemExceptionInterceptor.invoke(SystemExceptionIntercep > tor.java:82) > at org.openejb.GenericEJBContainer.invoke(GenericEJBContainer.java:238) > at org.openejb.server.ejbd.EjbRequestHandler.invoke(EjbRequestHandler.ja > va:297) > ... 18 more -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira