Details
-
Bug
-
Resolution: Done
-
Major
-
JBossAS-3.2.6 Final
-
None
Description
SourceForge Submitter: pkorros .
I have a home method in my cmp entity bean
public Page ejbHomeGetUsers(
int offset,
int limit)
throws FinderException
);
return new Page(users, userCount, offset);
}
There is a bug in jboss 3.2.x (confirmed for Jboss
3.2.2RC4 and 3.2.2Final) that causes the second call to
ejbSelectGeneric to return a collection of o.id elements
instead of User objects.
When I changed the code that counts the elements to:
long userCount = ((Long) ejbSelectGeneric("SELECT
OBJECT( o ) FROM User o ", new Object[0]) .size();
Everything worked ok.