• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB QL exception

 
vai Ava
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting following excpetion
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.sql.SQLException: Invalid parameter index 1.

while running EJB QL on j2ee RI server EJB QL query is geting generated properly but while running i am getting the above exception

my query definition in home interface:
public CourseRemote findByCourseId(String courseId) throws RemoteException, FinderException;

the ejb ql query as generated by j2ee ri server:
SELECT OBJECT(c) FROM Course as c
where c.courseId = ?

please help me as query generation is right but whilwe running this stmt:
<CourseRemote courseremoteId = home.findByCourseId("X0001");>

please help e as i have run out of options.. thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"vai Avvvva", please check your private messages for an important administrative matter.
 
Paul Clapham
Sheriff
Posts: 21884
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And your question might be better posted in a forum which is about EJB. It isn't about XML in any way at all.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!