Topic
  • No replies
SystemAdmin
SystemAdmin
2736 Posts

Pinned topic java.lang.IllegalArgumentException when call getResponseCode

‏2012-07-23T03:28:32Z |
When calling java.net.HttpURLConnection.getResponseCode, there will be an exception "java.lang.IllegalArgumentException" for Group2 unicode.

Unicode used in the url is: %F0%A0%80%8B All characters in this group have the same problem.

Build:
java version "1.6.0"
Java(TM) SE Runtime Environment (build pwi3260sr9fp1ifix-20110714_03(SR9 FP1+IV0
2776+IV00118+IV01843+IZ96587+IV03009))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr9-201107
12_86792 (JIT enabled, AOT enabled)
J9VM - 20110712_086792
JIT - r9_20101028_17488ifx19
GC - 20101027_AA)
JCL - 20110713_06

Execption is :
java.lang.RuntimeException: java.lang.IllegalArgumentException
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1147)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2352)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:399)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at com.lotus.quickplace.util.QuickrSupportUtil.doPost(QuickrSupportUtil.java:786)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at com.lotus.quickplace.util.QuickrSupportUtil.doGet(QuickrSupportUtil.java:148)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at lotus.domino.servlet.DominoServletInvoker.executeServlet(DominoServletInvoker.java:296)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at lotus.domino.servlet.DominoServletInvoker.service(DominoServletInvoker.java:237)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at lotus.domino.servlet.ServletManager.service(ServletManager.java:258)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: Caused by:
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: java.lang.IllegalArgumentException
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at sun.net.www.ParseUtil.decode(ParseUtil.java:197)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at sun.net.www.ParseUtil.toURI(ParseUtil.java:279)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:915)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:846)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1182)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:390)
0798:000F-0814 07/19/2012 02:56:00 PM HTTP JVM: ... 7 more