Hi,
I've try to download servicemix 3.2.2 snapshot build, and i retest
the configuration with wsa interceptors.
At a first look it seems to work, i'll see the wsa interceptors in
action and then
i'll see the jbi wrapped message on the screen.
But i've try to launch the same client two, or three times i've the
exception that is at the
end of this post.
Another thing i cannot understand if that after get the exception, i
retry to launch it wotking
so i've not a situation that i can reproduce.......
Any idea?
Here's the exception that appears soemtimes, i've not really understand
how to reproduce..
8-feb-2008 18.22.05 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unexpected character 'v' (code 118)
expected '
='
at [row,col {unknown-source}]: [65,162]
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.getBod
yElement(JbiInWsdl1Interceptor.java:217)
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handle
Message(JbiInWsdl1Interceptor.java:108)
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handle
Message(JbiInWsdl1Interceptor.java:60)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:208)
at
org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorCha
in.java:185)
at
org.apache.cxf.ws.addressing.ContextUtils$1.run(ContextUtils.java:417
)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
character 'v
' (code 118) expected '='
at [row,col {unknown-source}]: [65,162]
at
com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
623)
at
com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.jav
a:2999)
at
com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.j
ava:2934)
at
com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java
:2846)
at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
at
org.apache.cxf.staxutils.DepthXMLStreamReader.next(DepthXMLStreamRead
er.java:215)
at
org.apache.cxf.staxutils.DepthXMLStreamReader.next(DepthXMLStreamRead
er.java:215)
at
org.apache.cxf.staxutils.PartialXMLStreamReader.next(PartialXMLStream
Reader.java:41)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:671
)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:593)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:630
)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:593)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:630
)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:593)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:630
)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:593)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:630
)
at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:530)
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.getBod
yElement(JbiInWsdl1Interceptor.java:214)
... 8 more
8-feb-2008 18.22.05 org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs
INFO: retrieving MAPs from context property
javax.xml.ws.addressing.context.inbo
und
8-feb-2008 18.22.05 org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs
AVVERTENZA: WS-Addressing - failed to retrieve Message Addressing
Properties fro
m context
8-feb-2008 18.22.05 org.apache.cxf.ws.addressing.MAPAggregator getMAPs
INFO: MAPs retrieved from message null
8-feb-2008 18.22.05 org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs
INFO: retrieving MAPs from context property
javax.xml.ws.addressing.context.outb
ound
8-feb-2008 18.22.05 org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs
AVVERTENZA: WS-Addressing - failed to retrieve Message Addressing
Properties fro
m context
8-feb-2008 18.22.05 org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs
INFO: retrieving MAPs from context property
javax.xml.ws.addressing.context.outb
ound
8-feb-2008 18.22.05 org.apache.cxf.ws.addressing.ContextUtils retrieveMAPs
AVVERTENZA: WS-Addressing - failed to retrieve Message Addressing
Properties fro
m context
8-feb-2008 18.22.05
org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterc
eptor handleMessage
INFO: class
org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptorapp
lication/soap+xml
8-feb-2008 18.22.05 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.binding.soap.SoapFault: Error writing to XMLStreamWriter.
at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEnd
ingInterceptor.handleMessage(SoapOutInterceptor.java:248)
at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEnd
ingInterceptor.handleMessage(SoapOutInterceptor.java:1)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:208)
at
org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMess
age(AbstractFaultChainInitiatorObserver.java:96)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
orChain.java:242)
at
org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorCha
in.java:185)
at
org.apache.cxf.ws.addressing.ContextUtils$1.run(ContextUtils.java:417
)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.ctc.wstx.exc.WstxIOException: null
at
com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java
:1687)
at
com.ctc.wstx.sw.BaseStreamWriter.writeEndDocument(BaseStreamWriter.ja
va:585)
at
org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEnd
ingInterceptor.handleMessage(SoapOutInterceptor.java:243)
... 9 more
Caused by: org.mortbay.jetty.EofException
at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760)
at
org.mortbay.jetty.HttpConnection.flushResponse(HttpConnection.java:60
4)
at org.mortbay.jetty.Response.flushBuffer(Response.java:927)
at
org.apache.cxf.transport.http.AbstractHTTPDestination.flushHeaders(Ab
stractHTTPDestination.java:346)
at
org.apache.cxf.transport.http.AbstractHTTPDestination$WrappedOutputSt
ream.onFirstWrite(AbstractHTTPDestination.java:410)
at
org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOu
tputStream.java:42)
at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)
at
com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
at
com.ctc.wstx.sw.BufferingXmlWriter.close(BufferingXmlWriter.java:194)
at
com.ctc.wstx.sw.BaseStreamWriter.finishDocument(BaseStreamWriter.java
:1685)
... 11 more
Caused by: java.nio.channels.ClosedChannelException
at
sun.nio.ch.SocketChannelImpl.ensureWriteOpen(SocketChannelImpl.java:1
25)
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:294)
at
org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:166)
at
org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.
java:207)
at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:688)
... 20 more
Andrea Zoppello ha scritto:
Hi All,
I've a simple process made as follow:
CXF-BC -> Console Out
For the same configuration i've try two configuration:
1) In the fisrt configuration the xbean looks like:
<?xml version="1.0"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:testMtom_v_0="urn:iona:spagic:processes:testMtom:v0">
<cxfbc:consumer
service="testMtom_v_0:testMtom.End1_v_0"
targetService="testMtom_v_0:testMtom.End1_v_0"
endpoint="testMtom.Start1_v_0"
wsdl="classpath:XDS.b_DocumentRepository.wsdl"
mtomEnabled="true"
>
</cxfbc:consumer>
</beans>
If i send to this endpoint a SOAP request with wsa headers, the
process works but i loose
all the wsa headers
2) In the second configuration i've enabled the wsa-interceptors as
follow:
<?xml version="1.0"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:testMtom_v_0="urn:iona:spagic:processes:testMtom:v0">
<cxfbc:consumer
service="testMtom_v_0:testMtom.End1_v_0"
targetService="testMtom_v_0:testMtom.End1_v_0"
endpoint="testMtom.Start1_v_0"
wsdl="classpath:XDS.b_DocumentRepository.wsdl"
mtomEnabled="true"
>
<cxfbc:inInterceptors>
<bean
class="org.apache.cxf.ws.addressing.MAPAggregator"/>
<bean
class="org.apache.cxf.ws.addressing.soap.MAPCodec"/>
</cxfbc:inInterceptors>
<cxfbc:outInterceptors>
<bean
class="org.apache.cxf.ws.addressing.MAPAggregator"/>
<bean
class="org.apache.cxf.ws.addressing.soap.MAPCodec"/>
</cxfbc:outInterceptors>
<cxfbc:inFaultInterceptors>
<bean
class="org.apache.cxf.ws.addressing.MAPAggregator"/>
<bean
class="org.apache.cxf.ws.addressing.soap.MAPCodec"/>
</cxfbc:inFaultInterceptors>
<cxfbc:outFaultInterceptors>
<bean
class="org.apache.cxf.ws.addressing.MAPAggregator"/>
<bean
class="org.apache.cxf.ws.addressing.soap.MAPCodec"/>
</cxfbc:outFaultInterceptors>
</cxfbc:consumer>
</beans>
But in that case with the same message as above i see from the console
that wsa headers
are reader but i've the following exception:
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Unexpected end of input block;
expected an identifier
at [row,col {unknown-source}]: [201,62]
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.getBodyElement(JbiInWsdl1Interceptor.java:217)
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handleMessage(JbiInWsdl1Interceptor.java:108)
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.handleMessage(JbiInWsdl1Interceptor.java:60)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:207)
at
org.apache.cxf.phase.PhaseInterceptorChain.resume(PhaseInterceptorChain.java:184)
at
org.apache.cxf.ws.addressing.ContextUtils$1.run(ContextUtils.java:420)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected end of input
block; expected an identifier
at [row,col {unknown-source}]: [201,62]
at
com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOB(StreamScanner.java:675)
at
com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1029)
at
com.ctc.wstx.sr.StreamScanner.getNextCharFromCurrent(StreamScanner.java:786)
at
com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:2980)
at
com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2934)
at
com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2846)
at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019)
at
org.apache.cxf.staxutils.DepthXMLStreamReader.next(DepthXMLStreamReader.java:215)
at
org.apache.cxf.staxutils.DepthXMLStreamReader.next(DepthXMLStreamReader.java:215)
at
org.apache.cxf.staxutils.PartialXMLStreamReader.next(PartialXMLStreamReader.java:41)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:660)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:582)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:619)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:582)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:619)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:582)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:619)
at
org.apache.cxf.staxutils.StaxUtils.startElement(StaxUtils.java:582)
at
org.apache.cxf.staxutils.StaxUtils.readDocElements(StaxUtils.java:619)
at org.apache.cxf.staxutils.StaxUtils.read(StaxUtils.java:519)
at
org.apache.servicemix.cxfbc.interceptors.JbiInWsdl1Interceptor.getBodyElement(JbiInWsdl1Interceptor.java:214)
Is this a bug??
Any idea