java.net.URISyntaxException: Illegal character in query at index 39: http://127.0.0.1:8080/demo/test?param={}

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Spring JIRA by Russell Allen, 1 year ago
Illegal character in query at index 39: http://127.0.0.1:8080/demo/test?param={}
via Spring JIRA by Russell Allen, 1 year ago
Illegal character in query at index 39: http://127.0.0.1:8080/demo/test?param={}
via GitHub by L3444
, 1 year ago
Illegal character in path at index 39: http://example.de/test.productid=abc123<456.html
via GitHub by Turmfalke2
, 5 months ago
Illegal character in path at index 60: https://addons.cursecdn.com/files/2363/358/Material%20Energy^Natural%20Capital-0.11.04.zip
via educity.cn by Unknown author, 1 year ago
Illegal character in path at index 16 : file:/E:/Web Files/webl ogic/test/FundSales/WEB-INF/classes/
via GitHub by dkerwin
, 2 years ago
Illegal character in query at index 370: http://459c1723-bfac-4427-9c90-c47c9b235ddb:session@127.0.0.1:12900/tools/grok_tester?pattern=%25%7BHAPROXYHTTPLOG%7D&string=%3C134%3E1+2015-03-31T15:05:00.857831%2B00:00+mt02+haproxy%5B4006%5D:+-+haproxy
java.net.URISyntaxException: Illegal character in query at index 39: http://127.0.0.1:8080/demo/test?param={}
at java.net.URI$Parser.fail(URI.java:2848)
at java.net.URI$Parser.checkChars(URI.java:3021)
at java.net.URI$Parser.parseHierarchical(URI.java:3111)
at java.net.URI$Parser.parse(URI.java:3053)
at java.net.URI.(URI.java:588)
at org.springframework.http.server.ServletServerHttpRequest.getURI(ServletServerHttpRequest.java:96)
at org.springframework.web.util.UriComponentsBuilder.fromHttpRequest(UriComponentsBuilder.java:282)
at org.springframework.web.cors.DefaultCorsProcessor.processRequest(DefaultCorsProcessor.java:71)
at org.springframework.web.servlet.handler.AbstractHandlerMapping$CorsInterceptor.preHandle(AbstractHandlerMapping.java:503)
at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:134)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:954)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

Users with the same issue

2 times, 1 month ago
2 times, 1 month ago
4 times, 1 month ago
10 times, 2 months ago
2 times, 3 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.