JDK-4425665 : RAS: cloudcape failed with Merlin b55..b60 compiler1 on x86 & Sparc & win & linu
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.0
  • Priority: P1
  • Status: Closed
  • Resolution: Not an Issue
  • OS: linux,solaris,windows_2000
  • CPU: x86
  • Submitted: 2001-03-14
  • Updated: 2001-05-09
  • Resolved: 2001-04-18
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
in merlin_b60
running c1:

java.lang.NoClassDefFoundError: COM/jbms/exe/ac80000006x00dex7ce8x9eccx008190a94 
f000 
        at sun.reflect.GeneratedConstructorAccessor20.newInstance(Unknown Source 
) 
        at java.lang.reflect.Constructor.newInstance(Constructor.java:273) 
        at java.lang.Class.newInstance0(Class.java:290) 
        at java.lang.Class.newInstance(Class.java:249) 
        at COM.jbms.$90.$1003.newInstance(Unknown Source) 
        at COM.jbms.$57.$819.<init>(Unknown Source) 
        at COM.jbms.$57.$484.getActivation(Unknown Source) 
        at COM.jbms.$6.$404.executeStatement(Unknown Source) 
        at COM.jbms.$6.$404.execute(Unknown Source) 
        at EndlessExample.createTable(EndlessExample.java:45) 
        at EndlessExample.testLoop(EndlessExample.java:36) 
        at EndlessExample.<init>(EndlessExample.java:15) 
        at EndlessExample.main(EndlessExample.java:94) 
run.cscp1: Reached on error. Exiting 

running c2:

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x5056808B 
Function=[Unknown.] 
Library=c:\jdk1.3\jre\bin\server\jvm.dll 

NOTE: We are unable to locate the function name symbol for the error 
      just occurred. Please refer to release documentation for possible 
      reason and solutions. 
  

Current Java thread: 
        at java.lang.ClassLoader.defineClass0(Native Method) 
        at java.lang.ClassLoader.defineClass(ClassLoader.java:495) 
        at java.lang.ClassLoader.defineClass(ClassLoader.java:433) 
        at COM.jbms.$87.$467.loadGeneratedClass(Unknown Source) 
        at COM.jbms.$87.$449.loadGeneratedClassFromData(Unknown Source) 
        at COM.jbms.$90.$636.loadGeneratedClass(Unknown Source) 
        - locked <02B99DF0> (a java.util.Hashtable) 
        at COM.jbms.$48.$330.getGeneratedClass(Unknown Source) 
        at COM.jbms.$9.$947.generate(Unknown Source) 
        at COM.jbms.$57.$707.prepMinion(Unknown Source) 
        - locked <02BBC2A0> (a COM.jbms.$72.$323) 
        at COM.jbms.$57.$707.prepare(Unknown Source) 
        at COM.jbms.$72.$793.prepare(Unknown Source) 
         at COM.jbms.$6.$404.executeStatement(Unknown Source) 
        - locked <02B7D7B8> (a COM.jbms.$46.$223) 
        at COM.jbms.$6.$404.execute(Unknown Source) 
        - locked <02B7D7B8> (a COM.jbms.$46.$223) 
        at EndlessExample.createTable(EndlessExample.java:49) 
        at EndlessExample.testLoop(EndlessExample.java:36) 
        at EndlessExample.<init>(EndlessExample.java:15) 
        at EndlessExample.main(EndlessExample.java:94) 

