[jboss-user] [EJB 3.0] - Re: Illegalargumentexception on calling namedquery

jaikiran do-not-reply at jboss.com
Mon Jun 9 08:33:54 EDT 2008


"auke at noppe.nl" wrote : 
  | public UserManagerBean(User user) {
  |   | 		this.user = user;
  |   | 	}
  | 
  | i have done some debugging, and i found out that the namedQuery Users.getAllUsers works when called from another sessionbean. so i quess that there is an fault in the UserManagerBean. do you have an idea what exactly?

You don't have a default constructor in your UserManagerBean. Add a default constructor to that bean and rebuild your application. Then test the changes.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156670#4156670

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156670



More information about the jboss-user mailing list