[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: java.io.UTFDataFormatException: Invalid byte 1 of 1-byteUTF-8sequence



Scott:
We are using CGIDEV2 to create the XML template. Request_ptr is the
pointer retrieved to the Template buffer, Request_len is the length. The
odd characters are what is buried in the template. We ended up writing a
routine to replace invalid characters, and the process is working now.



-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Nelson
Ventura
Sent: Wednesday, August 12, 2009 2:40 PM
To: HTTPAPI and FTPAPI Projects
Subject: RE: java.io.UTFDataFormatException: Invalid byte 1 of
1-byteUTF-8sequence

Here is the two lines of code that create the Request_ptr.  We are using
CGIDEV2.
Request_ptr = GetHtmlBufferPointer() ;
Request_len = GetHtmlBytesBuffered() ;

For the XML, we are using the CGIDEV2 template so I am not sure how
those characters are getting in there.

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Klement
Sent: Wednesday, August 12, 2009 1:40 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte
UTF-8sequence

What is Request_Ptr?  What is it set to?  How does it get set?

The debug file you posted shows lots of invalid characters in your XML. 
  How did they get set that way?


Nelson Ventura wrote:
> We are trying to post an XML and we are getting an error on the
> response.  This is the error faultstring =
> java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8
> sequence
[SNIP]
>    rc = http_url_post_xml(Url
>                   : Request_ptr
>                   : Request_len
>                   : *NULL
>                   : %paddr(ElementEnd)
>                   : %addr(ack_msg)
>                   : HTTP_TIMEOUT
>                   : HTTP_USERAGENT
>                   : 'text/xml; charset=utf-8'
>                   : url );
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

The information contained in this electronic message is intended 
for the use of the individual or entity to which it is addressed, and 
may contain information that is privileged, confidential and exempt 
from disclosure under applicable law.  It is intended only for the use
of 
the individual(s) or entity named above.  If the reader is not the
intended recipient, you are hereby notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
  
If you have received this communication in error, please notify us 
immediately at compliance@xxxxxxxxxxxxxxxxx and delete the 
electronic message and any associated attachments.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

The information contained in this electronic message is intended 
for the use of the individual or entity to which it is addressed, and 
may contain information that is privileged, confidential and exempt 
from disclosure under applicable law.  It is intended only for the use of 
the individual(s) or entity named above.  If the reader is not the
intended recipient, you are hereby notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
  
If you have received this communication in error, please notify us 
immediately at compliance@xxxxxxxxxxxxxxxxx and delete the 
electronic message and any associated attachments.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------