Hi,
I have created a rest service using Camel on JBoss Fuse using cxfrs component.
It works well as long as parameters doesn't have any spaces in url, but when it have then i get below error.
This issue comes immediately after launching the service - so there is no chance of doing any urlEncode at code / processor level.
Please let me know if there is any server level configuration - or any other pointers.
Url
http://localhost:8181/cxf/rest/XXXService/getXXXClearence/James Corp/sinceDate/10-10-2016
Error comes even when we manually url encode the url as below., still inside it is giving the error.
http://localhost:8181/cxf/rest/XXXService/getXXXClearence/James%20Corp/sinceDate/10-10-2016
Error
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 Server Error</title>
</head>
<body>
<h2>HTTP ERROR 500</h2>
<p>Problem accessing /cxf/rest/XXXService/getXXXClearence/James Corp/sinceDate/10-10-2016. Reason:
<pre> Server Error</pre>
</p>
<h3>Caused by:</h3>
<pre>java.lang.IllegalArgumentException: Illegal character in path at index 63: http://localhost:8181/cxf/rest/XXXService/getXXXClearence/James Corp/sinceDate/10-10-2016
at java.net.URI.create(URI.java:852)
at org.apache.cxf.transport.servlet.BaseUrlHelper.getBaseURL(BaseUrlHelper.java:48)
at org.apache.cxf.transport.servlet.ServletController.getBaseURL(ServletController.java:74)
at org.apache.cxf.transport.servlet.ServletController.updateDestination(ServletController.java:83)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletControll
thanks for your help.
Thanks
Raghavendra