Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 52349 invoked from network); 15 Feb 2007 12:24:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2007 12:24:15 -0000 Received: (qmail 97470 invoked by uid 500); 15 Feb 2007 12:24:09 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 97442 invoked by uid 500); 15 Feb 2007 12:24:09 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 97427 invoked by uid 99); 15 Feb 2007 12:24:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 04:24:09 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of aliciasmm82@gmail.com designates 64.233.162.231 as permitted sender) Received: from [64.233.162.231] (HELO nz-out-0506.google.com) (64.233.162.231) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 04:23:58 -0800 Received: by nz-out-0506.google.com with SMTP id x7so504503nzc for ; Thu, 15 Feb 2007 04:23:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=lE4Ac5xYCBZTn8eX/fkVNP1KoEAlsVJBYrO1sfMHhkaBNk8PXBx6uPyY46b9v+5DaFOrOv5mbjMTbAFDInfIMPl9gw3GriIcA0aa1wQFcaxRIe9ULmNTEf5W64cUGpAwkV2hEgkqAwQEZktVTKwhJ/HKdDXEKxM8JMAL91kejN0= Received: by 10.65.153.10 with SMTP id f10mr2685699qbo.1171542217795; Thu, 15 Feb 2007 04:23:37 -0800 (PST) Received: by 10.65.214.14 with HTTP; Thu, 15 Feb 2007 04:23:37 -0800 (PST) Message-ID: Date: Thu, 15 Feb 2007 13:23:37 +0100 From: "=?ISO-8859-1?Q?Alicia_S=E1nchez-Mora?=" To: "Tomcat Users List" Subject: Re: Inicialization of an UnsignedByte variable In-Reply-To: <45D44F42.3020700@oma.be> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_68692_28737979.1171542217752" References: <45D302BB.30207@oma.be> <45D34820.404@christopherschultz.net> <45D44F42.3020700@oma.be> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_68692_28737979.1171542217752 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline This is the contrctor: *UnsignedByte* (java.lang.String sValue) of course, if you do some research on this and I found that internally when you pass a string as parameter to the constructor, the class will try to set this value to a value of type long. The following UnsignedByte class snippet shows this issue: public UnsignedByte (String javascript:searchRef('String')> sValue javascript:searchRef('sValue')>) throws NumberFormatException javascript:searchRef('NumberFormatException')> { setValue javascript:searchRef('setValue')>(Long javascript:searchRef('Long')>.parseLong javascript:searchRef('parseLong')>(sValue javascript:searchRef('sValue')>)); } What happens here is that you cannot convert a string to long and this cause tomcat to throw a NumberFormatException. This is why I created a custom UnsignedByte class as I already wrote. So my question is still why i= n the server side (tomcat is running) the blob length is cero? On 2/15/07, David Delbecq wrote: > > En l'instant pr=E9cis du 02/15/07 13:10, Alicia S=E1nchez-Mora s'exprimai= t > en ces termes: > > Hello again, > > > final UnsignedByte ptr =3D new UnsignedByte("this is a test") ; > > "this is a test" <-- How do you expect any implementation of anything to > convert this string to a number???? > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > ------=_Part_68692_28737979.1171542217752--