Dynamic libraries: 
0x00400000 - 0x00405000         c:\jdk1.3\bin\java.exe 
0x77F80000 - 0x77FFA000         C:\WINNT\System32\ntdll.dll 
0x77DB0000 - 0x77E0A000         C:\WINNT\system32\ADVAPI32.dll 
0x77E80000 - 0x77F35000         C:\WINNT\system32\KERNEL32.DLL 
0x77D40000 - 0x77DB0000         C:\WINNT\system32\RPCRT4.DLL 
0x78000000 - 0x78046000         C:\WINNT\system32\MSVCRT.dll 
0x50510000 - 0x50778000         c:\jdk1.3\jre\bin\server\jvm.dll 
0x77E10000 - 0x77E74000         C:\WINNT\system32\USER32.dll 
0x77F40000 - 0x77F7C000         C:\WINNT\system32\GDI32.DLL 
0x77570000 - 0x775A0000         C:\WINNT\System32\WINMM.dll 
0x50200000 - 0x50207000         c:\jdk1.3\jre\bin\hpi.dll 
0x503D0000 - 0x503DD000         c:\jdk1.3\jre\bin\verify.dll 
0x50240000 - 0x50255000         c:\jdk1.3\jre\bin\java.dll 
0x503F0000 - 0x503FD000         c:\jdk1.3\jre\bin\zip.dll 
0x50340000 - 0x5034D000         C:\jdk1.3\jre\bin\net.dll 
0x75050000 - 0x75058000         C:\WINNT\System32\WSOCK32.dll 
0x75030000 - 0x75044000         C:\WINNT\System32\WS2_32.DLL 
0x75020000 - 0x75028000         C:\WINNT\System32\WS2HELP.DLL 
0x78280000 - 0x7828C000         C:\WINNT\System32\rnr20.dll 
0x77980000 - 0x779A4000         C:\WINNT\System32\DNSAPI.DLL 
0x777E0000 - 0x777E8000         C:\WINNT\System32\winrnr.dll 
0x77950000 - 0x77979000         C:\WINNT\system32\WLDAP32.DLL 
0x777F0000 - 0x777F5000         C:\WINNT\System32\rasadhlp.dll 
0x77830000 - 0x7783E000         C:\WINNT\System32\RTUTILS.DLL 
0x77920000 - 0x77942000         C:\WINNT\system32\imagehlp.dll 
0x72A00000 - 0x72A2D000         C:\WINNT\system32\DBGHELP.dll 
0x690A0000 - 0x690AB000         C:\WINNT\System32\PSAPI.DLL 

Local Time = Sat Apr 15 11:34:08 2000 
Elapsed Time = 508 
# 
# HotSpot Virtual Machine Error : EXCEPTION_ACCESS_VIOLATION 
# Please report this error at 
# http://java.sun.com/cgi-bin/bugreport.cgi 
# 
# Java VM: Java HotSpot(TM) Server VM (1.4.0-beta-b60 mixed mode) 
# 
# An error report file has been saved as hs_err_pid1708.log. 
# Please refer to the file for further information. 
# 
run.cscp1: Reached on error. Exiting 

dxoshin.chen@eng 2001-04-17
================================================================================
Machine used: jtgbp62a
cloudscape failed immediately with Merlin b55 -client flag.
Error message:

Shutting down due to severe error.
EndlessExample failed:
java.lang.NoClassDefFoundError: COM/jbms/exe/ac80000006x0084x4749x3347x008190a9a0000
        at sun.reflect.GeneratedConstructorAccessor23.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:273)
        at java.lang.Class.newInstance0(Class.java:284)
        at java.lang.Class.newInstance(Class.java:243)
        at COM.jbms.$90.$1003.newInstance(Unknown Source)
        at COM.jbms.$57.$819.<init>(Unknown Source)
        at COM.jbms.$57.$484.getActivation(Unknown Source)
        at COM.jbms.$6.$404.executeStatement(Unknown Source)
        at COM.jbms.$6.$404.execute(Unknown Source)
        at EndlessExample.createTable(EndlessExample.java:45)
        at EndlessExample.testLoop(EndlessExample.java:36)
        at EndlessExample.<init>(EndlessExample.java:15)
        at EndlessExample.main(EndlessExample.java:94)
run.cscp1: Reached on error. Exiting

How to reproduce the bug:
1. telnet to machine jtgbp62a as root ( passwd jtgbp62a)
2. /bs/runcscp.ksh -client
3. cd /bt/cloudscape*, check run.cstest.out log file.

june.zhong@eng 2001-03-14
================================================================================
in linux (redhat6.2), it happens in merlin_b58,59 c1. C2 -Xcomp pass!!
check web for linux at http://jtgb4u4c.eng/linux_bigapps/results/

