Bugs item #889337, was opened at 2004-02-03 00:10
Message generated for change (Comment added) made by loubyansky
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=889337&group_id=22866
Category: JBossCMP
Group: CVS HEAD
Status: Open
Resolution: None
Priority: 5
Submitted By: Rich C. (rchristy63)
Assigned to: Alexey Loubyansky (loubyansky)
Summary: Read-ahead fails on one-to-one relationship
Initial Comment:
OS: Linux Redhat 9/Windows XP
JDK: 1.4.2
JBOSS version: cvs head as of 1/21/03 (3.2.4 R1)
Since JBOSS only allows one table per bean, we simulate
inheritance of entity beans using delegation. So say
Bean A is a base class, Bean B has a getBeanA() method
which delegates all "inherited" calls through this
one-to-one relationship. This has worked correctly on
past releases of JBOSS. However in the version I built
off the cvs head, we noticed the following behavior by
stepping through the cmp code. If Bean B has a preload
strategy of none, than everything works correctly. I
can read one or many Bean Bs and everything works.
However, changing preload strategy to either
on-find/on-load, causes the following exception only if
multiple bean Bs are returned by a finder (the first
one successfully is read and cached, the error occurs
on the second bean always retrieving the getBeanA
relation from the preload cache)
15:30:08,759 ERROR [LogInterceptor]
TransactionRolledbackLocalException in method: public
abstract java.util.Map
com.rcm.securitiesservice.ejbinterfaces.domain.Security.getSecurityProperties(),
causedBy:
javax.ejb.NoSuchObjectLocalException: New value
[2850513] of a foreign key field securityID changed the
value of a primary key field securityID[null]
at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:142)
at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:89)
at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:54)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:147)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:489)
at
org.jboss.ejb.Container.invoke(Container.java:700)
at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
at
org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
at $Proxy1441.getSecurityProperties(Unknown Source)
at
com.rcm.securitiesservice.serversupport.SecuritiesValueObjectFactory.fillSecurityValueObject(SecuritiesValueObjectFactory.java:499)
We are just if something has changed to cause this to
no longer work. Preloading strategy seems to work
correctly for other one-to-one relationships, just not
this particular relationship
Thanks,
Rich
----------------------------------------------------------------------
>Comment By: Alexey Loubyansky (loubyansky)
Date: 2004-02-04 17:47
Message:
Logged In: YES
user_id=543482
The foreign key must be mapped to primary key column[s]. I
need more details to reproduce this. My simple tests pass.
This stacktrace snippet does not help. It would be helpful
to see the stacktrace starting from JDBCCMP2xFieldBridge. If
you have a testcase, please, attach.
Thanks.
----------------------------------------------------------------------
Comment By: Rich C. (rchristy63)
Date: 2004-02-03 00:14
Message:
Logged In: YES
user_id=959867
Just to clarify, this works correctly with JBOSS version
3.2.2RC4 and 3.2.3RC1, but not in 3.2.4RC1 that we built
from the cvs head.
Thanks again,
Rich
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=889337&group_id=22866
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development