portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ate Douma <...@douma.nu>
Subject Re: [J2] NPE logging into the struts portlet demo
Date Wed, 19 May 2004 21:50:55 GMT


Scott T Weaver wrote:

> I was able to successfully create a user in the struts demo app but I
> get an NPE when trying to log into it.  

You must have specified a non-valid username/password combination.
I've only adapted the original struts example to be able to be used from 
  within a portal/J2. I didn't improve it or correct any logical flaws 
in it (other than which were required to get it running in J2).

I've looked into the LogonAction and it is just a very bad programmed 
demo. The NPE is thrown from debug message (!) writing the just logged 
on user its name. But, that failed and the user object is null.

Although I can fix this easily enough I'm not sure I want to. I rather 
check the current state of struts HEAD and see if they fixed/improve it 
themselves. Then I just do the migration to J2 again.

I'll see to that once I have my committer rights activated (hopefully 
soon). I don't think it important enough to bother any of the other 
committers with it.

Regards,

Ate

> 
> 
> org.apache.struts.webapp.example.LogonAction.SaveUser(LogonAction.java:99)
> org.apache.struts.webapp.example.LogonAction.execute(LogonAction.java:142)
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
> org.apache.struts.portlet.PortletRequestProcessor.process(PortletRequestProcessor.java:47)
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1146)
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:410)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
> org.apache.struts.portlet.StrutsPortlet.process(StrutsPortlet.java:243)
> org.apache.struts.portlet.StrutsPortlet.processAction(StrutsPortlet.java:187)
> org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:207)
> org.apache.jetspeed.container.JetspeedContainerServlet.doPost(JetspeedContainerServlet.java:262)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
> org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
> org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
> org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:208)
> org.apache.jetspeed.container.invoker.ServletPortletInvoker.action(ServletPortletInvoker.java:130)
> org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:152)
> org.apache.jetspeed.container.JetspeedPortletContainerWrapper.processPortletAction(JetspeedPortletContainerWrapper.java:110)
> org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:69)
> org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:255)
> org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:76)
> org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:255)
> org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:57)
> org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:255)
> org.apache.jetspeed.security.impl.SecurityValveImpl.invoke(SecurityValveImpl.java:79)
> org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:255)
> org.apache.jetspeed.capability.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:120)
> org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:255)
> org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:62)
> org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:255)
> org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:237)
> org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:231)
> org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:207)
> org.apache.jetspeed.engine.JetspeedServlet.doPost(JetspeedServlet.java:228)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
> java.lang.Thread.run(Thread.java:536)
> 
> Regards,


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


Mime
View raw message