Fatal error occured (5): null (Applet)

Started by lainmaster, August 13, 2009, 16:22:04

Previous topic - Next topic

lainmaster

QuoteAn error occured when loading the applet.
Plese contact support to resolve this issue.
Fatal error occured (5): null

The game runs perfectly fine both from NetBeans and in the "normal" way, by doble clicking the index.htm (which opens it in Firefox), but if I try to load it from localhost/thegame I get that error. (I have WAMP installed). I guess it's got more to do with the server configuration than lwjgl or java, right? But what can I do?

This is my index.htm:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>AppletLoader</title>
  </head>
  <body>

  <applet code="org.lwjgl.util.applet.AppletLoader" archive="lwjgl_util_applet.jar, lzma.jar, Ex_Calce_Liberatus_Client.jar" codebase="." width="1024" height="768">
	<!-- <param name="al_version" value="0.3"> -->
    <!-- The following tags are mandatory -->

    <!-- Name of Applet, will be used as name of directory it is saved in, and will uniquely identify it in cache -->
    <param name="al_title" value="appletloadertest2">

    <!-- Main Applet Class -->
    <!-- <param name="al_main" value="org.lwjgl.test.applet.GearsApplet"> -->
	<param name="al_main" value="ecl.client.MainApplet">

    <!-- logo to paint while loading, will be centered -->
    <param name="al_logo" value="appletlogo.png">

    <!-- progressbar to paint while loading. Will be painted on top of logo, width clipped to percentage done -->
    <param name="al_progressbar" value="appletprogress.gif">

    <!-- List of Jars to add to classpath -->
    <param name="al_jars" value="lwjgl_applet.jar.pack.lzma, lwjgl.jar.pack.lzma, jinput.jar.pack.lzma, lwjgl_util.jar.pack.lzma, res.jar.lzma, Ex_Calce_Liberatus_Client.jar">

    <!-- signed windows natives jar in a jar -->
    <param name="al_windows" value="windows_natives.jar.lzma">

    <!-- signed linux natives jar in a jar -->
    <param name="al_linux" value="linux_natives.jar.lzma">

    <!-- signed mac osx natives jar in a jar -->
    <param name="al_mac" value="macosx_natives.jar.lzma">

    <!-- signed solaris natives jar in a jar -->
    <param name="al_solaris" value="solaris_natives.jar.lzma">

    <!-- Tags under here are optional -->

    <!-- Version of Applet, important otherwise applet won't be cached, version change will update applet, must be int or float -->
    <!-- <param name="al_version" value="0.1"> -->

    <!-- background color to paint with, defaults to white -->
    <!-- <param name="al_bgcolor" value="000000"> -->

    <!-- foreground color to paint with, defaults to black -->
    <!-- <param name="al_fgcolor" value="ffffff"> -->

    <!-- error color to paint with, defaults to red -->
    <!-- <param name="al_errorcolor" value="ff0000"> -->

    <!-- whether to run in debug mode -->
    <!-- <param name="al_debug" value="false"> -->

    <!-- whether to prepend host to cache path - defaults to true -->
    <param name="al_prepend_host" value="false">

    <!-- main applet specific params -->
    <!-- <param name="test" value="org.lwjgl.test.opengl.awt.AWTGearsCanvas"> -->

  </applet>

  </body>
</html>


I added this to mime.types, just randomly trying stuff:

application/lzma 				lzma 
application/java 				jar 
application/pack 				pack


What can I do?

Edit
My WAMP server runs fine for everything else (websites)

kappa

please see http://lwjgl.org/forum/index.php/topic,3000.0.html


also you don't need Ex_Calce_Liberatus_Client.jar in
archive="lwjgl_util_applet.jar, lzma.jar, Ex_Calce_Liberatus_Client.jar"
as you already have it in al_jars

lainmaster

Great, I think it's working now. Thanks : ) Just one more question... I downloaded the applet 2.2, and it has some files that look repeated. For example: lwjgl.jar.pack.lzma & lwjgl.jar.lzma & lwjgl.jar. Do I need all of them?

kappa

nope you only need one version of the file (the one you specify in your html).

.jar - is just standard zip compression
.jar.pack - is the standard jar with its class files using pack200 (for better compression)
.jar.lzma - jar using lzma compression (used for jars without class files)
.jar.pack.lzma - is using pack200 as well as lzma compression (the best for small size)

lainmaster

Thanks, I'll check that out later. It seems to work fine, now. Yippie! :D