[jboss-user] [JBoss Seam] - Re: Trouble W/ NullPointerException

Andy Gibson do-not-reply at jboss.com
Fri Dec 14 10:20:47 EST 2007


Your return server class doesn't have a @Name annotation which means it is not a seam component. Try adding a name to it unless you are defining it in components.xml.

How is it even getting to this code since without the name, the component cannot be injected.

Beyond that, I would try checking each piece of the query operation to see which item is null (the entitymanager, or the query).

Cheers,

Andy




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

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



More information about the jboss-user mailing list