Bugs item #529079, was opened at 2002-03-12 13:29
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=529079&group_id=22866
Category: JBossCMP
Group: v3.0 Rabbit Hole
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Mac (macearl)
Assigned to: Dain Sundstrom (dsundstrom)
Summary: problem with CMP and compound keys
Initial Comment:
When invoking CMP setter on a entity that has a
compound primary key and is involved in a relationship
with another entity that has a compound primary key,
the container throws the following exception:
java.rmi.ServerException: RemoteException occurred in
server thread; nested exce
ption is:
java.rmi.ServerException: Internal error
getting primary key field member createDate
Embedded Exception
object is not an instance of declaring class; nested
exception is:
javax.ejb.EJBException: Internal error getting
primary key field member createDate
Embedded Exception
object is not an instance of declaring class
java.rmi.ServerException: Internal error getting
primary key field member createDate
Embedded Exception
object is not an instance of declaring class; nested
exception is:
javax.ejb.EJBException: Internal error getting
primary key field member createDate
Embedded Exception
object is not an instance of declaring class
javax.ejb.EJBException: Internal error getting primary
key field member createDate
Embedded Exception
object is not an instance of declaring class
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFro
mServer(StreamRemoteCall.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall
(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke
(UnicastRef.java:122)
at
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invok
e(Unknown Source)
at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.i
nvoke(JRMPInvokerProxy.java:128)
at
org.jboss.invocation.InvokerInterceptor.invoke
(InvokerInterceptor.java:108)
at
org.jboss.proxy.TransactionInterceptor.invoke
(TransactionInterceptor.java:73)
at org.jboss.proxy.SecurityInterceptor.invoke
(SecurityInterceptor.java:76)
at org.jboss.proxy.ejb.EntityInterceptor.invoke
(EntityInterceptor.java:116)
at org.jboss.proxy.ClientContainer.invoke
(ClientContainer.java:96)
at $Proxy3.setTestField(Unknown Source)
at com.sextanttech.client.Client.main
(Client.java:71)
java.lang.IllegalArgumentException: object is not an
instance of declaring class
<<no stack trace available>>
Problem seems to be isolated to the Many side of a One-
to-Many relationship. Attached file provides a
solution for testing, including a Test case suite
extended from JBossTestCase
----------------------------------------------------------------------
>Comment By: Dain Sundstrom (dsundstrom)
Date: 2002-03-12 16:29
Message:
Logged In: YES
user_id=251431
Fixed. JBossCMP was attempting to load the fk into an
object of the type of the current entity's pk instead of
the related entity's pk.
The custom pk code has not been tested well, so keep up the
good work.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2002-03-12 13:43
Message:
Logged In: NO
I have the same problem with a PK with just an int inside.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=529079&group_id=22866
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development