-
1. Re: Primary key exception
rilux Mar 10, 2002 4:47 PM (in response to rilux)Sorry, the whole exception is:
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
javax.transaction.TransactionRolledbackException: Could not create primary key; nested exception is:
java.lang.InstantiationException: java.lang.Integer; nested exception is:
java.rmi.ServerException: Could not create primary key; nested exception is:
java.lang.InstantiationException: java.lang.Integer
javax.transaction.TransactionRolledbackException: Could not create primary key; nested exception is:
java.lang.InstantiationException: java.lang.Integer; nested exception is:
java.rmi.ServerException: Could not create primary key; nested exception is:
java.lang.InstantiationException: java.lang.Integer
java.rmi.ServerException: Could not create primary key; nested exception is:
java.lang.InstantiationException: java.lang.Integer
java.lang.InstantiationException: java.lang.Integer
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown Source)
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:258)
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
at $Proxy0.create(Unknown Source)
I am specifying the primary key when I create the object.
Rilux -
2. Re: Primary key exception
dsundstrom Mar 10, 2002 5:17 PM (in response to rilux)Look in the server.log file in the log directory. It should have a much more detailed exception.
Are you using a custom primary key? If so, is it specified correctly in the ejb-jar.xml file?
Are you using an unknown primary-key? If so, this is not supported yet. -
3. Re: Primary key exception
rilux Mar 11, 2002 9:10 AM (in response to rilux)There was an error in ejb-xml.
D'Oh!