Java Applet Error (java.lang.nullPointerException)

Posted on 2006-04-26
Last Modified: 2012-06-21
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" "" />
<html xmlns="" >
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="" />
<param name="repeat" value="yes" />
<param name="speed" value="20" />
<param name="vspace" value="3" />
<param name="fontsize" value="15" />
Question by:Hers2keep

    Author Comment

    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.
    LVL 33

    Accepted Solution

    Applets run in the browser, and really depend on the HTML source, and your webserver setup.  I can assure you is not to blame for the problem!  I wonder if the browser just can't find the "CreditRoll.class" file on your webserver?

    Author Comment

    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.
    LVL 33

    Expert Comment

    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?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    I have developed many web applications with asp & and to add and use a dropdownlist was always a very simple task, but with the new, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now