You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2008/07/08 16:45:46 UTC
svn commit: r674846 -
/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/context/utils/ContextUtils.java
Author: dims
Date: Tue Jul 8 07:45:46 2008
New Revision: 674846
URL: http://svn.apache.org/viewvc?rev=674846&view=rev
Log:
Many thanks to Jasmim Ramlee for finding the issue. Added a try/catch around getPathInfo to protect against possible NPE's.
Modified:
webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/context/utils/ContextUtils.java
Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/context/utils/ContextUtils.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/context/utils/ContextUtils.java?rev=674846&r1=674845&r2=674846&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/context/utils/ContextUtils.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/context/utils/ContextUtils.java Tue Jul 8 07:45:46 2008
@@ -143,7 +143,12 @@
log.debug("SERVLET_REQUEST Set");
}
- String pathInfo = req.getPathInfo();
+ String pathInfo = null;
+ try {
+ pathInfo = req.getPathInfo();
+ } catch (Throwable t){
+ log.debug("exception in getPathInfo", t);
+ }
soapMessageContext.put(javax.xml.ws.handler.MessageContext.PATH_INFO, pathInfo);
soapMessageContext
.setScope(javax.xml.ws.handler.MessageContext.PATH_INFO, Scope.APPLICATION);