Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejbSelect method problem

 
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic