Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ejbSelect method problem  RSS feed

 
Soni Prasad
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use ejbSelect method but I am getting NullPointerException can anybody please see the code and exception below and guide me

This is a part of code from my bean class



and ejb-ql in ejb-jar.xml is
SELECT OBJECT(o) FROM Customer AS o

and this the part of exception


I am using jboss4.0.0. What could be the reason?
Please help me out...
[ July 21, 2005: Message edited by: Soni Prasad ]
 
jo ma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the age parameter is missing in your ejb-ql like "SELECT OBJECT(c) FROM Customer AS c WHERE c.age = ?1". Better exception naming from JBoss might still be helpful .
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!