Applet Loader Problem

Started by paulscode, August 09, 2009, 23:04:26

Previous topic - Next topic

paulscode

Hi!

I am having a little difficulty getting the applet loader to work for my applet located at:
http://www.paulscode.com/demos/SoundSystem/09AUG2009/Helicopter.html

It seems to be loading the applet fine most of the way, then it crashes.  I get the following messages on the Java Console:

QuoteReading certificates from 11 http://www.paulscode.com/libs/lwjgl/JARs/lzma.jar | C:\Documents and Settings\Paul\Application Data\Sun\Java\Deployment\cache\6.0\9\386c6349-4ce47725.idx
Fatal error occured (5): null

I have used the applet loader before without problems.  I have the require .htaccess file in the proper directory for lzma stuff.  It contains:
AddType application/x-lzma .lzma


I have tried replacing all the jars and lzmas to make sure I'm using the most current versions.  I have tried deleting my temporary internet files.  I have tried changing the 'al_title' and 'al_version' arguments.  I am doing nothing in my program to require a signature, and I am using all the lwjgl files in their original form (as contained in lwjgl_applet-2.1.0.zip from the Download section).  The applet loads locally without a problem, but not from online.

I have also tried using only jars instead of lzmas.  Then I just get the fatal error output:
QuoteFatal error occured (5): null

My HTML file looks like this (the lzma version):
<html>
	<head>
		<link REL="SHORTCUT ICON" HREF="http://www.paulscode.com/images/RedBall.ico">
		<title>Holy Bouncing Helicopter Balls!!</title>
	</head>
	<body>

<applet code="org.lwjgl.util.applet.AppletLoader"
	archive="http://www.paulscode.com/libs/lwjgl/JARs/lwjgl_util_applet.jar,
		http://www.paulscode.com/libs/lwjgl/JARs/lzma.jar"
	codebase="." width="640" height="480">
	<param name="java_arguments" value="-Xmx320m">
	<param name="al_title" value="Helicopter">
	<param name="al_main" value="Helicopter">
	<param name="al_logo" value="http://www.paulscode.com/libs/lwjgl/paulscodelogo.png">
	<param name="al_progressbar" value="http://www.paulscode.com/libs/lwjgl/paulscodeprogress.gif">
	<param name="al_jars"
		value="http://www.paulscode.com/demos/SoundSystem/09AUG2009/Helicopter.jar,
			http://www.paulscode.com/libs/jpct/jpct.jar,
			http://www.paulscode.com/libs/SoundSystem/SoundSystem.jar,
			http://www.paulscode.com/libs/SoundSystem/LibraryJavaSound.jar,
			http://www.paulscode.com/libs/SoundSystem/CodecWav.jar,
			http://www.paulscode.com/libs/lwjgl/JARs/lwjgl.jar.pack.lzma,
			http://www.paulscode.com/libs/lwjgl/JARs/jinput.jar.pack.lzma,
			http://www.paulscode.com/libs/lwjgl/JARs/lwjgl_util.jar.pack.lzma,
			http://www.paulscode.com/libs/lwjgl/JARs/res.jar.lzma">
	<param name="al_windows" value="http://www.paulscode.com/libs/lwjgl/JARs/windows_natives.jar.lzma">
	<param name="al_linux" value="http://www.paulscode.com/libs/lwjgl/JARs/linux_natives.jar.lzma">
	<param name="al_mac" value="http://www.paulscode.com/libs/lwjgl/JARs/macosx_natives.jar.lzma">
	<param name="al_solaris" value="http://www.paulscode.com/libs/lwjgl/JARs/solaris_natives.jar.lzma">
    
	<param name="al_version" value="1.0">
    
</applet>
	</body>
</html>


The only thing different about this applet from numerous others I've written in the past is the 'java_arguments' parameter.  Do you think this might be causing the fatal error?

Any thoughts about what might else be causing the problem and what I can try doing to fix it?

Thanks in advance!

-Paul

kappa

.htaccess changes should no longer be needed since lwjgl 2.1 and it should just work everywhere.

fatal error 5 means it is failing when it is trying to extract the jars.

it was a noted issue that the AppletLoader didn't throw enough information when it failed, this has been fixed in svn. If you try the latest nightly build of lwjgl from http://www.newdawnsoftware.com/hudson/ you should get a much better error in the console (instead of just null) and will help you more easily find the problem.

edit: p.s. on an unrelated note always the <param name="separate_jvm" value="true"> parameter in the applet tag when using lwjgl applets, it makes them work much better.

paulscode

javalwjgl,

I uploaded the 2.2.0 nightly build files, removed the .htaccess file, added the 'separate_jvm' parameter, changed the 'al_version', and cleared the temporary internet files.  The applet is loading fine now.  Thanks for the fast and helpful response!

-Paul