HttpServletRequst argument was null

Splash Forums PrettyFaces Users HttpServletRequst argument was null

This topic contains 5 replies, has 2 voices, and was last updated by  lucasmurata 10 years, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #17922


    Hi guys,

    I am trying run my application on GF 3.1 / MS Server 2008 and throw exception:

    HttpServletRequest argument was null

    I saw this mensage on this code of prettyface:


    * Must create instance through the initialize() method


    protected PrettyContext(final HttpServletRequest request)


    Assert.notNull(request, “HttpServletRequest argument was null”);

    config = (PrettyConfig) request.getAttribute(CONFIG_KEY);

    if (config == null)


    config = new PrettyConfig();



    This application is running fine in other computer.


    What version of PrettyFaces are you using? Please make sure that you use the most recent version 3.2.1!

    If updating PrettyFaces doesn’t fix the problem please post the complete stacktrace. This will help to identify the problem.



    Hi, thanks for reply.

    I use most recent version.

    This is complete stacktrace:

    WebModule[/controle-ponto]PWC1321: Error invoking requestInitialized method on ServletRequestListener com.ocpsoft.pretty.faces.config.PrettyConfigListener java.lang.NullPointerException at com.sun.faces.application.ServletContextSensitiveSingletonStore.<init>( at com.sun.faces.application.ApplicationFactoryImpl.getApplication( at com.ocpsoft.pretty.faces.util.FacesFactory.getApplication( at com.ocpsoft.pretty.faces.config.PrettyConfigListener.requestInitialized( at org.apache.catalina.core.StandardContext.fireRequestInitializedEvent( at org.apache.catalina.core.StandardHostValve.preInvoke( at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.doService( at org.apache.catalina.connector.CoyoteAdapter.service( at at com.sun.grizzly.http.ProcessorTask.invokeAdapter( at com.sun.grizzly.http.ProcessorTask.doProcess( at com.sun.grizzly.http.ProcessorTask.process( at com.sun.grizzly.http.DefaultProtocolFilter.execute( at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter( at com.sun.grizzly.DefaultProtocolChain.execute( at com.sun.grizzly.DefaultProtocolChain.execute( at com.sun.grizzly.http.HttpProtocolChain.execute( at com.sun.grizzly.ProtocolChainContextTask.doCall( at at at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork( at com.sun.grizzly.util.AbstractThreadPool$ at

    And seem that some problem here:



    I saw this post:

    I think that this is some problem


    Yes, this is a known problem of Mojarra shipped with the Glassfish version you are using.

    Please see this comment on the corresponding issue for a workaround:




Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘PrettyFaces Users’ is closed to new topics and replies.

Comments are closed.