[switchyard-issues] [JBoss JIRA] (SWITCHYARD-638) WSDLUtil is unable to handle WSDL message definitions with type attribute.
Marek Baluch (JIRA)
jira-events at lists.jboss.org
Sun Feb 5 05:57:48 EST 2012
Marek Baluch created SWITCHYARD-638:
---------------------------------------
Summary: WSDLUtil is unable to handle WSDL message definitions with type attribute.
Key: SWITCHYARD-638
URL: https://issues.jboss.org/browse/SWITCHYARD-638
Project: SwitchYard
Issue Type: Bug
Components: component-soap
Affects Versions: 0.3
Reporter: Marek Baluch
If I have the following message definition:
{code}
<wsdl:message name="GreetingTarget_Message">
<wsdl:part name="ToWhom" type="xsd:string"/>
</wsdl:message>
{code}
then WSDLUtil throws an NPE with the following stack-trace:
{noformat}
To has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault
at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155) [cxf-rt-core-2.4.1.jar:2.4.1]
at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:86) [cxf-rt-frontend-jaxws-2.4.1.jar:2.4.1]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:121) [cxf-rt-core-2.4.1.jar:2.4.1]
at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:61) [cxf-rt-frontend-jaxws-2.4.1.jar:2.4.1]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:75) [cxf-rt-core-2.4.1.jar:2.4.1]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:58) [cxf-rt-core-2.4.1.jar:2.4.1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_16]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [:1.6.0_16]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [:1.6.0_16]
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37) [cxf-rt-core-2.4.1.jar:2.4.1]
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:106) [cxf-rt-core-2.4.1.jar:2.4.1]
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:263) [cxf-api-2.4.1.jar:2.4.1]
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:118) [cxf-rt-core-2.4.1.jar:2.4.1]
at org.apache.cxf.transport.http_jaxws_spi.JAXWSHttpSpiDestination.serviceRequest(JAXWSHttpSpiDestination.java:147) [cxf-rt-frontend-jaxws-2.4.1.jar:2.4.1]
at org.apache.cxf.transport.http_jaxws_spi.JAXWSHttpSpiDestination.doService(JAXWSHttpSpiDestination.java:123) [cxf-rt-frontend-jaxws-2.4.1.jar:2.4.1]
at org.apache.cxf.transport.http_jaxws_spi.HttpHandlerImpl.handle(HttpHandlerImpl.java:61) [cxf-rt-frontend-jaxws-2.4.1.jar:2.4.1]
at org.jboss.wsf.stack.cxf.addons.transports.httpserver.HttpServerDestination$Handler.handle(HttpServerDestination.java:154) [jbossws-cxf-transports-httpserver-4.0.0.Beta3.jar:4.0.0.Beta3]
at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)
at org.jboss.sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:80)
at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)
at org.jboss.sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:689)
at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)
at org.jboss.sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:661)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_16]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_16]
at java.lang.Thread.run(Thread.java:619) [:1.6.0_16]
Caused by: java.lang.NullPointerException
at org.switchyard.component.soap.util.WSDLUtil.getOperation(WSDLUtil.java:237) [switchyard-component-soap-0.3.0.Final.jar:0.3.0.Final]
at org.switchyard.component.soap.InboundHandler.invoke(InboundHandler.java:187) [switchyard-component-soap-0.3.0.Final.jar:0.3.0.Final]
at org.switchyard.component.soap.BaseWebService.invoke(BaseWebService.java:69) [switchyard-component-soap-0.3.0.Final.jar:0.3.0.Final]
at org.switchyard.component.soap.BaseWebService.invoke(BaseWebService.java:34) [switchyard-component-soap-0.3.0.Final.jar:0.3.0.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_16]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_16]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_16]
at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_16]
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173) [cxf-rt-core-2.4.1.jar:2.4.1]
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89) [cxf-rt-core-2.4.1.jar:2.4.1]
... 23 more
{noformat}
The reason for this is that it attempts to get the localPart from an elementName instead of typeName.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the switchyard-issues
mailing list