Re: webserver not starting?

Zoe <[email protected]> Wed, 30 Jun 2004 17:58:42 +0200
Newsgroups gmane.mail.zoe.general
Message-ID <[email protected]>
Hi Steph,

On Jun 30, 2004, at 16:51, Steph Smith wrote:

> I've got 23 jar files, all unique (two files can't share the same
> filename in the same directory)

Right... I mean duplicate jar versions (e.g. lucene-rc1.jar vs 
lucene.rc2.jar). In any case, 23 sounds like the right number :)

> [Loaded sun.security.provider.SeedGenerator$2 from
> /opt/blackdown-jdk-1.4.1/jre/lib/rt.jar]

blackdown-jdk... hmmm... is SecureRandom using random/urandom on linux? 
Could that block?

Anything else in your classpath which may interfere with the app? Any 
other version of mail.jar somewhere else on your system?

Try running the app with the daemon argument in case this change 
anything:

java -jar Zoe.jar debug daemon

> Or am I barking up the wrong tree with this?

The configuration are purely optional. If they exist, the app use them. 
Otherwise, it uses defaults.

In any case, the app goes as far as initializing the UUID generator. 
Then radio silence. Hmmmm...

The next log in the initialization sequence should show something along 
those lines:

06/30 17:32:10 (Debug) SZUUID.<clinit>: _unique: 241156929
06/30 17:32:10 (Debug) SZUUID.<clinit>: _sequence: 17895
06/30 17:32:10 (Debug) SZUUID.<clinit>: _node: -814219419

Which is the end of the UUID initialization... but you have never seen 
that, right?

A wild guess would be that your JVM is blocking while trying to 
generate a SecureRandom instance... just idle speculation :)

You can verify this theory by applying the attached patch which uses a 
low grade random generator instead of the current one. To install the 
patch, unarchive the attachment, copy the resulting 'SZUUID.class' into 
'<ZOE>/Library/Java/Patches/alt/dev/szfoundation/' and try to start the 
app in debug mode.

If you install the patch properly, you should see something along those 
lines:

06/30 17:52:27 (Debug) SZUUID.<clinit>: Start
06/30 17:52:27 (Debug) SZUUID.<clinit>: _unique: -1859743054
06/30 17:52:28 (Debug) SZUUID.<clinit>: _sequence: 17275
06/30 17:52:28 (Debug) SZUUID.<clinit>: _node: -1008621079
06/30 17:52:28 (Debug) SZUUID.<clinit>: End

Let me know if this helps...

Cheers,

R.


> -- 
> "Athens built the Acropolis.  Corinth was a commercial city, 
> interested in
> purely materialistic things.  Today we admire Athens, visit it, 
> preserve the
> old temples, yet we hardly ever set foot in Corinth."

Was not Corinth destroyed by the Romans in the first place?
SZUUID.class.tgz (application/octet-stream, 2.5 KB) - not displayed