Create a simple reproducable test case or example.
Even better would be to write a patch which you can demonstrate fixes
your example issue.

On 3/2/06, David (JIRA) <[email protected]> wrote:
>     [ 
> http://issues.apache.org/jira/browse/MYFACES-1121?page=comments#action_12368550
>  ]
>
> David commented on MYFACES-1121:
> --------------------------------
>
> I really need this issue fixed. What can I do to help get it resolved?
>
> Thank you.
>
> > FacesContext.getCurrentContext is null after login on Tomcat/JBoss
> > ------------------------------------------------------------------
> >
> >          Key: MYFACES-1121
> >          URL: http://issues.apache.org/jira/browse/MYFACES-1121
> >      Project: MyFaces Core
> >         Type: Bug
> >   Components: General
> >     Versions: 1.1.2-SNAPSHOT
> >  Environment: Windows XP; JBoss 4.0.4RC1
> >     Reporter: Ramon Casha
>
> >
> > FacesContext.getCurrentContext is null in the page following a successful 
> > login. The login is a standard JSP forms-based login. The form redirects to 
> > j_security_check as normal, then presumably it gets automatically 
> > redirected to the originally requested page. That's when the error occurs 
> > (see stack trace below). If I then refresh the page, it displays correctly.
> > 12:46:14,137 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
> > Servlet threw exception
> > java.lang.NullPointerException
> >         at 
> > org.apache.myfaces.renderkit.html.HtmlRendererUtils.selectContentType(HtmlRendererUtils.java:995)
> >         at 
> > org.apache.myfaces.renderkit.html.util.DefaultAddResource.writeResponse(DefaultAddResource.java:786)
> >         at 
> > org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:143)
> >         at 
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> >         at 
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >         at 
> > org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> >         at 
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
> >         at 
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
> >         at 
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> >         at 
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> >         at 
> > org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
> >         at 
> > org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
> >         at 
> > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:514)
> >         at 
> > org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
> >         at 
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> >         at 
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> >         at 
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> >         at 
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >         at 
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
> >         at 
> > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
> >         at 
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> >         at 
> > org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
> >         at java.lang.Thread.run(Unknown Source)
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira
>
>

Reply via email to