With all jvms I have tried and for quite a while I have seen this failure on my machine with Windows XP. I think it actually started when I upgraded my machine to Windows XP from Windows 2000, but I am not totally sure of that. It occurs with both classes and jars, with both derby client and jcc and is not intermittent. The test fails every time.
I am attaching the test output (testSecMec_test_output.zip) to confirm that it is the same thing, but it sure seems like it because as Sunitha indicated the derby.log only shows two shutdown messages, instead of four.
The JVM for this run is:
ava version "1.5.0"
ava(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20060511 (SR2))
BM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20060504 (JIT enabled)
9VM - 20060501_06428_lHdSMR
IT - 20060428_1800_r8
C - 20060501_AA)
CL - 20060511a
OS is Windows XP Professional version 2002 Service Pack 2
All Sun and IBM jdk's that I have tried on this machine have the same failure, I am retiring this machine so thought I would record these results in case someone else hit the issue. Sadly, I don't have a solution to offer. One thing I tried, because I know it has caused other issues in the past was switching the test to just use port 1527 instead of 20000. That made no difference.
When I set up my new machine I will see if I have the same problem.