0 Replies Latest reply on Feb 1, 2007 12:39 PM by Sean Radford

    NullPointerException with Component.getInstance(Class, boole

    Sean Radford Novice

      I'm getting a NPE with Seam 1.1.5 and JBoss 4.0.5 when calling

      Component.getInstance(Class, boolean);

      with a true value for the boolean.

      The stack trace is:

      17:34:45,347 ERROR [STDERR] java.lang.NullPointerException
      17:34:45,426 ERROR [STDERR] at org.apache.catalina.connector.Request.getAttribute(Request.java:835)
      17:34:45,426 ERROR [STDERR] at org.apache.catalina.connector.RequestFacade.getAttribute(RequestFacade.java:260)
      17:34:45,427 ERROR [STDERR] at org.jboss.seam.servlet.ServletRequestImpl.getAttribute(ServletRequestImpl.java:32)
      17:34:45,427 ERROR [STDERR] at org.jboss.seam.contexts.WebRequestContext.get(WebRequestContext.java:45)
      17:34:45,427 ERROR [STDERR] at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:150)
      17:34:45,428 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1618)
      17:34:45,428 ERROR [STDERR] at org.jboss.seam.Component.getInstance(Component.java:1598)

      Seems like a problem with catalina to me...

       * Return the specified request attribute if it exists; otherwise, return
       * <code>null</code>.
       * @param name Name of the request attribute to return
       public Object getAttribute(String name) {
       if (name.equals(Globals.DISPATCHER_TYPE_ATTR)) {

      Or am I being stupid?