=?iso-8859-1?q?Problem_with_=A3_and_=80_characters_with_Struts?=

R

rmetcalf

I have a web application where the users need the ability to submit the
lira(£) and euro(€) characters. Struts is taking the request and it
blows up with an java.lang.IllegalArgumentException (stack trace
below). I escape the data prior to submission. Anyone have any ideas???

java.lang.IllegalArgumentException
at java.lang.Throwable.<init>(Throwable.java)
at
com.ibm.ws.webcontainer.servlet.RequestUtils.parseName(RequestUtils.java:423)
at
com.ibm.ws.webcontainer.servlet.RequestUtils.parseQueryString(RequestUtils.java:286)
at
com.ibm.ws.webcontainer.servlet.RequestUtils.parsePostData(RequestUtils.java:549)
at
com.ibm.ws.webcontainer.srt.SRTServletRequest.parseParameters(SRTServletRequest.java:789)
at
com.ibm.ws.webcontainer.srt.SRTServletRequest.getParameterNames(SRTServletRequest.java:432)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:459)
at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:804)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at
com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at
com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at
com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at
com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at
com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain..java:76)
at
com.harleysvillegroup.claims.web.util.UTF8Filter.doFilter(UTF8Filter.java:28)
at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain..java:71)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java)
 
O

Oliver Wong

I have a web application where the users need the ability to submit the
lira(£) and euro(?) characters. Struts is taking the request and it
blows up with an java.lang.IllegalArgumentException (stack trace
below). I escape the data prior to submission. Anyone have any ideas???

java.lang.IllegalArgumentException
at java.lang.Throwable.<init>(Throwable.java)
at
com.ibm.ws.webcontainer.servlet.RequestUtils.parseName(RequestUtils.java:423)

If you have the documentation for the "parseName" method, check if it
explains under what conditions exceptions are thrown. Else if you have the
source code, read the source code to see why the exception is thrown. Else
it's probably something to do with encodings. Try setting everything to the
same encoding (e.g. UTF-8), and see if that fixes things.

- Oliver
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,227
Latest member
Daniella65

Latest Threads

Top