You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Anna Sagi (JIRA)" <ji...@apache.org> on 2005/06/21 15:41:17 UTC

[jira] Created: (AXIS2-28) org.xml.sax.SAXParseException for charset="utf-8" in content type of server

org.xml.sax.SAXParseException for charset="utf-8" in content type of server
---------------------------------------------------------------------------

         Key: AXIS2-28
         URL: http://issues.apache.org/jira/browse/AXIS2-28
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug
  Components: client-api  
 Environment: Windows
    Reporter: Anna Sagi
 Assigned to: Davanum Srinivas 


Our Web Services server sends following lines ( part of response ) :

HTTP/1.1 200 OK

Server: gSOAP/2.7

Content-Type: multipart/related; boundary="<>06CsmIZO3OOnAfDG08Ik1DsFonA8WZfKTh36pQIgeWHf1LlqHtO9x6CZiCV4c0DvW6p/<>"; type="text/xml"; charset="utf-8"; start="<SOAP-ENV:Envelope>"

Content-Length: 328380

Connection: close


In axis1.2 we get following exeption ( it worked fine in axis 1.1)

{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Invalid encoding name &quot;utf-8&quot;; start=&quot;&lt;SOAP-ENV:Envelope&gt;&quot;.
	at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
	at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
	at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
	at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
	at org.apache.axis.client.Call.invoke(Call.java:2748)
	at org.apache.axis.client.Call.invoke(Call.java:2424)
	at org.apache.axis.client.Call.invoke(Call.java:2347)
	at org.apache.axis.client.Call.invoke(Call.java:1804)
	

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2080) org.xml.sax.SAXParseException for charset="utf-8" in content type of server

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2080?page=comments#action_12315573 ] 

Davanum Srinivas commented on AXIS-2080:
----------------------------------------

that's bad Content-Type from gSOAP. See for valid examples http://www.w3.org/International/O-charset. In particular:

type="text/xml"; charset="utf-8"

should be 
type="text/xml; charset=utf-8;

> org.xml.sax.SAXParseException for charset="utf-8" in content type of server
> ---------------------------------------------------------------------------
>
>          Key: AXIS-2080
>          URL: http://issues.apache.org/jira/browse/AXIS-2080
>      Project: Apache Axis
>         Type: Bug
>  Environment: Windows
>     Reporter: Anna Sagi
>     Assignee: Davanum Srinivas

>
> Our Web Services server sends following lines ( part of response ) :
> HTTP/1.1 200 OK
> Server: gSOAP/2.7
> Content-Type: multipart/related; boundary="<>06CsmIZO3OOnAfDG08Ik1DsFonA8WZfKTh36pQIgeWHf1LlqHtO9x6CZiCV4c0DvW6p/<>"; type="text/xml"; charset="utf-8"; start="<SOAP-ENV:Envelope>"
> Content-Length: 328380
> Connection: close
> In axis1.2 we get following exeption ( it worked fine in axis 1.1)
> {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Invalid encoding name &quot;utf-8&quot;; start=&quot;&lt;SOAP-ENV:Envelope&gt;&quot;.
> 	at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
> 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> 	at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> 	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> 	at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
> 	at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
> 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
> 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS2-28) org.xml.sax.SAXParseException for charset="utf-8" in content type of server

Posted by "Eran Chinthaka (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-28?page=comments#action_12314190 ] 

Eran Chinthaka commented on AXIS2-28:
-------------------------------------

This is not on Axis2. 

Select the correct project, please.

> org.xml.sax.SAXParseException for charset="utf-8" in content type of server
> ---------------------------------------------------------------------------
>
>          Key: AXIS2-28
>          URL: http://issues.apache.org/jira/browse/AXIS2-28
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: client-api
>  Environment: Windows
>     Reporter: Anna Sagi
>     Assignee: Davanum Srinivas

