users@glassfish.java.net

Enabling asserts and seeing it in the log

From: Arthur Yeo <artyyeo_at_gmail.com>
Date: Mon, 28 Feb 2011 19:20:27 -0800

All,

I have enabled "asserts" for my JVM in GF and my test shows that the program
is stopping with a Assertsion exception.
But, I cannot get the assert message to go into the GF Server log.

So, here's a sample line of code I am using:

       assert SomeObj != null : "Obj Blah is null --- irrecoverable";

The message "Obj Blah is null --- irrecoverable" is not showing up in the
GF server log.

-- 
Arthur Y.