You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Hasan (JIRA)" <ji...@apache.org> on 2011/05/18 18:31:48 UTC

[jira] [Resolved] (CLEREZZA-535) NullPointerException when requesting SSP rendered pages without supplying accept header

     [ https://issues.apache.org/jira/browse/CLEREZZA-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hasan resolved CLEREZZA-535.
----------------------------

    Resolution: Fixed

ResultDocModifier.init is invoked irrespective of media type 

> NullPointerException when requesting SSP rendered pages without supplying accept header
> ---------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-535
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-535
>             Project: Clerezza
>          Issue Type: Bug
>            Reporter: Daniel Spicar
>            Assignee: Hasan
>              Labels: resultDocModifier
>
> When requesting a page without specifying the accept header a nullpointer exception is thrown and a server error returned.
> Example using CURL:
> curl http://localhost:8080/dashboard/overview
> returns: 
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
> <title>Error 500 Server Error</title>
> </head>
> <body>
> <h2>HTTP ERROR: 500</h2>
> <p>Problem accessing /dashboard/overview. Reason:
> <pre>    Server Error</pre></p>
> <hr /><i><small>Powered by Jetty://</small></i>                                     
> </body>
> </html>
> The problem can be traced back to the resultDocModifier which seems to be either null or the cause for the NPE. When all references to resultDocModifier are removed in the template (SSP) and no other templates that use the resultDocModifier are rendered (e.g. beware of rendering global menu) the NPE does not happen and the result is as expected.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira