From owner-freebsd-java Wed May 15 9:32:41 2002 Delivered-To: freebsd-java@freebsd.org Received: from email.agssmf.com (email.agssmf.com [63.196.107.134]) by hub.freebsd.org (Postfix) with ESMTP id 1738E37B409 for ; Wed, 15 May 2002 09:32:36 -0700 (PDT) Received: from newtim (smf68.smf.intranet [172.20.24.68]) by email.agssmf.com (8.11.1/8.11.1) with ESMTP id g4FGWKw95527; Wed, 15 May 2002 09:32:20 -0700 (PDT) (envelope-from tim_schafer@agship.com) From: "Tim E Schafer" To: "'Andrew Gerweck'" , "Java FreeBSD" Subject: RE: tomcat on linux-jdk14 VM dies more info Date: Wed, 15 May 2002 09:32:21 -0700 Message-ID: <015b01c1fc2e$172f5e40$441814ac@newtim> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <3CE1E04E.2000006@presedia.com> Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thanks for the tip. However the idiosyncrasities of StringTokenizer aren't the issue The problem is that the linux-jdk14 crashes while running on FreeBSD 4.5 release with the stock linux compatibility This is just one example of code that can make the bug rear it's ugly head Still need to test this on Linux But my guess is that it'll work fine on Linux And that the bug is in the compatibility layer Which based on some other recent posts is getting worse Since 4.5 stable with 7.1-base is having problems running The linux-jdk14 as a non-root user If there is any info that would help the code genuis that can track this down I'd be happy to try tests Got FreeBSD 4.3 release and 4.5 release and Redhat 7.1 and 7.3 boxes to test stuff on -------------------------------------------- Tim E Schafer tim_schafer@agship.com Programmer 800-562-9915 x190 or 916-376-6190 Associated Global Systems 3231 Evergreen Ave West Sacramento, CA 95691 -------------------------------------------- -----Original Message----- From: Andrew Gerweck [mailto:andrew.gerweck@presedia.com] Sent: Tuesday, May 14, 2002 9:13 PM To: Tim E Schafer Subject: Re: tomcat on linux-jdk14 VM dies more info Tim E Schafer wrote: > Found one source of grief > > StringTokenizer st = new StringTokenizer(somestring, ","); Just a friendly warning--if you have something like "a,,b" you won't get an empty token. The tokenizer treats multiple commas like multiple spaces and combines sequential separators. You also won't get a token after a trailing separator. I was bitten by this evil behavior once, so I thought I'd warn you. I always do my own tokenizing or use org.apache.regexp.RE's split method. Check out jakarta.apache.org if you haven't seen their regexp stuff. Good luck getting jdk 1.4 going! --Andy Gerweck To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message