Hi,
I built a snapshot from rev 661 and using it in one of my Stripes
based web-app. I haven't looked closely but I am seeing the following
error:
Nov 7, 2008 9:02:14 PM net.sourceforge.stripes.util.Log error
SEVERE:
java.lang.NullPointerException
at com.google.inject.InjectorImpl.injectMembers(InjectorImpl.java:
690)
at
com.googlecode.stripesguicer.StripesFakeFilterChain.doFilter(StripesFakeFilterChain.java:
42)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
46)
at
com.googlecode.stripesguicer.GuiceInterceptor.intercept(GuiceInterceptor.java:
73)
at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:
155)
at
net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:
113)
at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:
155)
at
net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:
74)
at
net.sourceforge.stripes.controller.DispatcherServlet.requestComplete(DispatcherServlet.java:
223)
at
net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:
197)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:
247)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:619)
I can confirm that this was working with a snapshot built off rev
649.
Happy to provide any other info if required.
Cheers,
Rahul
On Nov 5, 9:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Oct 21, 4:03 am, tzwoenn <[EMAIL PROTECTED]> wrote:
>
> > Can we get some feedback, when this is implemented in the trunk? I am
> > also interested in having this feature.
>
> FYI, this feature was checked in yesterday. If you have code like
> this:
> public class ProcessorImpl<T> implements Processor<T> {
> @Inject Subprocessor<T> subprocessor;
> ...
> }
> ...when you make the following bindings, Guice will do the right thing
> and inject the string subprocessor.
> public void configure() {
> bind(new TypeLiteral<Processor<String>>() {})
> .to(new TypeLiteral<ProcessorImpl<String>>() {});
> bind(new TypeLiteral<Subprocessor<String>>() {}).to(...)
>
> I'm curious - do you have concrete examples of what you're using it
> for? I'm looking for something interesting to put into the
> documentation...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---