Bugs item #529079, was opened at 2002-03-12 11: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: Open
Resolution: None
Priority: 5
Submitted By: Mac (macearl)
Assigned to: Nobody/Anonymous (nobody)
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: Nobody/Anonymous (nobody)
Date: 2002-03-12 11: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

Reply via email to