synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heshan Suriyaarachchi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SYNAPSE-670) Messages with UTF-16 encoding fails on Synapse
Date Tue, 20 Jul 2010 06:08:49 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12890192#action_12890192
] 

Heshan Suriyaarachchi commented on SYNAPSE-670:
-----------------------------------------------

Hi, 
    I tested the above issue on a  build from the Synapse trunk. I created a client which
sends a UTF- 16 message to the endpoint. Then executed the client and sent the message to
the endpoint. The message does not fail and correct response is given at the client. Therefore
this issue does not exist in the Synapse trunk anymore. 

Heshan. 

> Messages with UTF-16 encoding fails on Synapse
> ----------------------------------------------
>
>                 Key: SYNAPSE-670
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-670
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2
>         Environment: Ubuntu9.04, Sun jdk1.5.0_18
>            Reporter: Evanthika Amarasiri
>            Priority: Critical
>
> When sending UTF-16 messages Synapse sets the encoding to UTF-8. 
> 2010-07-15 16:39:48,402 [127.0.1.1-evanthika-laptop] [HttpServerWorker-1]  INFO LogMediator
To: /, WSAction: urn:getQuote, SOAPAction: urn:getQuote, MessageID: urn:uuid:3C7A99D355437431851279192188324,
Direction: request, Envelope: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:getQuote
xmlns:ns="http://services.samples"><ns:request><ns:symbol>IBM</ns:symbol></ns:request></ns:getQuote></soapenv:Body></soapenv:Envelope>
> Then messages fails with the following exception
> 2010-07-15 16:39:48,657 [127.0.1.1-evanthika-laptop] [HttpClientWorker-1] ERROR ClientWorker
Fault creating response SOAP envelope
> org.apache.axis2.AxisFault: Character Set Encoding from transport information [UTF-8]
does not match with character set encoding in the received SOAP message [UTF-16]
> 	at org.apache.axis2.builder.BuilderUtil.validateCharSetEncoding(BuilderUtil.java:786)
> 	at org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:57)
> 	at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:164)
> 	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:112)
> 	at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:170)
> 	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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message