Hosting .jar files on Google Sites results in a caching effect with googlegroups.com. I can't say right now why this is, but you can see evidence of it in the Java console if you set the tracing level to 5.
For some applets I have, this poses no problem. However, I encountered security exceptions with getSoundClip
that I couldn't figure out in my applet. It always worked when I hosted it on a site set up by my ISP. I noticed the odd googlegroups.com URLs coming from some kind of cache, appearing in the console. Default console settings don't show caching, if I'm not mistaken.
Uploading the .jar file to code.google.com (and setting codebase, etc.) doesn't have any caching (that I can see) and my getSoundClip
calls work with no security exceptions.
In the following extract from the console of an applet that works for me on Google Sites, you can see an example of a URL on sites.google.com and its corresponding cache in bab6424e-a-62cb3a1a-s-sites.googlegroups.com. Note: I replaced the true path in the URLs with X/Y
and the jarfile with Z.jar
...
basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@bc71bd
basic: Plugin2ClassLoader.addURL parent called for https://sites.google.com/site/X/Y/Z.jar
security: Accessing keys and certificate in Mozilla user profile: null
security: JSS is not configured
security: Blacklist revocation check is enabled
security: Trusted libraries list check is enabled
cache: Adding MemoryCache entry: https://bab6424e-a-62cb3a1a-s-sites.googlegroups.com/site/X/Y/Z.jar?attachauth=ANoY7cpwDuO2zcBBImZ-rJvrPReeiY0EyL874NTY538mtqnsfd-A6p4uVsSKbeO0jcW336bRzkmqoJSiKk3MgG6dxISu6iXodhaXlmyxEaZ2sZ8sSkEkABSMu89vHzugUVfF2m31qp3N5RFe5QSqVMoY2vMjf7HAjLVmObNEmp7J83khcV1jepHpudfPZXhYeXD89Bv6XbBaePhwoueUZT9ZPEwNvepaKwGIr2IsActrdYOtrjiRScAzyp2dr9EwhnZXXIv6KsKv&attredirects=0
network: Cache entry found [url: https://sites.google.com/site/X/Y/Z.jar, version: null] prevalidated=false/0
cache: Adding MemoryCache entry: https://sites.google.com/site/X/Y/Z.jar
...