• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 525
  • Last Modified:

Java Applet Error (java.lang.nullPointerException)

I'm using the CreditRoll.class applet (which I've used successfully before) and it's giving me fits. I get the "java.lang.nullPointerException" error every single time with nothing but a red x where the applet should be.

I'm on XP Pro SP2, using VS 2005 Web Developer, and have tested on IE 6, IE 7 and Firefox and get the same error on all of the machines/browsers. I've update Java to latest version, etc. I'm just not sure what else to check. Can someone give me some ideas as to why this is failing?

Here is the entire html script :

<%@ Page Language="VB" AutoEventWireup="false"  %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
<html xmlns="http://www.w3.org/1999/xhtml" >
Test Page
<applet code="CreditRoll.class" width="450" height="30">
<param name="bgcolor" value="#FAEBD7" />
<param name="textcolor" value="#191970" />
<param name="fadezone" value="20" />
<param name="text1" value="Witticism #1" />
<param name="text2" value="Witticism #2" />
<param name="text3" value="Witticism #3" />
<param name="url" value="http://getsteno.com" />
<param name="repeat" value="yes" />
<param name="speed" value="20" />
<param name="vspace" value="3" />
<param name="fontsize" value="15" />
Carla Romere
Carla Romere
  • 2
  • 2
1 Solution
Carla RomereDirector of Information TechnologyAuthor Commented:
Well I picked this area because I was developing in dot net, but apparently the problem was with that particular applet because I used another one and it worked fine in the same set up.
Applets run in the browser, and really depend on the HTML source, and your webserver setup.  I can assure you asp.net is not to blame for the problem!  I wonder if the browser just can't find the "CreditRoll.class" file on your webserver?
Carla RomereDirector of Information TechnologyAuthor Commented:
I don't know - it was in the same directory as the aspx file, and the sample on the website from where I downloaded the applet played just fine. It was weird. I downloaded another one that did basically the same thing and it ran fine. I haven't a clue what the problem is with the other one.
Just to be sure, can you verify that if your url looks like this


you do infact can make a request for this, and get the class?

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now