The applet should return an exception. You need to learn the details about the exception. What is it and which line the exception is being thrown? These details should be shown on Java Console. Check following resources:
Java Plug-in Console
Enable and View Java Console Window - 1.4.2_xx
After knowing the details about the exception, we can advise you a solution.