[jboss-user] [JBoss Seam] - NullPointerException with Component.getInstance(Class, boole
sradford
do-not-reply at jboss.com
Thu Feb 1 12:39:46 EST 2007
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?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009575#4009575
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009575
More information about the jboss-user
mailing list