I'm using JBoss 2.2.2 with JAWS-CMP and am having a wierd problem.
I have two CMP beans, both of which are keyed by an Integer value. I can
find no differences that would mean anything in their configuration via xml
descriptors.
I can invoke the findAll() method on each bean's home and get back a
Collection. When I iterate over the first collection, everything works as
expected. When I iterate over the second, I get an InvalidArgumentException
when attempting to access an attribute of the first entity in the collection
returned by findAll(). (It's actually trying to retrieve the data from the
DBMS on the first entity in the collection.) It is apparently being thrown
when the Integer key value is being used as a replaceable parameter on the
SQL query to select the row.
To simplify the problem, I tried testing the findByPrimaryKey method. It has
the same problem. What follows is the output of the JAWS system with
debugging turned on when attempting to execute the findByPrimaryKey method:
[JAWS] Exists command executing: SELECT COUNT(*) FROM MOVIES WHERE MovieID=?
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=7
[TheMovie] Activated bean TheMovie with id = 7
[JAWS] Load command executing: SELECT ReleaseDate, ...,MovieID, ... FROM
MOVIES WHERE MovieID=?
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=7
[TheMovie] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is:
java.lang.IllegalArgumentException; nested exception is:
java.rmi.ServerException: Load failed; nested exception is:
java.lang.IllegalArgumentException
[TheMovie] java.rmi.ServerException: Load failed; nested exception is:
[TheMovie] java.lang.IllegalArgumentException
Can anyone tell me what I could look at here? Is there any way to get JAWS
(or whoever generates the code for the implementation for the CMP bean) to
leave the code around so I can look at it?
I'd appreciate your help.
Richard Doust
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user