webservices with paramenters g
------------------------------
Key: CXF-1023
URL: https://issues.apache.org/jira/browse/CXF-1023
Project: CXF
Issue Type: Bug
Environment: java 1.6
Reporter: osiris
i am using a snapshot version of cxf ( 20070830.015341-2 )
i use http binding. rest service style, just like the example provided with cxf.
when i try to access a webservice that uses parameter it gives me an error. if
the webservice has no parameter it works fine. i am testing it using a browser
(opera and firefox)
the xml returned when the error ocurrs is:
<ns1:XMLFault>
<ns1:faultstring>
java.lang.IllegalStateException: Unexpected character '/' at index 0
</ns1:faultstring>
</ns1:XMLFault>
the output cxf produces is:
[java] Sep 14, 2007 7:41:59 PM
org.apache.cxf.interceptor.AttachmentInInterceptor handleMessage
[java] INFO: AttachmentInInterceptor skipped in HTTP GET method
[java] Sep 14, 2007 7:41:59 PM
org.apache.cxf.binding.http.interceptor.DispatchInterceptor handleMessage
[java] INFO: Invoking GET on /utentes/1
[java] Sep 14, 2007 7:41:59 PM
org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor handleMessage
[java] INFO: URIParameterInterceptor handle message on path [/utentes/1]
with content-type [null]
[java] Sep 14, 2007 7:41:59 PM org.apache.cxf.phase.PhaseInterceptorChain
doIntercept
[java] INFO: Interceptor has thrown exception, unwinding now
[java] java.lang.IllegalStateException: Unexpected character '/' at index 0
[java] at
org.apache.cxf.binding.http.IriDecoderHelper.expect(IriDecoderHelper.java:154)
[java] at
org.apache.cxf.binding.http.IriDecoderHelper.decodeIri(IriDecoderHelper.java:86)
[java] at
org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor.handleMessage(URIParameterInInterceptor.java:102)
[java] at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
[java] at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
[java] at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:268)
[java] at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:224)
[java] at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54)
[java] at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
[java] at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
[java] at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
[java] at org.mortbay.jetty.Server.handle(Server.java:313)
[java] at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
[java] at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
[java] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
[java] at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
[java] at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
[java] at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
[java] at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
is this a bug?
please help.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.