[
http://www.stripesframework.org/jira/browse/STS-736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11922#action_11922
]
Ben Gunter commented on STS-736:
--------------------------------
I think the problem is described here:
https://issues.apache.org/bugzilla/show_bug.cgi?id=46792
According to one of the comments on that bug, this exception can arise from
code accessing a request object after the request cycle has been completed and
the request object has prepared for reuse by the container. Is that something
you might be doing in this case?
> context.getRequest().getParameterMap().size() and .isEmpty() causes a null
> pointer exception
> --------------------------------------------------------------------------------------------
>
> Key: STS-736
> URL: http://www.stripesframework.org/jira/browse/STS-736
> Project: Stripes
> Issue Type: Bug
> Components: Context Management
> Affects Versions: Release 1.5.3
> Reporter: Jay
> Assignee: Ben Gunter
>
> When calling the size or isEmpty method on
> context.getRequest().getParameterMap() we get the following stack trace. We
> have a work around to check the request parameter by calling
> request.getParameterNames().hasMoreElements(). See stack trace below.
> Stack Trace: java.lang.NullPointerException
> at
> org.apache.catalina.connector.Request.parseParameters(Request.java:2458)
> at
> org.apache.catalina.connector.Request.getParameterNames(Request.java:1082)
> at
> org.apache.catalina.connector.Request.getParameterMap(Request.java:1062)
> at
> org.apache.catalina.connector.RequestFacade.getParameterMap(RequestFacade.java:414)
> at
> net.sourceforge.stripes.controller.MergedParameterMap.getParameterMap(StripesRequestWrapper.java:436)
> at
> net.sourceforge.stripes.controller.MergedParameterMap.keySet(StripesRequestWrapper.java:392)
> at
> net.sourceforge.stripes.controller.MergedParameterMap.size(StripesRequestWrapper.java:409)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development