Turadg Aleahmad wrote:
When one of my applets loads, it evaluates (require-library
"webscheme/wslib"). There's a file in the JAR webscheme/wslib.scm .
This used to load quickly, as I recall. But now it takes a while. I
set Java console trace to 5 to see what was going on and I've attached
what it spit out.
It finds webscheme/wslib, but only after about 500 (250?) HTTP hits
looking for stuff like byte.class.
Any ideas on how to stop that?
------------------------------------------------------------------------
evaluateQuiet: (with/fc (lambda (m e) (print-exception (make-exception m e))) (lambda
() (require-library "webscheme/wslib") ))
Trace level set to 5: basic, net, security, ext, liveconnect ... completed.
Connecting http://turadg.wisetest.org/modules/webscheme/byte.class with no proxy
Connecting http://turadg.wisetest.org/modules/webscheme/byte.class with cookie
"PHPSESSID=e3991fecd47a4f0ebc4fd9af5caceb2f"
I think the problem is the following code in
sisc.modules.s2j.Util.resolveType:
try {
return Class.forName(name, true, cl);
} catch (ClassNotFoundException e) {
return resolvePrimitiveType(name);
}
This should be switched around, i.e.
Class res = resolvePrimitveType(name);
if (res != null) return res;
try {
return Class.forName(name, true, cl);
} catch (ClassNotFoundException e) {
return null;
}
Can you give this a try and see wheter it fixes the problem?
Matthias.
PS: I think this code has not changed in a long time, so it is strange
that the behaviour has.
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
|