Hi Andreas,
                  As Ruwan mentioned, there were some issues [1] [2] with
UTF-16 in Synapse-1.2. They were fixed in the Synapse trunk. IMV according
to the stack trace the culprit here is [1]. Can you try the above with a
build from the trunk.

[1] - https://issues.apache.org/jira/browse/SYNAPSE-662
[2] - https://issues.apache.org/jira/browse/SYNAPSE-670

On Wed, Jul 28, 2010 at 10:43 PM, Ruwan Linton <[email protected]>wrote:

> Hi Andreas**,
>
> Can the production system get UTF-16 encoded XML messages?? I remember a
> bug
> that we have fixed on the trunk with related to UTF-16. What is the version
> of the Synapse you are using??
>
> Thanks,
> Ruwan
>
> On Wed, Jul 28, 2010 at 5:45 PM, Luethi, Andreas <
> [email protected]> wrote:
>
> >  Hi
> >
> >
> >
> > I have three different systems (development, test, production). I have to
> > process a SOAP-Message thro synapse. On two of the systems it works, on
> one
> > I get the following error. The working systems running Windows
> (development)
> > and SuSE Linux (Test), the Error-System running SuSE Linux (Procuction).
> >
> >
> >
> > Please help
> >
> >
> >
> > Error-System:
> >
> > # java -version
> > java version "1.6.0_05"
> > Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
> > BEA JRockit(R) (build
> > R27.6.0-50_o-100423-1.6.0_05-20080626-2104-linux-x86_64, compiled mode)
> >
> >
> >
> >
> >
> >
> > Exception in thread "HttpClientWorker-9" java.lang.RuntimeException: [was
> > class java.io.CharConversionException] Invalid UTF-8 start byte 0xfc (at
> > char #4859, byte #4071)
> >
> >                 at
> >
> com.ctc.wstx.util.ExceptionUtil.throwRuntimeException(ExceptionUtil.java:18)
> >
> >                 at
> > com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:706)
> >
> >                 at
> >
> com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3655)
> >
> >                 at
> > com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809)
> >
> >                 at
> >
> org.apache.axiom.om.impl.llom.OMStAXWrapper.getText(OMStAXWrapper.java:418)
> >
> >                 at
> >
> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeText(StreamingOMSerializer.java:369)
> >
> >                 at
> >
> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:109)
> >
> >                 at
> >
> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:68)
> >
> >                 at
> >
> org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:57)
> >
> >                 at
> >
> org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:548)
> >
> >                 at
> >
> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:232)
> >
> >                 at
> >
> org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:947)
> >
> >                 at
> >
> org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:471)
> >
> >                 at
> >
> org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:79)
> >
> >                 at
> >
> org.apache.synapse.transport.nhttp.HttpCoreNIOSender.sendAsyncResponse(HttpCoreNIOSender.java:417)
> >
> >                 at
> >
> org.apache.synapse.transport.nhttp.HttpCoreNIOSender.invoke(HttpCoreNIOSender.java:264)
> >
> >                 at
> > org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448)
> >
> >                 at
> > org.apache.synapse.core.axis2.Axis2Sender.sendBack(Axis2Sender.java:138)
> >
> >                 at
> >
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:169)
> >
> >                 at
> >
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:301)
> >
> >                 at
> >
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:131)
> >
> >                 at
> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
> >
> >                 at
> >
> org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:200)
> >
> >                 at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
> >
> >                 at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> >
> >                 at java.lang.Thread.run(Thread.java:619)
> >
> > Caused by: java.io.CharConversionException: Invalid UTF-8 start byte 0xfc
> > (at char #4859, byte #4071)
> >
> >                 at
> > com.ctc.wstx.io.UTF8Reader.reportInvalidInitial(UTF8Reader.java:302)
> >
> >                 at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:188)
> >
> >                 at
> com.ctc.wstx.io.MergedReader.read(MergedReader.java:101)
> >
> >                 at
> > com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84)
> >
> >                 at
> >
> com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57)
> >
> >                 at
> > com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:967)
> >
> >                 at
> >
> com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4626)
> >
> >                 at
> >
> com.ctc.wstx.sr.BasicStreamReader.readCoalescedText(BasicStreamReader.java:4124)
> >
> >                 at
> >
> com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3699)
> >
> >                 at
> >
> com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3647)
> >
> >                 ... 23 more
> >
> >
> >
> >
> >
> > *Andreas Lüthi*  |  Consultant  |  Global Public Sector
> >
> > Unisys (Schweiz) AG  |  Zürcherstrasse 59-61  |  CH-8800 Thalwil  |
> > Office: ++41 44 723 30 94 |  Mobile: +41 79 286 76 44
> >
> > [image: cid:[email protected]]
> >
> >
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> > MATERIAL and is thus for use only by the intended recipient. If you
> received
> > this in error, [image: misc_enviro]please contact the sender and delete
> > the e-mail and its attachments from all computers.
> >
> >
> >
> >   Please consider the environment before printing this email.
> >
> >
> >
> >
> >
>
>
>
> --
> Ruwan Linton
> Software Architect & Product Manager, WSO2 ESB; http://wso2.org/esb
> WSO2 <http://wso2.org/esb%0AWSO2> Inc.; http://wso2.org
>
> Lean . Enterprise . Middleware
>
> phone: +1 408 754 7388 ext 51789
> email: [email protected]; cell: +94 77 341 3097
> blog: http://blog.ruwan.org
> linkedin: http://www.linkedin.com/in/ruwanlinton
> google: http://www.google.com/profiles/ruwan.linton
> tweet: http://twitter.com/ruwanlinton
>



-- 
Regards,
Heshan Suriyaarachchi

http://heshans.blogspot.com/

Reply via email to