>
> Our Web Services server sends following lines ( part of response ) :
> HTTP/1.1 200 OK
> Server: gSOAP/2.7
> Content-Type: multipart/related; boundary="<>06CsmIZO3OOnAfDG08Ik1DsFonA8WZfKTh36pQIgeWHf1LlqHtO9x6CZiCV4c0DvW6p/<>"; type="text/xml"; charset="utf-8"; start="<SOAP-ENV:Envelope>"
> Content-Length: 328380
> Connection: close
> In axis1.2 we get following exeption ( it worked fine in axis 1.1)
> {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Invalid encoding name &quot;utf-8&quot;; start=&quot;&lt;SOAP-ENV:Envelope&gt;&quot;.
> 	at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
> 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> 	at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> 	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> 	at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
> 	at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
> 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
> 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-2080) org.xml.sax.SAXParseException for charset="utf-8" in content type of server

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-2080?page=all ]
     
Davanum Srinivas resolved AXIS-2080:
------------------------------------

    Resolution: Won't Fix

sorry. gSOAP problem.

> org.xml.sax.SAXParseException for charset="utf-8" in content type of server
> ---------------------------------------------------------------------------
>
>          Key: AXIS-2080
>          URL: http://issues.apache.org/jira/browse/AXIS-2080
>      Project: Apache Axis
>         Type: Bug
>  Environment: Windows
>     Reporter: Anna Sagi
>     Assignee: Davanum Srinivas

>
> Our Web Services server sends following lines ( part of response ) :
> HTTP/1.1 200 OK
> Server: gSOAP/2.7
> Content-Type: multipart/related; boundary="<>06CsmIZO3OOnAfDG08Ik1DsFonA8WZfKTh36pQIgeWHf1LlqHtO9x6CZiCV4c0DvW6p/<>"; type="text/xml"; charset="utf-8"; start="<SOAP-ENV:Envelope>"
> Content-Length: 328380
> Connection: close
> In axis1.2 we get following exeption ( it worked fine in axis 1.1)
> {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Invalid encoding name &quot;utf-8&quot;; start=&quot;&lt;SOAP-ENV:Envelope&gt;&quot;.
> 	at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
> 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> 	at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> 	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> 	at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
> 	at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
> 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
> 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2080) org.xml.sax.SAXParseException for charset="utf-8" in content type of server

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2080?page=comments#action_12315574 ] 

Davanum Srinivas commented on AXIS-2080:
----------------------------------------

typo!!!

type="text/xml; charset=utf-8";

> org.xml.sax.SAXParseException for charset="utf-8" in content type of server
> ---------------------------------------------------------------------------
>
>          Key: AXIS-2080
>          URL: http://issues.apache.org/jira/browse/AXIS-2080
>      Project: Apache Axis
>         Type: Bug
>  Environment: Windows
>     Reporter: Anna Sagi
>     Assignee: Davanum Srinivas

>
> Our Web Services server sends following lines ( part of response ) :
> HTTP/1.1 200 OK
> Server: gSOAP/2.7
> Content-Type: multipart/related; boundary="<>06CsmIZO3OOnAfDG08Ik1DsFonA8WZfKTh36pQIgeWHf1LlqHtO9x6CZiCV4c0DvW6p/<>"; type="text/xml"; charset="utf-8"; start="<SOAP-ENV:Envelope>"
> Content-Length: 328380
> Connection: close
> In axis1.2 we get following exeption ( it worked fine in axis 1.1)
> {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Invalid encoding name &quot;utf-8&quot;; start=&quot;&lt;SOAP-ENV:Envelope&gt;&quot;.
> 	at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1189)
> 	at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> 	at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
> 	at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
> 	at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
> 	at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
> 	at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
> 	at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
> 	at org.apache.axis.client.Call.invoke(Call.java:2748)
> 	at org.apache.axis.client.Call.invoke(Call.java:2424)
> 	at org.apache.axis.client.Call.invoke(Call.java:2347)
> 	at org.apache.axis.client.Call.invoke(Call.java:1804)
> 	

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira