Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EnumeratorException

 
Praveen Katti
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Anselm Paulinus
Ranch Hand
Posts: 390
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
That problem got solved,there was problem in my PBMMAKey class.

Thanks again.
Praveen.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic