cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "osiris (JIRA)" <>
Subject [jira] Created: (CXF-1023) webservices with paramenters g
Date Fri, 14 Sep 2007 18:48:32 GMT
webservices with paramenters g

                 Key: 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:

    java.lang.IllegalStateException: Unexpected character '/' at index 0

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
     [java] INFO: Invoking GET on /utentes/1
     [java] Sep 14, 2007 7:41:59 PM org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor
     [java] INFO: URIParameterInterceptor handle message on path [/utentes/1] with content-type
     [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(
     [java] 	at org.apache.cxf.binding.http.IriDecoderHelper.decodeIri(
     [java] 	at org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor.handleMessage(
     [java] 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
     [java] 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(
     [java] 	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(
     [java] 	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(
     [java] 	at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(
     [java] 	at org.mortbay.jetty.handler.ContextHandler.handle(
     [java] 	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
     [java] 	at org.mortbay.jetty.handler.HandlerWrapper.handle(
     [java] 	at org.mortbay.jetty.Server.handle(
     [java] 	at org.mortbay.jetty.HttpConnection.handleRequest(
     [java] 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
     [java] 	at org.mortbay.jetty.HttpParser.parseNext(
     [java] 	at org.mortbay.jetty.HttpParser.parseAvailable(
     [java] 	at org.mortbay.jetty.HttpConnection.handle(
     [java] 	at
     [java] 	at org.mortbay.thread.BoundedThreadPool$

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.

View raw message