You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by semecamel <di...@gmail.com> on 2012/06/07 19:21:50 UTC
Help Needed (Came cxf)
I have a web service as exposed as camel cxf endpoint, but when I call the
web service I get error below.
Here is my web service, I can't tell what I am doing wrong. I use eclipse to
generate web service client using cxf.
@WebService
public interface OrderServiceCamelWS {
public void insert(Order record);
public OrderEntry select(Long Id);
}
2012-06-07 13:07:12,631 WARN [org.apache.cxf.phase.PhaseInterceptorChain] -
<Interceptor for {http://mypackage/}MyServiceWSSEISe
rvice#{http://mypackage/}getOrders has thrown exception, unwinding now>
org.apache.cxf.interceptor.Fault
at
org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:121)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at
org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:77)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:123)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:207)
at
org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)
at
org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:193)
at
org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:126)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:185)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:108)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at
org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:164)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:851)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:278)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at
mypackage.ws.jaxws_asm.OrdersResponse_WrapperTypeHelper1.createWrapperObject(Unknown
Source)
at
org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor.handleMessage(WrapperClassOutInterceptor.java:105)
--
View this message in context: http://camel.465427.n5.nabble.com/Help-Needed-Came-cxf-tp5714142.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Help Needed (Came cxf)
Posted by saurzcode <sc...@gmail.com>.
Thanks Willem.I tried doing that still it throws the same error.My Route
configuration is as follows -* *
--
View this message in context: http://camel.465427.n5.nabble.com/Help-Needed-Came-cxf-tp5714142p5721227.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Help Needed (Came cxf)
Posted by Willem jiang <wi...@gmail.com>.
Can you try to set the operation in the URI like this?
"cxf:bean:helloWorld?wrappedStyle=true"
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: willemjiang
On Thursday, October 11, 2012 at 10:13 PM, saurzcode wrote:
>
> Tried to test through this.But still doesn't work.
> <cxf:cxfEndpoint id="helloWorld"
> serviceClass="com.test.cxfwebservice.TestImpl"
> address="/HelloWorld" >
> <cxf:properties>
> <entry key="wrapped" value="true" />
> </cxf:properties>
> </cxf:cxfEndpoint>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Help-Needed-Came-cxf-tp5714142p5720913.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).
Re: Help Needed (Came cxf)
Posted by saurzcode <sc...@gmail.com>.
Tried to test through this.But still doesn't work.
<cxf:cxfEndpoint id="helloWorld"
serviceClass="com.test.cxfwebservice.TestImpl"
address="/HelloWorld" >
<cxf:properties>
<entry key="wrapped" value="true" />
</cxf:properties>
</cxf:cxfEndpoint>
--
View this message in context: http://camel.465427.n5.nabble.com/Help-Needed-Came-cxf-tp5714142p5720913.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Help Needed (Came cxf)
Posted by saurzcode <sc...@gmail.com>.
Below is information about my Camel and CXF version
*/ <cxf.version>2.5.4</cxf.version>
<camel.version>2.10.1</camel.version>/*
I am not able to set that property.
*/attribute 'wrappedStyle' is not allowed is the error./*
--
View this message in context: http://camel.465427.n5.nabble.com/Help-Needed-Came-cxf-tp5714142p5720912.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Help Needed (Came cxf)
Posted by "Willem.Jiang" <wi...@gmail.com>.
Which version of Camel and CXF are you using?
Can you set the cxfEndpoint uri with the option wrappedStyle to be true?
--
View this message in context: http://camel.465427.n5.nabble.com/Help-Needed-Came-cxf-tp5714142p5720910.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Help Needed (Came cxf)
Posted by saurzcode <sc...@gmail.com>.
Hi ,Were you able to resolve this.I am getting similar error in my
setup.Regards,
--
View this message in context: http://camel.465427.n5.nabble.com/Help-Needed-Came-cxf-tp5714142p5720896.html
Sent from the Camel - Users mailing list archive at Nabble.com.