users@jax-rpc.java.net

what can cause utf-8 to be unsupported

From: Steve Pruitt <SPruitt_at_exstream.com>
Date: Thu, 11 Mar 2004 16:36:40 -0500

Has anyone gotten this exception when using DII? This seems very peculiar to me.

java.io.UnsupportedEncodingException: "UTF-8"
java.io.UnsupportedEncodingException: "UTF-8"
        at sun.io.Converters.getConverterClass(Converters.java(Compiled Code))
        at sun.io.Converters.newConverter(Converters.java:152)
        at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:81)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:93)
        at com.ibm.xml.b2b.util.JavaEncodingSupport.readCharacters(Unknown Source)
        at com.ibm.xml.b2b.util.entity.ParsedEntityRecognizer.convertByteStreamToUTF8(Unknown Source)
        at com.ibm.xml.b2b.util.entity.ByteArrayParsedEntityFactory.setByteStreamSource(Unknown Source)
        at com.ibm.xml.b2b.util.entity.ParsedEntityRecognizer.setSource(Unknown Source)
        at com.ibm.xml.b2b.util.entity.ByteArrayParsedEntityFactory.createParsedEntity(Unknown Source)
        at util.DocumentEntityParserBase.parse(Unknown Source)
        at sax.SAX2DocumentEntityParserBase.parseEntity(Unknown Source)
        at sax.SAX2DocumentEntityParserBase.parse(Unknown Source)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)



My SOAP request looks ok. The payload is a string representation of a DOM. I tried with an empty string and got the same exception.

POST /exstream/services/EngineServiceSEIPort HTTP/1.1
Content-Type: text/xml; charset="utf-8"
Content-Length: 567
SOAPAction: ""
User-Agent: Java/1.4.1_03
Host: localhost
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

<?xml version="1.0" encoding="UTF-8"?>
   <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <env:Body>
         <ans1:compose xmlns:ans1="urn:exstream-services">
            <reportRequest href="#ID1"/>
         </ans1:compose>
         <ans1:REPORT_REQ xmlns:ans1="urn:exstream-services" id="ID1">
             <value xsi:type="xsd:string">&lt;exstream&gt;&lt;pubfile&gt;simple.pub&lt;/pubfile&gt;&lt;customers&gt;&lt;customer id="4875678"&gt;&lt;name&gt;Ellen Myers&lt;customer id="4888679"&gt;&lt;name&gt;Neo Anderson&lt;customer id="4828906"&gt;&lt;name&gt;Trinity Girl&lt;/name&gt;&lt;/customer&gt;&lt;/name&gt;&lt;/customer&gt;&lt;/name&gt;&lt;/customer&gt;&lt;/customers&gt;&lt;/exstream&gt;</value>
         </ans1:REPORT_REQ>
      </env:Body>
   </env:Envelope>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net