Slick Forums

Discuss the Slick 2D Library
It is currently Thu May 23, 2013 2:02 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sun Jul 15, 2012 3:26 am 
Offline

Joined: Mon Apr 09, 2012 6:04 pm
Posts: 20
So the weird part is that its only on certain computers. Runs fine on some machines, fails on others giving:

"an error ocurred while loading the applet. Please contact support to resolve this issue. This occered while 'Downloading packages'"

The package in question is jogg-0.0.7 and/or jorbis-0.0.15 (Because the game loads fine on all machines when I remove the music.)

With the java console enabled, the applet loader gives this stack trace:

Code:
invalid entry size (expected 237633544 but got 0 bytes)
java.util.zip.ZipException: invalid entry size (expected 237633544 but got 0 bytes)
        at java.util.zip.ZipInputStream.readEnd(Unknown Source)
        at java.util.zip.ZipInputStream.read(Unknown Source)
        at com.sun.deploy.net.HttpDownloadHelper.decompressWrite(Unknown Source)
        at com.sun.deploy.net.HttpDownloadHelper.download(Unknown Source)
        at com.sun.deploy.cache.Cache$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.deploy.cache.Cache.downloadResourceToCache(Unknown Source)
        at com.sun.deploy.cache.DeployFileOutputStream.close(Unknown Source)
        at java.io.FilterOutputStream.close(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.close(Unknown Source)
        at org.lwjgl.util.applet.AppletLoader.downloadJars(AppletLoader.java:1501)
        at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:874)
        at java.lang.Thread.run(Unknown Source)


I'm using the jogg-0.0.7 and jorbis-0.0.15 that came from the slick package. My best guess is some sort of signing issue? Do I need to resign the libraries?

Here's some other details that may not be important:

-I have jogg and jorbis linked up as a referenced library and in the lib folder, but they don't have a native library, though I'm pretty sure I don't need it.

-So far all test subjects are using windows.

-Heres the HTML code:
Code:
<applet code="org.lwjgl.util.applet.AppletLoader"
        archive="lwjgl_util_applet.jar"
        codebase="."
        width="800" height="480"
   align="center">
  <param name="al_title" value="cat">
  <param name="al_main" value="org.newdawn.slick.AppletGameContainer">
  <param name="game" value="GameClasses.GameHarness"> 
  <param name="al_jars" value="cat.jar, lwjgl.jar, lwjgl_applet.jar, lwjgl_util_applet.jar, slick.jar, slick-util.jar, jogg-0.0.7.jar, jorbis-0.0.15.jar"> 
  <param name="al_windows" value="windows_natives.jar">
  <param name="al_linux" value="linux_natives.jar">
  <param name="al_mac" value="macosx_natives.jar">
     <!-- whether to run in debug mode -->
   <param name="al_debug" value="true">
  <param name="separate_jvm" value="true">
</applet>


When I take out the sound jars, (jogg and jorb) the game works fine on all computers.

Keep in mind, sound works on certain machines. Any ideas?


Top
 Profile  
 
PostPosted: Sun Jul 15, 2012 4:22 am 
Offline

Joined: Mon May 07, 2012 11:36 pm
Posts: 93
It might be unrelated, but whenever I run an applet, I have to disable my anti-virus for it to download properly. Although, your problem seems a bit too specific for it to be the case, but maybe it's worth trying anyway, right?


Top
 Profile  
 
PostPosted: Sun Jul 15, 2012 11:20 am 
Offline
Game Developer
User avatar

Joined: Sun Nov 12, 2006 8:40 pm
Posts: 574
try the latest version of LWJGL 2.8.4+ (or at minimum the lwjgl_util_applet.jar from latest release), the problem seems like one that was happening with older versions of LWJGL but was fixed in the above release.


Top
 Profile  
 
PostPosted: Sun Jul 15, 2012 9:01 pm 
Offline

Joined: Mon Apr 09, 2012 6:04 pm
Posts: 20
Updating to the newest versions of the lwjgl jars (2.8.3 to 2.8.4) works fine in eclipse, but now loading the applet gives:

Permission for applet refused. Please accept the permissions dialog to allow the applet to continue the loading process.

On the console, it threw:

Code:
CacheEntry[http://dan.nemmons.net/catclicker/lwjgl_util_applet.jar]: updateAvailable=true,lastModified=Sun Jul 15 16:56:32 EDT 2012,length=35715
Checking version
Determining packages to load
This occurred while 'Determining packages to load'
access denied ("java.util.PropertyPermission" "deployment.user.cachedir" "read")
java.security.AccessControlException: access denied ("java.util.PropertyPermission" "deployment.user.cachedir" "read")
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
   at java.lang.System.getProperty(Unknown Source)
   at org.lwjgl.util.applet.AppletLoader.getLWJGLCacheDir(AppletLoader.java:1067)
   at org.lwjgl.util.applet.AppletLoader$3.run(AppletLoader.java:1053)
   at org.lwjgl.util.applet.AppletLoader$3.run(AppletLoader.java:1041)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.util.applet.AppletLoader.getCacheDirectory(AppletLoader.java:1041)
   at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:846)
   at java.lang.Thread.run(Unknown Source)


Is this some sort of signing issue? Do I need to sign the new lwjgl jars? I still haven't incorporated sound yet, so this is just an issue with slick and lwjgl.

EDIT: Wait, using the updated lwjgl_util_applet from the lwjgl-applet-2.8.4 instead of the lwjgl-2.8.4 works, I guess it must be presigned? I wonder why they signed one but not the other, my guess is that the jars would be the same. Time to try the oggs again.

EDIT: Well I swapped out both lwjgl_util_applet with the new one and lwjgl_applet with the new one as well and the game runs without sound. When I put the sound back in, I receive this error:

jogg-0.0.7.jar fails to load

So I tried a different version, the one from http://slick.cokeandcode.com/demos/jogg-0.0.7.jar rather that the one included with slick.

When I use this one, the game gets to Sound sound = new Sound(path); and crashes on this line.

EDIT: (Hopefully the last). So I grabbed a different version of jogg-0.0.7.jar off of their google code page and it worked. So it must have been some combination of needing the new lwjgl jars and the version of jogg in the slick download may be corrupted. In any case, it works! So thank you, as your reward I shall give you this applet where you can click on cats to your heart's content.

http://dan.nemmons.net/catclicker/


Top
 Profile  
 
PostPosted: Mon Jul 16, 2012 7:32 am 
Offline

Joined: Mon May 07, 2012 11:36 pm
Posts: 93
Haha, that made me giggle. Needs a Nyancat edition :P


Top
 Profile  
 
PostPosted: Sun Dec 09, 2012 3:45 am 
Offline
User avatar

Joined: Fri Sep 14, 2012 9:44 am
Posts: 7
Up : I got the same problem...
Shnagenburg wrote:
EDIT: (Hopefully the last). So I grabbed a different version of jogg-0.0.7.jar off of their google code page and it worked.

Where can this version be downloaded? I didn't found any Google code page :(
And I still not understand where this problem comes from, I mean : why does it would work for slick.jar and not for another jar?

Edit: I directly included the code provided at http://www.jcraft.com/jorbis/ into my project, and it worked (I noticed that Minecraft did the same, then I tried xD). But is there a way to make it work as a separate jar?

_________________
My website : http://www.zylannprods.fr/en/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group