Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2002 09:32:21 -0700
From:      "Tim E Schafer" <tim_schafer@agship.com>
To:        "'Andrew Gerweck'" <andrew.gerweck@presedia.com>, "Java FreeBSD" <freebsd-java@freebsd.org>
Subject:   RE: tomcat on linux-jdk14 VM dies more info
Message-ID:  <015b01c1fc2e$172f5e40$441814ac@newtim>
In-Reply-To: <3CE1E04E.2000006@presedia.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?015b01c1fc2e$172f5e40$441814ac>