File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes findAll methods Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "findAll methods " Watch "findAll methods " New topic
Author

findAll methods

Ram Pra
Ranch Hand

Joined: Feb 06, 2001
Posts: 37
What are all the reasons for which a findAll method returns a 0 collection, we are using JRun4 and the findBy primary key works fine where as all the findAll methods return a collection of size 0.
Thanks,
Ram Pra
Eduard Manas
Ranch Hand

Joined: May 12, 2002
Posts: 69
I assume you mean that it returns an empty collection.
When a finder method returns an empty collection, and it doesn't throw any exception (either FinderException or RemoteException), it means that either it has not found any matches in the database or the SQL query of the finder method is wrong.
Eduard
Ram Pra
Ranch Hand

Joined: Feb 06, 2001
Posts: 37
Thank you,
That was a problem with the JRun server, once I installed their patch findAll methods started working in a normal way
 
GeeCON Prague 2014
 
subject: findAll methods