Hi,
I'm having a problem running an example in "EJB" by Richard Monson-Haefel.
I've created a CMP Entity Bean and successfully deployed to the J2EE-RI Server.
However, when I ran the client I experience a RollbackException during create
I've tested my findByPrimaryKey and is working fine, so I guess the ejbLoad and ejbStore is ok too.
Thus, I check my SQL statement for create row
INSERT INTO CUSTOMER (FIRST_NAME, ID, LASTNAME) VALUES (?, ?, ?)
The problem is that my primary key is ID - Integer which is the first column in my table.
FIRST_NAME and LAST_NAME are char that sllow null.
Will the server be smart enough to know where to map the value for which column.
I've tried to switch the position of the column in the SQL statement but does not help.
Any advice is greatly appreciated.
Thanks.
Han Ming
##################################################
java.rmi.ServerException: RemoteException occurred in server
thread; nested exception is: java.rmi.RemoteException: Transaction aborted (possibly due to transaction time out).; nested exception is: javax.transaction.RollbackException; nested exception is: javax.transaction.RollbackExceptionjava.rmi.RemoteException: Transaction aborted (possibly due to transaction time out).; nested exception is: javax.transaction.RollbackException; nested exception is: javax.transaction.RollbackExceptionjavax.transaction.RollbackException <<no stack trace available>>