Well, your question should probably go to appropriate mailing list. I
don't know what libraries your found your UnsignedByte Object in, but
it's that l'ibrary's mailing list which is appropriate for your question.

Not knowing anything about your library, i'll dare to guess that "abc"
is not in the range of 'unsigned byte' which typically is [0,255]

En l'instant précis du 02/14/07 11:43, Alicia Sánchez-Mora s'exprimait
en ces termes:
>  Hi,
>
> I want to assign a value to a variable of type UnsignedByte. In
> the  function it looks like this:
>
> public String function (){
>
>  final UnsignedByte ptr =new UnsignedByte() ;
>  final Base64 blob = new Base64 (ptr, 10, "id","type","options"*);
>  ...
> }
>
> I want the "ptr" variable to have a value other than empty. The
> constructor
> of UnsignedByte is defined as public UnsignedByte(java.lang.String
> sValue)
> When I initialized ptr with  final
>
> UnsignedByte ptr = new UnsignedByte("abc");
>
> the result was  that tomcat got hung up and throws a
> NumberFormatException.
> This is because a string can not be converted to a long. So what is the
> appropriate way…
>
> Thanks in advance,
>
> Alicia
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to