[jboss-user] [EJB 3.0] - Re: create() throws NullPointerException

wolfc do-not-reply at jboss.com
Thu Jan 11 07:16:45 EST 2007


Most likely the lookup in init fails. Is there an exception before the NPE?

You could change the code in init to:
try
  | {
  |    ...
  | }
  | catch(Exception e)
  | {
  |    e.printStackTrace();
  |    throw new ServletException(e);
  | }
This should prevent a servlet to become alive after a fault.

If a NamingException is the case, you should find the correct name using JNDIView in JMX-Console.

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

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



More information about the jboss-user mailing list