Bug 470

Summary: Gears.jnlp does not start on Mac OS X
Product: [JogAmp] Jogl Reporter: tramberend
Component: macosxAssignee: Sven Gothel <sgothel>
Status: VERIFIED INVALID    
Severity: normal CC: wwalker3
Priority: ---    
Version: 2   
Hardware: pc_x86_64   
OS: macosx   
Type: --- SCM Refs:
Workaround: ---
Attachments: Screenshot of the error dialogs that pop up when starting Gears.jnlp.

Description tramberend 2011-02-13 11:46:45 CET
Created attachment 229 [details]
Screenshot of the error dialogs that pop up when starting Gears.jnlp.

Starting the gears demo via http://jogamp.org/deployment/webstart-next/jogl-demos/Gears.jnlp on Mac OS X Version 10.6.6 with all updates installed yields the following error:

Exception:

com.sun.deploy.net.FailedDownloadException: Ressource konnte nicht geladen werden: http://jogamp.org/deployment/webstart-next/jogl-demos/jogl-demos.jar
	at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1372)
	at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1525)
	at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1503)
	at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1609)
	at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1534)
	at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
	at com.sun.javaws.LaunchDownload$DownloadTask.call(LaunchDownload.java:1979)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)

Cause: 

java.util.zip.ZipException: ZIP file must have at least one entry
	at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304)
	at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:146)
	at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:321)
	at com.sun.deploy.net.HttpDownloadHelper.download(HttpDownloadHelper.java:228)
	at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Cache.java:568)
	at com.sun.deploy.cache.Cache.downloadResourceToCache(Cache.java:529)
	at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1347)
	at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1525)
	at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1503)
	at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1609)
	at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1534)
	at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
	at com.sun.javaws.LaunchDownload$DownloadTask.call(LaunchDownload.java:1979)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:680)
Comment 1 Wade Walker 2011-03-16 03:42:08 CET
What video card do you have? I just ran from that link on OS X 10.6.6 and the gears demo came up OK. I'm using Safari 5.0.4 (6533.20.27) and an NVIDIA GeForce 320M.
Comment 2 tramberend 2011-03-16 07:20:26 CET
I am using a 2.66 GHz Intel Core i7 MacBook Pro with 8 GB of 1067 MHz DDR3 ram. The graphics card is a NVIDIA GeForce GT 330M. I just tried again in case something has changed. Same error.
Comment 3 Wade Walker 2011-03-16 13:13:44 CET
Could you give me your Safari and JVM versions? Hopefully something is different between our systems that will give us a clue what's going on.

Also, please make sure you can manually navigate in Safari to http://jogamp.org/deployment/webstart-next/jogl-demos/ in your browser and manually download jogl-demos.jar -- perhaps there's a firewall or permissions problem somewhere.
Comment 4 Wade Walker 2011-03-17 00:22:51 CET
You might also try:

- Updating Java
- Checking for conflicting JARs in ~/Library/Java/Extensions and /Library/Java/Extensions

Other users have solved similar problems by doing one of these things.
Comment 5 tramberend 2011-03-17 07:52:16 CET
My Safari is version 5.0.4 (6533.20.27).

Java is also up to date:  
  java version "1.6.0_24"
  Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
  Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)

~/Library/Java/Extensions is empty.

/Library/Java/Extensions contains:
libsvnjavahl-1.jnilib@

/System/Library/Java/Extensions contains:
AppleScriptEngine.jar
MRJToolkit.jar
QTJava.zip
dns_sd.jar
jai_codec.jar
jai_core.jar
libAppleScriptEngine.jnilib*
libQTJNative.jnilib*
libShark.jnilib*
libmlib_jai.jnilib*
mlibwrapper_jai.jar

Wait, looking for conflicting extensions brought me on the right track. I cleared the Java Webstart Cache with 

  javaws -Xclearcache

Now Gears.jnlp works. Sorry for bothering you.
Comment 6 Wade Walker 2011-03-17 13:58:26 CET
This is actually good -- I didn't know about "javaws -Xclearcache". I'll put that on the wiki to help others in the future.