struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Usama Rashwan <forum-struts-...@opensymphony.com>
Subject NPE in CodebehindUnknownHandler
Date Sat, 17 Mar 2007 15:47:22 GMT
Hi , 
I faced a NPE when i try to use CodebehindUnknownHandler below are the full stack trace for
this exception , and after i spend some time investigating for the cause of this error it
turned to me that I defined [code]struts.codebehind.defaultPackage=babPackage[/code] with
incorrect package name after I fixed the package name error it works fine but I think the
exception was miss leading.


	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3600)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4193)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
	at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:867)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:474)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:290)
	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:454)
	at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:492)
	at com.opensymphony.xwork2.inject.ContainerImpl$6.call(ContainerImpl.java:491)
	at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:542)
	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:490)
	at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:40)
	at com.bab.common.commands.xwork.XworkCommandManager.getCommand(XworkCommandManager.java:21)
	... 29 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException
	at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:136)
	at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:49)
	at com.opensymphony.xwork2.inject.ContainerImpl$ParameterInjector.inject(ContainerImpl.java:431)
	at com.opensymphony.xwork2.inject.ContainerImpl.getParameters(ContainerImpl.java:446)
	at com.opensymphony.xwork2.inject.ContainerImpl.access$000(ContainerImpl.java:48)
	at com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(ContainerImpl.java:288)
	... 36 more
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:464)
	at com.opensymphony.xwork2.inject.ContainerImpl$7.call(ContainerImpl.java:501)
	at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:549)
	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:499)
	at com.opensymphony.xwork2.config.impl.LocatableFactory.create(LocatableFactory.java:32)
	at com.opensymphony.xwork2.inject.ContainerBuilder$4.create(ContainerBuilder.java:134)
	... 41 more
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:409)
	at com.opensymphony.xwork2.inject.ContainerImpl.inject(ContainerImpl.java:461)
	... 46 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(ContainerImpl.java:388)
	... 47 more
Caused by: java.lang.NullPointerException
	at org.apache.struts2.codebehind.CodebehindUnknownHandler.<init>(CodebehindUnknownHandler.java:73)
	... 52 more
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=71257&messageID=133323#133323


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message