java.lang.NoClassDefFoundError: COM/jbms/exe/ac80000006x00e5xcfbax64a6x007f00000
1000
        at sun.reflect.GeneratedConstructorAccessor20.newInstance(Unknown Source
)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:273)
        at java.lang.Class.newInstance0(Class.java:290)
        at java.lang.Class.newInstance(Class.java:249)
        at COM.jbms.$90.$1003.newInstance(Unknown Source)
        at COM.jbms.$57.$819.<init>(Unknown Source)
        at COM.jbms.$57.$484.getActivation(Unknown Source)
        at COM.jbms.$6.$404.executeStatement(Unknown Source)
        at COM.jbms.$6.$404.execute(Unknown Source)
        at EndlessExample.createTable(EndlessExample.java:45)
        at EndlessExample.testLoop(EndlessExample.java:36)
        at EndlessExample.<init>(EndlessExample.java:15)
        at EndlessExample.main(EndlessExample.java:94)
run.cscp1: Reached on error. Exiting

Comments
EVALUATION Hi Dave, I believe this bug to be fixed. Would please verify it with build 56 that just got promoted. Intstruction and machine name is in the Description page. Thanks to June for providing this info. mohammad.gharahgouzloo@Eng 2001-03-15 It looks like this is caused by some sort of interaction between the new JDK 1.4 reflection mechanism (which uses generated bytecodes to implement Class.newInstance()) and the classloaders in Cloudscape. It is possible that Cloudscape's classloaders do not follow the rules to the letter. The dynamically generated bytecodes are loaded into new loaders which delegate to the loader of the class for which the Method or Constructor was requested. Here is some debugging output: Delegating to a classloader of type sun.misc.Launcher$AppClassLoader Delegating to a classloader of type sun.misc.Launcher$AppClassLoader Delegating to null classloader Delegating to a classloader of type sun.misc.Launcher$AppClassLoader Delegating to null classloader Delegating to a classloader of type COM.jbms.$104.$735 Shutting down due to severe error. EndlessExample failed: java.lang.NoClassDefFoundError: COM/jbms/exe/ac80000006x00e5x49e9x4a77x0081907d66000 at sun.reflect.GeneratedConstructorAccessor99.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Constructor.java:273) at java.lang.Class.newInstance0(Class.java:287) ... Note that as soon as Cloudscape's loader is delegated to, things break. The failure can be more easily reproduced with the following command line (thanks to David.Cox@eng for help): java -Xint -Dsun.reflect.noInflation=true -classpath /net/jtgb4u4c.eng/export/sail8/1.3bigapps/ws/master/dist/cscp/jbms153/lib/embeddedJBMS.zip:/net/jtgb4u4c.eng/export/sail8/1.3bigapps/ws/master/dist/cscp/jbms153/lib/tools.zip:/net/jtgb4u4c.eng/export/sail8/1.3bigapps/ws/master/dist/cscp/jbms153/demo/embedded EndlessExample We will have to either contact Cloudscape to get more information or spend a significant amount of time to figure out exactly what their classloader is doing. kenneth.russell@eng 2001-03-16 I contacted Scott Fadden of Informix. He promissed to give us non-obfuscated copy of cloudscape 3.6 . Once we get it we'll be able to read stack trace and ask for a few sources of classes involved in the issue. This works better for Informix than providing us with whole source tree. My main contact at Cloudscape is Scott Fadden 503-225-4584 ###@###.### david.wallman@Eng 2001-04-16 Scott investigated the issue and found that failure was due to bug in the cloudscape code. He offered a workaround fior us: run cloudscape with -Dcloudscape.language.statementCacheSize=0 option I instructed bigapps testers to do this and cloudscape has been running for 19 hours without problems by now. david.wallman@Eng 2001-04-18 See 4474172 for a diagnosis of the root cause. Also resolves the original problem in this bug, though there was still a bug in Cloudscape's classloaders which has been fixed. kenneth.russell@eng 2001-07-13
13-07-2001