Bugs item #580529, was opened at 2002-07-12 13:17
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=580529&group_id=22866
Category: JBossTX
Group: v3.0 Rabbit Hole
Status: Open
Resolution: Accepted
Priority: 5
Submitted By: Jacek Bialecki (jacekb)
Assigned to: David Jencks (d_jencks)
Summary: Transaction and ManagedConnection error
Initial Comment:
I've downloaded a Branch_3_0 of JBoss sources from
CVS and compiled them. My app encounters a problem
with transactions which didn't appeared in "stable"
JBoss 3.0.0 version.
Detailed description:
Somewhere in my code I create a new instance of 'Doc'
BMP bean:
Doc upperDoc = docHome.findByPrimaryKey
(new Integer(666));
Doc = docHome.create(upperDoc);
This id fragment of DocBean class:
public class DocBean implements EntityBean {
private EntityContext context;
public Integer getId() {
...;
}
public void setId(Integer id) {
...
}
public Integer ejbCreate(Doc upperDoc)
throws DuplicateKeyException,CreateException {
...
return getId();
}
public void ejbPostCreate(Doc upperDoc) {
...
upperDoc.doSomething((Doc)
context.getEJBLocalObject()); // pass a reference to a
local object
}
public void doSomething(Doc d) {
Doc upperDoc = (Doc)
context.getEJBLocalObject();
Integer i = upperDoc.getId(); //
THIS LINE CRUSHES !!!
...
}
}
Console throws tons of exceptions. Begin:
12:41:30,623 WARN
[org.jboss.resource.connectionmanager.LocalTxConnecti
onManager] reconnecting a connection handle that
still has a managedConnection!
org.jboss.resource.adapter.jdbc.local.LocalManagedCon
nection@6708b2 org.jboss.resource.a
dapter.jdbc.local.LocalConnection@71dfd7
12:41:30,623 ERROR
[org.jboss.ejb.plugins.LogInterceptor]
TransactionRolledbackException, causedBy:
java.lang.IllegalArgumentException: reconnect
(ConnectionRecord cr) called with a non null
ManagedConnection that was not
killed!
at
org.jboss.resource.connectionmanager.BaseConnection
Manager2.reconnect(BaseConnectionManager2.java:582)
at
org.jboss.resource.connectionmanager.CachedConnectio
nManager.reconnect
(CachedConnectionManager.java:339)
at
org.jboss.resource.connectionmanager.CachedConnectio
nManager.pushMetaAwareObject
(CachedConnectionManager.java
:137)
at
org.jboss.resource.connectionmanager.CachedConnectio
nInterceptor.invoke
(CachedConnectionInterceptor.java:183)
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke
(EntityInstanceInterceptor.java:152)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke
(EntityLockInterceptor.java:107)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke
(EntityCreationInterceptor.java:69)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext
(AbstractTxInterceptor.java:96)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransacti
ons(TxInterceptorCMT.java:176)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke
(TxInterceptorCMT.java:61)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke
(SecurityInterceptor.java:129)
at org.jboss.ejb.plugins.LogInterceptor.invoke
(LogInterceptor.java:183)
at org.jboss.ejb.EntityContainer.invoke
(EntityContainer.java:493)
at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.inv
oke(BaseLocalContainerInvoker.java:296)
at org.jboss.ejb.plugins.local.EntityProxy.invoke
(EntityProxy.java:38)
...
and so on.
What could be a problem?
----------------------------------------------------------------------
>Comment By: Jacek Bialecki (jacekb)
Date: 2002-07-22 13:16
Message:
Logged In: YES
user_id=571923
Yes, "Doc" bean is marked as reentrant.
----------------------------------------------------------------------
Comment By: David Jencks (d_jencks)
Date: 2002-07-12 14:00
Message:
Logged In: YES
user_id=60525
Can you confirm that your bean is reentrant?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=580529&group_id=22866
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development