[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-user
Subject:    [JBoss-user] Unknown Managed Connection (Managed Connection : null)
From:       "Meyer-Willner, Bernhard" <Bernhard.Meyer-Willner () logicacmg ! com>
Date:       2003-05-29 11:01:43
[Download RAW message or body]

Hi,

I'm using CMP entity beans with CMR together with XDoclet generated value
objects on JBoss 3.0.5. This works really good, except for once.

Setup is as such:

YetAnotherVO n <--- 1 AnotherVO 1 <--- 1 MainVO 1 ----> n AndAThirdVO

MainVO includes all other VO's, calling setValue() on MainVO also sets the
value on the other VO's in the graph, creates them, removes them, or updates
them respectively. This works fine except for the scenario when I try to
remove or update a YetAnotherVO. Creating a new YetAnotherVO works, but
trying to remove or update an existing one results in the following
stacktrace. I'm starting the transaction (Container Managed: Required) in a
session facade bean fronting the entity beans. What is going wrong here! I
don't have a clue...

Thanks,
Bernie


13:01:23,289 ERROR [LogInterceptor] TransactionRolledbackLocalException,
causedBy:
java.lang.IllegalArgumentException: disconnect(ManagedConnection mc: null,
Object c: org.jboss.resou
rce.adapter.jdbc.local.LocalConnection@1c2b60e) called with unknown managed
connection
        at
org.jboss.resource.connectionmanager.BaseConnectionManager2.unregisterAssoci
ation(BaseCon
nectionManager2.java:661)
        at
org.jboss.resource.connectionmanager.BaseConnectionManager2.disconnect(BaseC
onnectionMana
ger2.java:619)
        at
org.jboss.resource.connectionmanager.CachedConnectionManager.disconnect(Cach
edConnectionM
anager.java:371)
        at
org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObj
ect(CachedCon
nectionManager.java:160)
        at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
edConnectionI
nterceptor.java:190)
        at
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInt
erceptor.java
> 90)
        at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce
ptor.java:168
)
        at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav
a:107)
        at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterce
ptor.java:69)

        at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:107)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:228)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:92)
        at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:13
0)
        at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204)
        at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493)
        at
org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContai
nerInvoker.ja
va:301)
        at
org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
        at $Proxy784.setValue(Unknown Source)
        at
com.logica.isis.server.al.component.spbauspar.bauspar.BausparCMP.setValueInt
ernal(Bauspar
CMP.java:211)
        at
com.logica.isis.server.al.component.spbauspar.bauspar.BausparCMP.setValue(Ba
usparCMP.java
> 149)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.ja
va:1194)
        at
org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationIn
terceptor.jav
a:95)
        at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchron
izationInterc
eptor.java:303)
        at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach
edConnectionI
nterceptor.java:186)
        at
org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInt
erceptor.java
> 90)
        at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce
ptor.java:168
)
        at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav
a:107)

This e-mail and any attachment is for authorised use by the intended
recipient(s) only.  It may contain proprietary material, confidential
information and/or be subject to legal privilege.  It should not be copied,
disclosed to, retained or used by, any other party.  If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender.  Thank you.


-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

This e-mail and any attachment is for authorised use by the intended recipient(s) \
only.  It may contain proprietary material, confidential information and/or be \
subject to legal privilege.  It should not be copied, disclosed to, retained or used \
by, any other party.  If you are not an intended recipient then please promptly \
delete this e-mail and any attachment and all copies and inform the sender.  Thank \
you.


-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic