0

I am using Apache Tomcat/9.0.7. I requested to an external source as below.

var loc = "<%=request.getContextPath()%>/webpages/PS.jsp?jsonArry="+jsonArry; 
document.getElementById('PSFrame').setAttribute('src', loc);

Below I have mentioned the error I got

java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
 org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:460)
 org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:291)
 org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
 org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:754)
 org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1376)
 org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 java.lang.Thread.run(Thread.java:748)

I had read similer problem. But still couldn't resolve

WCM
  • 595
  • 3
  • 11
  • 27

0 Answers0