Mantis - Resin
Viewing Issue Advanced Details
824 minor always 01-06-06 11:12 01-10-06 14:50
sam  
 
urgent  
closed 3.0.15  
fixed  
none    
none 3.0.18  
0000824: IllegalStateException with CMP 2.1
(rep by C Amott)

That said, the logs that i generated for came from a setup in which we weren't doing any JTA stuff.

95% of the exceptions happened when trying to get a cmr one-to-many collections of child beans. eg. parent.getChildren() ....

14:40:15.202] Closing dangling connections. All connections must have a close() in a finally block.
[14:40:15.203] java.lang.IllegalStateException: unclosed connection: UserPoolItem[jdbc/webapp,48265] was allocated at
[14:40:15.203] at com.caucho.jca.UserPoolItem.<init>(UserPoolItem.java:112)
[14:40:15.203] at com.caucho.jca.UserPoolItem.<init>(UserPoolItem.java:118)
[14:40:15.203] at com.caucho.jca.PoolItem.toActive(PoolItem.java:256)
[14:40:15.203] at com.caucho.jca.ConnectionPool.allocateIdle(ConnectionPool.java:735)
[14:40:15.203] at com.caucho.jca.ConnectionPool.allocatePool(ConnectionPool.java:654)
[14:40:15.203] at com.caucho.jca.ConnectionPool.allocate(ConnectionPool.java:619)
[14:40:15.203] at com.caucho.jca.ConnectionPool.allocateConnection(ConnectionPool.java:516)
[14:40:15.203] at com.caucho.sql.DataSourceImpl.getConnection(DataSourceImpl.java:65)
[14:40:15.203] at com.caucho.sql.DBPool.getConnection(DBPool.java:593)
[14:40:15.203] at com.caucho.amber.connection.CacheConnectionImpl.getConnection(CacheConnectionImpl.java:306)
[14:40:15.203] at com.caucho.amber.connection.AmberConnectionImpl.prepareStatement(AmberConnectionImpl.java:696)
[14:40:15.203] at com.caucho.amber.query.UserQuery.executeQuery(UserQuery.java:354)
[14:40:15.203] at com.caucho.amber.query.UserQuery.executeQuery(UserQuery.java:320)
[14:40:15.203] at com.caucho.amber.query.UserQuery.list(UserQuery.java:461)
[14:40:15.203] at com.caucho.amber.collection.CollectionImpl.fill(CollectionImpl.java:166)
[14:40:15.203] at com.caucho.amber.collection.CollectionImpl.size(CollectionImpl.java:109)
[14:40:15.203] at java.util.ArrayList.<init>(ArrayList.java:133)
[14:40:15.203] at _ejb.companies.CompanyBean__EJB$Local.getSICClassifications(CompanyBean__EJB.java:1558)

And:

[14:40:03.523] Closing dangling connections. All connections must have a close() in a finally block.
[14:40:03.524] java.lang.IllegalStateException: unclosed connection: UserPoolItem[jdbc/webapp,47152] was allocated at
[14:40:03.524] at com.caucho.jca.UserPoolItem.<init>(UserPoolItem.java:112)
[14:40:03.524] at com.caucho.jca.UserPoolItem.<init>(UserPoolItem.java:118)
[14:40:03.524] at com.caucho.jca.PoolItem.toActive(PoolItem.java:256)
[14:40:03.524] at com.caucho.jca.ConnectionPool.allocateIdle(ConnectionPool.java:735)
[14:40:03.524] at com.caucho.jca.ConnectionPool.allocatePool(ConnectionPool.java:654)
[14:40:03.524] at com.caucho.jca.ConnectionPool.allocate(ConnectionPool.java:619)
[14:40:03.524] at com.caucho.jca.ConnectionPool.allocateConnection(ConnectionPool.java:516)
[14:40:03.524] at com.caucho.sql.DataSourceImpl.getConnection(DataSourceImpl.java:65)
[14:40:03.524] at com.caucho.sql.DBPool.getConnection(DBPool.java:593)
[14:40:03.524] at com.caucho.amber.connection.AmberConnectionImpl.getConnection(AmberConnectionImpl.java:666)
[14:40:03.524] at com.caucho.amber.connection.AmberConnectionImpl.prepareStatement(AmberConnectionImpl.java:696)
[14:40:03.524] at com.caucho.amber.query.UserQuery.executeQuery(UserQuery.java:354)
[14:40:03.524] at com.caucho.amber.query.UserQuery.executeQuery(UserQuery.java:320)
[14:40:03.524] at com.caucho.amber.query.UserQuery.list(UserQuery.java:461)
[14:40:03.524] at com.caucho.amber.collection.CollectionImpl.fill(CollectionImpl.java:166)
[14:40:03.524] at com.caucho.amber.collection.CollectionImpl.iterator(CollectionImpl.java:119)
pushDepth() and popDepth()?

Notes
(0000664)
ferg   
01-10-06 14:50   
ejb/0j21.

Entities were not properly detached at the end of a request causing state issues for subsequent requests.