[opencms-dev] URLDecoder error in webform module
Carl-Erik Herheim
carl-erik.herheim at nsd.uib.no
Mon Mar 1 16:06:58 CET 2010
When editing a webform I get this error when trying to save the file:
java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "(f"
at java.net.URLDecoder.decode(URLDecoder.java:173)
The cause of the error is the string "%(formdata)" in the confirmation mail field. The webform has been working fine,
and I was editing another field when this happened. There's little to no development going on on this opencms server,
so it's strange that something like this should happen out of the blue...
Here's the rest of the error message:
java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "(f"
at java.net.URLDecoder.decode(URLDecoder.java:173)
at org.opencms.i18n.CmsEncoder.decode(CmsEncoder.java:231)
at org.opencms.widgets.CmsHtmlWidget.setEditorValue(CmsHtmlWidget.java:143)
at org.opencms.workplace.editors.CmsXmlContentEditor.setEditorValues(CmsXmlContentEditor.java:913)
at org.opencms.workplace.editors.CmsXmlContentEditor.actionSave(CmsXmlContentEditor.java:546)
at org.opencms.workplace.editors.CmsXmlContentEditor.actionSave(CmsXmlContentEditor.java:528)
at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.editors.xmlcontent.editor_005fform_jsp._jspService(editor_005fform_jsp.java:151)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:194)
at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:169)
at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:1172)
at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:423)
at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:173)
at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:1206)
at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:1150)
at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:964)
at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1494)
at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:152)
at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:164)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)
Any help would be much appreciated.
Thanks in advance,
Carl-Erik Herheim
More information about the opencms-dev
mailing list