mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
aec69cc2f4
Subject: Re: another getClassLoader exception Date: Mon, 18 Oct 1999 22:01:24 -0400 From: Andrew Wason <aw@softcom.com> To: norris@netscape.com (Norris Boyd) CC: Howard Lin <howard@softcom.com> References: 1 , 2 At 05:03 PM 10/18/99 -0700, Norris Boyd wrote: >Are you still seeing this problem? Yes. I just did a CVS update to get the latest stuff and we still have this problem. I wrote a standalone sample program that duplicates the problem. Run JSSupport and you should get this exception: defineClass org.mozilla.javascript.gen.c2 Exception in thread "main" java.lang.NoClassDefFoundError: org/mozilla/javascript/gen/c1 at java.lang.ClassLoader.resolveClass0(Native Method) at java.lang.ClassLoader.resolveClass(ClassLoader.java:545) at JSSupport$MySecuritySupport$DataClassLoader.loadClass(JSSupport.java:89) at JSSupport$MySecuritySupport.defineClass(JSSupport.java:47) at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java, Compiled Code) at org.mozilla.javascript.Context.compile(Context.java:1761) at org.mozilla.javascript.Context.compile(Context.java:1691) at org.mozilla.javascript.Context.compileReader(Context.java:810) at org.mozilla.javascript.Context.evaluateReader(Context.java:725) at org.mozilla.javascript.Context.evaluateString(Context.java:692) at JSSupport.<init>(JSSupport.java:20) at JSSupport.main(JSSupport.java:9) Andrew >--N > >Andrew Wason wrote: > > > At 04:54 PM 10/12/99 -0700, Norris Boyd wrote: > > >I just checked in changes so that the class calling ScriptRuntime (c5 > in your > > >case) will load the class itself using the normal Java classloading > mechanism > > >rather than an explicit call to the class loader. I pushed the bits up > to the > > >ftp site, but it takes a bit to propagate. > > > > I get this exception now (debugging statements are from my code): > > > > SecuritySupport.defineClass org.mozilla.javascript.gen.c5 > > DataClassLoader.loadClass org.mozilla.javascript.gen.c5 > > DataClassLoader.loadClass org.mozilla.javascript.gen.c4 > > using default loader com.softcom.realjava.PluginClassLoader@da9486a0 > > java.lang.NoClassDefFoundError: org/mozilla/javascript/gen/c4 > > at java.lang.ClassLoader.resolveClass0(Native Method) > > at java.lang.ClassLoader.resolveClass(ClassLoader.java:545) > > at > > > com.softcom.realjava.plugins.RealJavaScript$RealJavaScriptSecuritySupport$Da > > taClassLoader.loadClass(RealJavaScript.java:410) > > at > > > com.softcom.realjava.plugins.RealJavaScript$RealJavaScriptSecuritySupport.de > > fineClass(RealJavaScript.java:352) > > at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java, > > Compiled Code) > > at org.mozilla.javascript.Context.compile(Context.java:1761) > > at org.mozilla.javascript.Context.compile(Context.java:1691) > > at org.mozilla.javascript.Context.compileReader(Context.java:810) > > > > So when c5 is being loaded by my SecuritySupport, it also needs to load c4. > > I decompiled org.mozilla.javascript.gen.c5 and it's constant pool > > references CLASS org.mozilla.javascript.gen.c4, so c5 is dependent on c4 > > being loadable. Is the problem that c5 is being loaded before the > > optimizer has defined c4? > > > > I get the above exception for some classes and not others. It seems > > consistent that I always get it for classes with dependencies on other > > optimizer classes that haven't been generated yet. > > > > Andrew > > > > -- > > Andrew Wason > > SoftCom, Inc. > > aw@softcom.com -- Andrew Wason SoftCom, Inc. aw@softcom.com JSSupport.java Name: JSSupport.java Type: Java Source File (text/java) Encoding: base64 |
||
---|---|---|
apache/gzip/src | ||
build | ||
calendar | ||
caps | ||
cck | ||
chrome/src | ||
cmd | ||
config | ||
content | ||
db | ||
dbm | ||
directory | ||
docshell | ||
dom | ||
editor | ||
ef | ||
embedding | ||
expat | ||
extensions | ||
gc/boehm | ||
gconfig | ||
gfx | ||
grendel | ||
htmlparser | ||
include | ||
intl | ||
java | ||
jpeg | ||
js | ||
js2/semantics | ||
l10n | ||
layout | ||
lib | ||
mailnews | ||
modules | ||
msgsdk | ||
nav-java | ||
netwerk | ||
network | ||
nsprpub | ||
nunet | ||
parser | ||
plugin/oji/MRJ | ||
privacy | ||
profile | ||
rdf | ||
README/mozilla | ||
silentdl | ||
string/obsolete | ||
suite | ||
sun-java | ||
timer | ||
tools | ||
tripledb | ||
uriloader | ||
view | ||
wallet | ||
webshell | ||
webtools | ||
widget | ||
xpcom | ||
xpfc | ||
xpfe | ||
xpinstall | ||
.cvsignore | ||
aclocal.m4 | ||
allmakefiles.sh | ||
client.mak | ||
client.mk | ||
configure | ||
configure.in | ||
LEGAL | ||
LICENSE | ||
Makefile.in | ||
makefile.win | ||
nglayout.mac | ||
nglayout.mk | ||
trex.mak | ||
trex.mk |