Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 53382 invoked from network); 15 Feb 2007 12:31:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Feb 2007 12:31:31 -0000 Received: (qmail 12570 invoked by uid 500); 15 Feb 2007 12:31:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 12544 invoked by uid 500); 15 Feb 2007 12:31:25 -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 12533 invoked by uid 99); 15 Feb 2007 12:31:25 -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:31:25 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of David.Delbecq@oma.be designates 193.190.231.71 as permitted sender) Received: from [193.190.231.71] (HELO bonnie.oma.be) (193.190.231.71) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Feb 2007 04:31:14 -0800 Received: from [193.190.249.120] (bonnie.oma.be [193.190.231.71]) by bonnie.oma.be (8.11.1 (Revision 1.5) /8.11.1) with ESMTP id l1FCUqk10525 for ; Thu, 15 Feb 2007 12:30:53 GMT Message-ID: <45D452BB.1030804@oma.be> Date: Thu, 15 Feb 2007 13:31:55 +0100 From: David Delbecq User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Inicialization of an UnsignedByte variable References: <45D302BB.30207@oma.be> <45D34820.404@christopherschultz.net> <45D44F42.3020700@oma.be> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org En l'instant pr�cis du 02/15/07 13:23, Alicia S�nchez-Mora s'exprimait en ces termes: > > > What happens here is that you cannot convert a string to long and this > cause tomcat to throw a NumberFormatException. No, tomcat does not throw a NumberFormatException, The library does it and you do not catch it in your code. > This is why I created a > custom UnsignedByte class as I already wrote. So my question is still > why in > the server side (tomcat is running) the blob length is cero? Probably because "this is a test" could not be converted to anything meaningfull and finished as '0' ? You have a service that seems to expects an 'Unsigned Byte', you are putting great efforts to provide it with a random non numeric String instead of an number in correct range, and then you are wondering why it does not work?!? This is a nonsense. > > > > On 2/15/07, David Delbecq wrote: >> >> En l'instant pr�cis du 02/15/07 13:10, Alicia S�nchez-Mora s'exprimait >> en ces termes: >> > Hello again, >> >> > final UnsignedByte ptr = 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 >> >> > --------------------------------------------------------------------- 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