jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kazuhito SUGURI <suguri.kazuh...@lab.ntt.co.jp>
Subject Re: URLencode
Date Fri, 05 Aug 2005 23:20:13 GMT
Hi Romain,

In article <42F375AA.8050608@sfwan.com>,
Fri, 05 Aug 2005 16:20:26 +0200,
Romain Thouvenin <rthouvenin@sfwan.com> wrote: 
rthouvenin> What can be the cause of a NullPointerException thrown by 
rthouvenin> java.net.URLEncoder.encode ?
rthouvenin> Here is the whole stack trace :
rthouvenin> testAdd(com.aguila.tests.client.MyClientTest)java.lang.NullPointerException
rthouvenin>     at java.net.URLEncoder.encode(Unknown Source)
rthouvenin>     at java.net.URLEncoder.encode(Unknown Source)
rthouvenin>     at 
rthouvenin> org.apache.cactus.internal.client.connector.http.HttpUtil.addHttpGetParameters_aroundBody0(HttpUtil.java:86)

Don't you have a code like as follows?
      public void beginXXX(WebRequest theRequest) {
	     request.addParameter("paramName", null, WebRequest.GET_METHOD);

The null value for the parameter may the cause.
If so, could you please entry the issue to JIRA?

Hope this helps,
Kazuhito SUGURI

View raw message