geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manu T George (JIRA)" <...@geronimo.apache.org>
Subject [jira] Created: (GERONIMO-1176) Null pointer Exception occuring
Date Tue, 15 Nov 2005 13:03:28 GMT
Null pointer Exception occuring
-------------------------------

         Key: GERONIMO-1176
         URL: http://issues.apache.org/jira/browse/GERONIMO-1176
     Project: Geronimo
        Type: Bug
  Components: OpenEJB  
    Versions: 1.0-M5    
 Environment: Windows XP, Sun JDK1.4.2_09
    Reporter: Manu T George


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.

<cmp-connection-factory>
     <name>SystemDatasource</name>
</cmp-connection-factory>


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(
<generated>)
        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(<g
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


Mime
View raw message