struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "volnei Granado Munhoz" <vol...@unopar.br>
Subject Struts + Xwork + xwork-conversion.properties
Date Fri, 14 Dec 2007 10:46:48 GMT
Hi, i'm using xwork 2.1 with struts 2.1 and Guice to Inject my dependencies.

 
My struts.xml  contains the follow line 
 
 <constant name="struts.objectFactory" value="guice" /> 

and when i start my servlet container the NPE is throwed and aplication is
broken... 

When remove or comment the xwork-conversion.properties this runs normaly. 


Here is the stakTrace: 
 
java.lang.NullPointerException
at
com.opensymphony.xwork2.conversion.impl.XWorkConverter.createTypeConverter(X
Wor kConverter.java:729)
at
com.opensymphony.xwork2.conversion.impl.XWorkConverter.loadConversionPropert
ies (XWorkConverter.java:756)
at com.opensymphony.xwork2.conversion.impl.XWorkConverter.<init>(XWorkConver
ter.java:184)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sor Impl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
tor AccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(C
ont ainerImpl.java:388)
at
com.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.ja
va: 211)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:49)
at
com.opensymphony.xwork2.inject.ContainerImpl$ParameterInjector.inject(Contai
ner Impl.java:431)
at
com.opensymphony.xwork2.inject.ContainerImpl.getParameters(ContainerImpl.jav
a:4 46)
at
com.opensymphony.xwork2.inject.ContainerImpl.access$000(ContainerImpl.java:4
8)
at
com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(Container
Imp l.java:288)
at
com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(C
ont ainerImpl.java:400)
at
com.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.ja
va: 211)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:49)
at
com.opensymphony.xwork2.inject.ContainerImpl$ParameterInjector.inject(Contai
ner Impl.java:431)
at
com.opensymphony.xwork2.inject.ContainerImpl.getParameters(ContainerImpl.jav
a:4 46)
at
com.opensymphony.xwork2.inject.ContainerImpl.access$000(ContainerImpl.java:4
8)
at
com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(Container
Imp l.java:288)
at
com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(C
ont ainerImpl.java:400)
at
com.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.ja
va: 211)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:49)
at
com.opensymphony.xwork2.inject.ContainerImpl$ParameterInjector.inject(Contai
ner Impl.java:431)
at
com.opensymphony.xwork2.inject.ContainerImpl.getParameters(ContainerImpl.jav
a:4 46)
at
com.opensymphony.xwork2.inject.ContainerImpl.access$000(ContainerImpl.java:4
8)
at
com.opensymphony.xwork2.inject.ContainerImpl$MethodInjector.inject(Container
Imp l.java:288)
at
com.opensymphony.xwork2.inject.ContainerImpl$ConstructorInjector.construct(C
ont ainerImpl.java:400)
at
com.opensymphony.xwork2.inject.ContainerBuilder$5.create(ContainerBuilder.ja
va: 211)
at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:49)
at
com.opensymphony.xwork2.inject.ContainerBuilder$3.create(ContainerBuilder.ja
va: 98)
at
com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java
:48 9)
at
com.opensymphony.xwork2.inject.ContainerBuilder$7.call(ContainerBuilder.java
:48 7)
at
com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.jav
a:5 42)
at
com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java
:48 6)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.createBootstrapCont
ain er(DefaultConfiguration.java:243)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(Def
aul tConfiguration.java:190)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Configu
rat ionManager.java:55)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatche
r.j ava:373)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:426)
at
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:21
1)
at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplic
ati onHandler.java:310)
at
org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContex
t.j ava:509)
at org.mortbay.util.Container.start(Container.java:72)
at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
at org.mortbay.util.Container.start(Container.java:72)
at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75) 
 

Any solutions?? Thanks!! 



ps. Sorry for my poor English 


--
Esta mensagem foi verificada pelo sistema de antivmrus e  acredita-se estar
livre de perigo.


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


-- 
Esta mensagem foi verificada pelo sistema de antivírus e
 acredita-se estar livre de perigo.


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


Mime
View raw message