Hi Thaiyal,

I just wrote a quick test (not use the spring configuration) as you said to verified the issue you just mentioned.
The server started rightly.
But when I tried to use the borrower to invoke the getTopics method (http://localhost:8080/xml/topics/123).
I got  the below error.
INFO: Interceptor has thrown exception, unwinding now
java.lang.NullPointerException
at org.apache.cxf.binding.http.IriDecoderHelper.buildDocument(IriDecoderHelper.java:213) at org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor.mergeParams(URIParameterInInterceptor.java:129) at org.apache.cxf.binding.http.interceptor.URIParameterInInterceptor.handleMessage(URIParameterInInterceptor.java:105) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:206) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:67) at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:253) at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:213) at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:54) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
   at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:821)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:368) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
It looks like a bug of http-binding, I filled a JIRA for it.[1]

[1] https://issues.apache.org/jira/browse/CXF-739
Cheers,

Willem.
Murugappan, Thaiyal wrote:
Hi All,

I tried the Restful http-binding example with the spring configuration.
I took the latest source code from Subversion which has the fix for the
jaxws endpoint for http-binding (#CXF-664). The sample works fine, but
when I try to introduce a new method which takes a long as an input
parameter I get the following error.
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'restfulCustomerServer': Invocation of init method
failed; nested exception is java.lang.IndexOutOfBoundsException: No
group 1

This seems to be a name space issue, not sure though. Any thoughts?

Here is my method

@Get

@HttpResource(location = "/topics/{id}")

public String getTopics(@WebParam(name = "id") long id);

Thanks,

Thaiyal



Reply via email to