You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by brijesh <br...@gmail.com> on 2009/01/22 10:57:45 UTC
java.lang.NullPointerException: MEP not found
hello ,
wsdl as below
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:eka="http://ekaplus.com/contract"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="contract"
targetNamespace="http://ekaplus.com/contract"
xmlns:xsd1="com.ekaplus.v7.cotton.physical.contract"
xmlns:xsd2="com.ekaplus.integration.common.document.response"
xmlns:xsd3="com.ekaplus.v7.cotton.physical.pricing">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import
namespace="com.ekaplus.v7.cotton.physical.contract"
schemaLocation="contract.xsd">
</xsd:import>
<xsd:import
namespace="com.ekaplus.integration.common.document.response"
schemaLocation="ResponseDoc.xsd">
</xsd:import>
</xsd:schema>
</wsdl:types>
<wsdl:message name="createContractRequest">
<wsdl:part element="xsd1:Contract" name="parameters" />
</wsdl:message>
<wsdl:message name="createContractResponse">
<wsdl:part element="xsd2:ResponseDoc" name="parameters" />
</wsdl:message>
<wsdl:message name="modifyContractRequest">
<wsdl:part name="parameters" element="xsd1:Contract"></wsdl:part>
</wsdl:message>
<wsdl:message name="modifyContractResponse">
<wsdl:part name="parameters" element="xsd2:ResponseDoc"></wsdl:part>
</wsdl:message>
<wsdl:message name="createContract_faultMsg">
<wsdl:part name="parameters" element="xsd2:ResponseDoc"></wsdl:part>
</wsdl:message>
<wsdl:message name="modifyContract_faultMsg">
<wsdl:part name="parameters" element="xsd2:ResponseDoc"></wsdl:part>
</wsdl:message>
<wsdl:message name="createContract_faultMsg1">
<wsdl:part name="parameters" element="xsd2:ResponseDoc"></wsdl:part>
</wsdl:message>
<wsdl:message name="modifyContract_faultMsg1">
<wsdl:part name="parameters" element="xsd2:ResponseDoc"></wsdl:part>
</wsdl:message>
<wsdl:portType name="ContractPortType">
<wsdl:operation name="createContract">
<wsdl:input message="eka:createContractRequest" />
<wsdl:output message="eka:createContractResponse" />
<wsdl:fault name="fault"
message="eka:createContract_faultMsg1"></wsdl:fault>
</wsdl:operation>
<wsdl:operation name="modifyContract">
<wsdl:input message="eka:modifyContractRequest"></wsdl:input>
<wsdl:output message="eka:modifyContractResponse"></wsdl:output>
<wsdl:fault name="fault"
message="eka:modifyContract_faultMsg1"></wsdl:fault>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ContractBinding" type="eka:ContractPortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="createContract">
<soap:operation
soapAction="http://ekaplus.com/contract/createContract" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="modifyContract">
<soap:operation
soapAction="http://ekaplus.com/contract/modifyContract" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ContractService">
<wsdl:port binding="eka:ContractBinding"
name="ContractServicePort">
<soap:address
location="http://localhost:8092/ContractService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
xbean as follows
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
xmlns:eka="http://ekaplus.com/contract"
xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.3.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
<cxfbc:consumer wsdl="classpath:contract.wsdl"
service="eka:ContractService"
targetService="eka:contractBeanRouter"
useJBIWrapper="false"
useSOAPEnvelope="false"
endpoint="ContractServicePort"/>
<cxfbc:consumer wsdl="classpath:pricefixation.wsdl"
service="eka:PriceFixationService"
targetService="eka:priceFixationBeanRouter"
useJBIWrapper="false"
useSOAPEnvelope="false"
endpoint="PriceFixationServicePort"/>
</beans>
when I am accessing the wsdl with URL from .NET IDE(visual studio) I am
getting following error, on console , Any idea on this
java.lang.NullPointerException: MEP not found
at
org.apache.servicemix.cxfbc.interceptors.JbiInInterceptor.createExchange(JbiInInterceptor.java:117)
at
org.apache.servicemix.cxfbc.interceptors.JbiInInterceptor.handleMessage(JbiInInterceptor.java:63)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:226)
at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:89)
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:295)
at
org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:258)
at
org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
thanks
Brijesh N K
--
View this message in context: http://www.nabble.com/java.lang.NullPointerException%3A-MEP-not-found-tp21601075p21601075.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: java.lang.NullPointerException: MEP not found
Posted by Freeman Fang <fr...@gmail.com>.
brijesh wrote:
> hello ,
>
> wsdl as below
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:eka="http://ekaplus.com/contract"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="contract"
> targetNamespace="http://ekaplus.com/contract"
> xmlns:xsd1="com.ekaplus.v7.cotton.physical.contract"
> xmlns:xsd2="com.ekaplus.integration.common.document.response"
> xmlns:xsd3="com.ekaplus.v7.cotton.physical.pricing">
> <wsdl:types>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>
> <xsd:import
> namespace="com.ekaplus.v7.cotton.physical.contract"
> schemaLocation="contract.xsd">
> </xsd:import>
> <xsd:import
> namespace="com.ekaplus.integration.common.document.response"
> schemaLocation="ResponseDoc.xsd">
> </xsd:import>
> </xsd:schema>
>
> </wsdl:types>
> <wsdl:message name="createContractRequest">
> <wsdl:part element="xsd1:Contract" name="parameters" />
> </wsdl:message>
> <wsdl:message name="createContractResponse">
> <wsdl:part element="xsd2:ResponseDoc" name="parameters" />
> </wsdl:message>
> <wsdl:message name="modifyContractRequest">
> <wsdl:part name="parameters" element="xsd1:Contract"></wsdl:part>
> </wsdl:message>
> <wsdl:message name="modifyContractResponse">
> <wsdl:part name="parameters" element="xsd2:ResponseDoc"></wsdl:part>
> </wsdl:message>
> <wsdl:message name="createContract_faultMsg">
> <wsdl:part name="parameters" element="xsd2:ResponseDoc"></wsdl:part>
> </wsdl:message>
> <wsdl:message name="modifyContract_faultMsg">
> <wsdl:part name="parameters" element="xsd2:ResponseDoc"></wsdl:part>
> </wsdl:message>
>
> <wsdl:message name="createContract_faultMsg1">
> <wsdl:part name="parameters" element="xsd2:ResponseDoc"></wsdl:part>
> </wsdl:message>
> <wsdl:message name="modifyContract_faultMsg1">
> <wsdl:part name="parameters" element="xsd2:ResponseDoc"></wsdl:part>
> </wsdl:message>
> <wsdl:portType name="ContractPortType">
> <wsdl:operation name="createContract">
> <wsdl:input message="eka:createContractRequest" />
> <wsdl:output message="eka:createContractResponse" />
>
> <wsdl:fault name="fault"
> message="eka:createContract_faultMsg1"></wsdl:fault>
> </wsdl:operation>
> <wsdl:operation name="modifyContract">
> <wsdl:input message="eka:modifyContractRequest"></wsdl:input>
> <wsdl:output message="eka:modifyContractResponse"></wsdl:output>
>
> <wsdl:fault name="fault"
> message="eka:modifyContract_faultMsg1"></wsdl:fault>
> </wsdl:operation>
> </wsdl:portType>
>
> <wsdl:binding name="ContractBinding" type="eka:ContractPortType">
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http" />
> <wsdl:operation name="createContract">
> <soap:operation
> soapAction="http://ekaplus.com/contract/createContract" />
> <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> <wsdl:operation name="modifyContract">
> <soap:operation
> soapAction="http://ekaplus.com/contract/modifyContract" />
> <wsdl:input>
> <soap:body use="literal" />
> </wsdl:input>
> <wsdl:output>
> <soap:body use="literal" />
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
>
> <wsdl:service name="ContractService">
> <wsdl:port binding="eka:ContractBinding"
> name="ContractServicePort">
> <soap:address
> location="http://localhost:8092/ContractService" />
> </wsdl:port>
> </wsdl:service>
>
> </wsdl:definitions>
>
> xbean as follows
>
> <beans xmlns="http://www.springframework.org/schema/beans"
> xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
> xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> xmlns:eka="http://ekaplus.com/contract"
> xsi:schemaLocation="http://servicemix.apache.org/cxfbc/1.0
> http://servicemix.apache.org/schema/servicemix-cxfbc-3.2.3.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
>
> <cxfbc:consumer wsdl="classpath:contract.wsdl"
> service="eka:ContractService"
> targetService="eka:contractBeanRouter"
> useJBIWrapper="false"
> useSOAPEnvelope="false"
> endpoint="ContractServicePort"/>
>
> <cxfbc:consumer wsdl="classpath:pricefixation.wsdl"
> service="eka:PriceFixationService"
> targetService="eka:priceFixationBeanRouter"
> useJBIWrapper="false"
> useSOAPEnvelope="false"
> endpoint="PriceFixationServicePort"/>
>
The sevice should match the service qname in your wsdl, the endpoint
should match the port name (localName) in your wsdl
>
> </beans>
>
> when I am accessing the wsdl with URL from .NET IDE(visual studio) I am
> getting following error, on console , Any idea on this
>
>
> java.lang.NullPointerException: MEP not found
> at
> org.apache.servicemix.cxfbc.interceptors.JbiInInterceptor.createExchange(JbiInInterceptor.java:117)
> at
> org.apache.servicemix.cxfbc.interceptors.JbiInInterceptor.handleMessage(JbiInInterceptor.java:63)
> at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:226)
> at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:89)
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:295)
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:258)
> at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:70)
> at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
> at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
> at org.mortbay.jetty.handler.HandlerList.handle(HandlerList.java:49)
> at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> at org.mortbay.jetty.Server.handle(Server.java:324)
> at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
> at
> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
> at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> at
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
>
>
>
> thanks
>
> Brijesh N K
>
>