You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by mcoogan <mi...@daon.com> on 2007/12/12 17:27:37 UTC

Local Transport does not support MTOM optimization

Is it possible to enable mtom optimization with local transport? I am
attempting this with the following entry in my local transport configuration

	<jaxws:endpoint name="....." address="local://...." implementor="#...">
		<jaxws:features>
			<wsa:addressing />
		</jaxws:features>
		<jaxws:inInterceptors>
		<jaxws:properties>
			<entry key="mtom-enabled" value="true" />
		</jaxws:properties>
	</jaxws:endpoint>

but I am receiving the following error. 

12-Dec-2007 15:57:56 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader.
	at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeaders.......
	at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInt...
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
	at
org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:73)
	at
org.apache.cxf.transport.local.LocalConduit.dispatchDirect(LocalConduit.java:101)
	at org.apache.cxf.transport.local.LocalConduit.close(LocalConduit.java:73)
        ... more
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
character '-' (code 45) in prolog; expected '<'
 at [row,col {unknown-source}]: [2,1]
	at
com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623)
	at
com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)
	at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
	at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1095)
	at
org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadH
	... more


Has anyone attempted this. Any help would be appreciated.

Thanks
Michael
-- 
View this message in context: http://www.nabble.com/Local-Transport-does-not-support-MTOM-optimization-tp14298637p14298637.html
Sent from the cxf-user mailing list archive at Nabble.com.