servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <freeman.f...@gmail.com>
Subject Re: error in cxf-bc
Date Thu, 05 Mar 2009 09:24:50 GMT
Hi,

Error shows you pass invalid message to the cxf bc.
Could you also explain your workflow and the message passed to the cxf bc.
Freeman

brijesh wrote:
>  
>
> Any idea on following error stack.  When i am calling cxf-bc su getting, i
> am getting following error. 
>
>
> org.apache.cxf.interceptor.Fault: Content is not allowed in prolog.
>         at
> org.apache.servicemix.cxfbc.interceptors.JbiOutWsdl1Interceptor.handleMessage(JbiOutWsdl1Interceptor.java:149)
>         at
> org.apache.servicemix.cxfbc.interceptors.JbiOutWsdl1Interceptor.handleMessage(JbiOutWsdl1Interceptor.java:56)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:226)
>         at
> org.apache.cxf.interceptor.OutgoingChainInterceptor.handleMessage(OutgoingChainInterceptor.java:74)
>         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:213)
>         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)
> Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
>         at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
>         at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
>         at
> org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSourceFromStream(SourceTransformer.java:262)
>         at
> org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMSource(SourceTransformer.java:175)
>         at
> org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMNode(SourceTransformer.java:311)
>         at
> org.apache.servicemix.jbi.jaxp.SourceTransformer.toDOMElement(SourceTransformer.java:361)
>         at
> org.apache.servicemix.cxfbc.interceptors.JbiOutWsdl1Interceptor.handleMessage(JbiOutWsdl1Interceptor.java:72)
>         ... 20 more
>
>
> wsdl as follows
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> 	xmlns:tns="http://www.ekaplus.com/NotifyEvent/"
> 	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> 	xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NotifyEvent"
> 	targetNamespace="http://www.ekaplus.com/NotifyEvent/">
> 	<wsdl:types>
> 		<xsd:schema
> 			targetNamespace="http://www.ekaplus.com/NotifyEvent/">
> 			<xsd:element name="notifyEvent">
> 				<xsd:complexType>
> 					<xsd:sequence>
> 						<xsd:element name="in" type="xsd:string" />
> 					</xsd:sequence>
> 				</xsd:complexType>
> 			</xsd:element>
> 			<xsd:element name="notifyEventResponse">
> 				<xsd:complexType>
> 					<xsd:sequence>
> 						<xsd:element name="out" type="xsd:string" />
> 					</xsd:sequence>
> 				</xsd:complexType>
> 			</xsd:element>
> 		</xsd:schema>
> 	</wsdl:types>
> 	<wsdl:message name="notifyEventRequest">
> 		<wsdl:part element="tns:notifyEvent" name="parameters" />
> 	</wsdl:message>
> 	<wsdl:message name="notifyEventResponse">
> 		<wsdl:part element="tns:notifyEventResponse" name="parameters" />
> 	</wsdl:message>
> 	<wsdl:portType name="NotifyEventPortType">
> 		<wsdl:operation name="notifyEvent">
> 			<wsdl:input message="tns:notifyEventRequest" />
> 			<wsdl:output message="tns:notifyEventResponse" />
> 		</wsdl:operation>
> 	</wsdl:portType>
> 	<wsdl:binding name="NotifyEventBinding"
> 		type="tns:NotifyEventPortType">
> 		<soap:binding style="document"
> 			transport="http://schemas.xmlsoap.org/soap/http" />
> 		<wsdl:operation name="notifyEvent">
> 			<soap:operation
> 				soapAction="http://www.ekaplus.com/NotifyEvent/notifyEvent" />
> 			<wsdl:input>
> 				<soap:body use="literal" />
> 			</wsdl:input>
> 			<wsdl:output>
> 				<soap:body use="literal" />
> 			</wsdl:output>
> 		</wsdl:operation>
> 	</wsdl:binding>
> 	<wsdl:service name="NotifyEventService">
> 		<wsdl:port binding="tns:NotifyEventBinding"
> 			name="NotifyEventPort">
> 			<soap:address location="http://localhost:8092/NotifyEventService" />
> 		</wsdl:port>
> 	</wsdl:service>
> </wsdl:definitions>
>
>
>
>   


Mime
View raw message