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 EnumeratorException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EnumeratorException" Watch "EnumeratorException" New topic
Author

EnumeratorException

Praveen Katti
Greenhorn

Joined: Jun 03, 2004
Posts: 12
Hi All,
I have written on extra BMP in my application, which is exactly same as of other BMP of same function. But when we are trying to execute the same we are getting the following exception.

Exception in getVehicleInfo method : javax.ejb.FinderException: com.ibm.ejs.persitence.EnumeratorException original exception:
java.lang.NullPointerException


I am attaching a piece of code for your reference which is throwing the exception.

We are able to getting this println message System.out.println(" Before return the keys..");. Just after that its throwing the exception. According the flow of code the nexe method which should get called is ejbLoad(), but its not happening.
Help is appreciated.
Thanks in adavance,
Praveen


Thanks,<br />Praveen K
Anselm Paulinus
Ranch Hand

Joined: Sep 05, 2003
Posts: 389
I do not think that your error has anything to do with ejbLoad; rather I think the error has to do with your return parameter which is enumeration. I really do not think you can return a enumeration. Try returning something like a Collection, List, Vector and see if it helps.

Anselm
Praveen Katti
Greenhorn

Joined: Jun 03, 2004
Posts: 12
Hi,
Thanks for the reply. As I told in my earlier mail, my other BMPs of same function also returns Eenumuration only, I am facing problem only with this BMP. I am using WebSphere 3.5 and using VAJ.

Thanks in advance,
Praveen..
Praveen Katti
Greenhorn

Joined: Jun 03, 2004
Posts: 12
Hi All,
That problem got solved,there was problem in my PBMMAKey class.

Thanks again.
Praveen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EnumeratorException