When I create a xwork-conversion.properties file in Struts2, I start
getting a null pointer exception.  It looks like the cause is guice.

Here is the stack trace:
 java.lang.NullPointerException

    com.google.inject.struts2.GuiceObjectFactory
$ProvidedInterceptor.intercept(GuiceObjectFactory.java:224)
    com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling
(DefaultActionInvocation.java:230)
    com.opensymphony.xwork2.DefaultActionInvocation$1.doProfiling
(DefaultActionInvocation.java:229)
    com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile
(UtilTimerStack.java:456)
    com.opensymphony.xwork2.DefaultActionInvocation.invoke
(DefaultActionInvocation.java:227)
    org.apache.struts2.impl.StrutsActionProxy.execute
(StrutsActionProxy.java:52)
    org.apache.struts2.dispatcher.Dispatcher.serviceAction
(Dispatcher.java:477)
    org.apache.struts2.dispatcher.FilterDispatcher.doFilter
(FilterDispatcher.java:467)
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:235)
    org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
    org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
    org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
    org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
    org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
    org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
    org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:286)
    org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:845)
    org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
    org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
    java.lang.Thread.run(Thread.java:619)


The same configuration works fine with spring.  I also did some
searching and it looks like others are having this problem and the
only work around is to use the ObjectFactory in jcatapult.  I can't
add jcatapult as a dependecy and attempting to port their
implementation over still generates a null pointer in a Guice internal
class.

com.google.inject.internal.ProviderMethodsModule on line 60

I logged the issue here 
http://code.google.com/p/google-guice/issues/detail?id=278

I'm at a loss of where to go at this point.  I can't seem to find a
work around nor a solution that will fix it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to