users@glassfish.java.net

NullPointerException during the commit phase

From: <glassfish_at_javadesktop.org>
Date: Tue, 08 Jul 2008 03:09:38 PDT

We get the following Exception during the commit phase using MySql DB and Sailfin (build b35-beta).
Could anyone give us some suggestions on what is going on?


[#|2008-07-08T11:43:40.467+0200|INFO|sun-comms-appserver1.0|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-1;|Hibernate: update t_accounting set state=?, optLock=?, starttime=?, resultcode=?, session=?, sessionId=?, acctjid=?, serviceContextId=?, usedserviceunit=?, resultdetail=?, finalchunk=?, lastupdate=?, requestnumber=?, grantedUnits=?, subscriptionIdData=?, requestAction=?, chargingType=?, initialRequestParameter=?, IMSChargingID=?, tokentimer=?, schedId=?, calledAssertedIdentity=?, calledPartyAddress=?, callingPartyAddress=?, originatingIOI=?, sdpMediaDescription=?, sdpMediaName=?, sdpSessionDescription=?, terminatingIOI=? where acctid=? and optLock=?|#]

[#|2008-07-08T11:43:40.467+0200|SEVERE|sun-comms-appserver1.0|javax.enterprise.resource.resourceadapter|_ThreadID=20;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=174902c9-5cff-49fc-94f9-37a6e2b0eaf9;|RAR5031:System Exception.
java.lang.NullPointerException
        at com.sun.enterprise.resource.ConnectorXAResource.getResourceHandle(ConnectorXAResource.java:228)
        at com.sun.enterprise.resource.ConnectorXAResource.end(ConnectorXAResource.java:145)
        at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.delistResource(J2EETransactionManagerOpt.java:222)
        at com.sun.enterprise.resource.ResourceManagerImpl.unregisterResource(ResourceManagerImpl.java:265)
        at com.sun.enterprise.resource.ResourceManagerImpl.delistResource(ResourceManagerImpl.java:223)
        at com.sun.enterprise.resource.PoolManagerImpl.resourceClosed(PoolManagerImpl.java:400)
        at com.sun.enterprise.resource.LocalTxConnectionEventListener.connectionClosed(LocalTxConnectionEventListener.java:71)
        at com.sun.gjc.spi.ManagedConnection.connectionClosed(ManagedConnection.java:638)
        at com.sun.gjc.spi.base.ConnectionHolder.close(ConnectionHolder.java:201)
        at org.hibernate.connection.DatasourceConnectionProvider.closeConnection(DatasourceConnectionProvider.java:74)
        at org.hibernate.jdbc.ConnectionManager.closeConnection(ConnectionManager.java:445)
        at org.hibernate.jdbc.ConnectionManager.aggressiveRelease(ConnectionManager.java:400)
        at org.hibernate.jdbc.ConnectionManager.afterStatement(ConnectionManager.java:275)
        at org.hibernate.jdbc.ConnectionManager.flushEnding(ConnectionManager.java:474)
        at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:305)
        at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
        at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
        at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
        at org.hibernate.transaction.CacheSynchronization.beforeCompletion(CacheSynchronization.java:59)
        at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:423)
        at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371)
        at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3792)
        at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3585)
        at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1354)
        at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1316)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:205)
        at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:134)
        at $Proxy50.addOrUpdateAccounting(Unknown Source)
[Message sent by forum member 'micmazza' (micmazza)]

http://forums.java.net/jive/thread.jspa?messageID=284993