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 Simon Steinacker <si...@healthatnet.at> on 2008/03/12 10:31:51 UTC

Axis2: Invalid UTF-8 start byte 0xff (at char #1, byte #-1)

Hello,

I already wrote this issue once to the mailing list. But for me nothing 
has changed with the problem. I still get this error (I checked all 
library versions).

The complete Axis2 debug trace is: http://www.pastebin.org/23395
The message that causes the problem: http://www.pastebin.org/23396

I am very grateful for help! It is quite importat for me to solve this.
Thank you very much in advance!
best regards,
Simon

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


Re: Axis2: Invalid UTF-8 start byte 0xff (at char #1, byte #-1)

Posted by WJ Krpelan <kr...@yahoo.com>.
Hi,

I'd suggest testing service and client on the same
machine using AXIS2's WSDL2Java. 
Is this an AXIS2 service talking to an AXIS2 Client?
What obviously is missing in your soap-message in an
<?xml version=...../?> - tag in front of
<soapenv:Envelope .../>
Compare this to other soap-message-samples.

I'm not a member of the axis2 team btw so I cant give
you a definite answer where the problem lies I'm
afraid. 
Cheers

--- Simon Steinacker <si...@healthatnet.at>
wrote:

> Thanks for you reply!
> Well, as I am not developing the client application
> and do not have the 
> source code available, it might be the case that the
> message is UTF-16. 
> How can I determine that? Or where can I tell axis2
> that it should 
> decode UTF-16 messages?
> 
> Thanks,
> Simon
> 
> 
> WJ Krpelan wrote:
> > Hi,
> > just guessing: could something have changed the
> actual
> > encoding to utf-16 on the way (standard encoding
> with
> > microsoft windows) ? of course an
> UTF-8-XML-Document
> > is not expected to start with 0xFF.
> > additionaly, using text/xml is not quite safe,
> > application/xml would be preferrable
> > Cheers
> >
> > --- Simon Steinacker
> <si...@healthatnet.at>
> > wrote:
> >
> >   
> >> Hello,
> >>
> >> I already wrote this issue once to the mailing
> list.
> >> But for me nothing 
> >> has changed with the problem. I still get this
> error
> >> (I checked all 
> >> library versions).
> >>
> >> The complete Axis2 debug trace is:
> >> http://www.pastebin.org/23395
> >> The message that causes the problem:
> >> http://www.pastebin.org/23396
> >>
> >> I am very grateful for help! It is quite importat
> >> for me to solve this.
> >> Thank you very much in advance!
> >> best regards,
> >> Simon
> >>
> >>
> >>     
> >
>
---------------------------------------------------------------------
> >   
> >> To unsubscribe, e-mail:
> >> axis-dev-unsubscribe@ws.apache.org
> >> For additional commands, e-mail:
> >> axis-dev-help@ws.apache.org
> >>
> >>
> >>     
> >
> >
> >
> >      
>
____________________________________________________________________________________
> > Be a better friend, newshound, and 
> > know-it-all with Yahoo! Mobile.  Try it now. 
>
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> 
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail:
> axis-dev-help@ws.apache.org
> >
> >   
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> axis-dev-help@ws.apache.org
> 
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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


Re: Axis2: Invalid UTF-8 start byte 0xff (at char #1, byte #-1)

Posted by Simon Steinacker <si...@healthatnet.at>.
Thanks for you reply!
Well, as I am not developing the client application and do not have the 
source code available, it might be the case that the message is UTF-16. 
How can I determine that? Or where can I tell axis2 that it should 
decode UTF-16 messages?

Thanks,
Simon


WJ Krpelan wrote:
> Hi,
> just guessing: could something have changed the actual
> encoding to utf-16 on the way (standard encoding with
> microsoft windows) ? of course an UTF-8-XML-Document
> is not expected to start with 0xFF.
> additionaly, using text/xml is not quite safe,
> application/xml would be preferrable
> Cheers
>
> --- Simon Steinacker <si...@healthatnet.at>
> wrote:
>
>   
>> Hello,
>>
>> I already wrote this issue once to the mailing list.
>> But for me nothing 
>> has changed with the problem. I still get this error
>> (I checked all 
>> library versions).
>>
>> The complete Axis2 debug trace is:
>> http://www.pastebin.org/23395
>> The message that causes the problem:
>> http://www.pastebin.org/23396
>>
>> I am very grateful for help! It is quite importat
>> for me to solve this.
>> Thank you very much in advance!
>> best regards,
>> Simon
>>
>>
>>     
> ---------------------------------------------------------------------
>   
>> To unsubscribe, e-mail:
>> axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail:
>> axis-dev-help@ws.apache.org
>>
>>
>>     
>
>
>
>       ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>   


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


Re: Axis2: Invalid UTF-8 start byte 0xff (at char #1, byte #-1)

Posted by WJ Krpelan <kr...@yahoo.com>.
Hi,
just guessing: could something have changed the actual
encoding to utf-16 on the way (standard encoding with
microsoft windows) ? of course an UTF-8-XML-Document
is not expected to start with 0xFF.
additionaly, using text/xml is not quite safe,
application/xml would be preferrable
Cheers

--- Simon Steinacker <si...@healthatnet.at>
wrote:

> Hello,
> 
> I already wrote this issue once to the mailing list.
> But for me nothing 
> has changed with the problem. I still get this error
> (I checked all 
> library versions).
> 
> The complete Axis2 debug trace is:
> http://www.pastebin.org/23395
> The message that causes the problem:
> http://www.pastebin.org/23396
> 
> I am very grateful for help! It is quite importat
> for me to solve this.
> Thank you very much in advance!
> best regards,
> Simon
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail:
> axis-dev-help@ws.apache.org
> 
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


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