Solved

Exception NULL in IE 6.0

Posted on 2002-05-07
2
194 Views
Last Modified: 2010-03-31
I have this piece of code:

   try
   {
       m_Image = m_RootApplet.getImage(new URL(m_GifDir
       + data));
   }
   catch(Exception e)
   {
       m_Log.debugInfo("EXCEPTION in loadImage: "
       + m_GifDir + data);
       m_Log.debugInfo("Exception " + e.getMessage());
   }

I get the following result in I.E.6 with Java JRE 2.0:

13:37:09 EXCEPTION in loadImage: http://scohdh/fids/gif/UAL.gif
13:37:09 Exception null

scohdh is a sco unix machine and runs a http daemon and in Visual Cafe it works properly. What can be the problem????


0
Comment
Question by:TheoViset
2 Comments
 
LVL 4

Accepted Solution

by:
Neutron earned 100 total points
ID: 6994237
Hi TheoViset,

you could try to use:

m_image = m_RootApplet.getImage(m_RootApplet.getCodeBase(), m_GifDir
      + data);

...instead.

Greetings,
    </ntr> :)
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 6994417
e.getMessage() returns null - e is probably NullPointerException or something similar that does not have message attached.

try this instead
 m_Log.debugInfo("Exception " + e);
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
copyEndy  challenge 15 55
sumHeights  challenge 17 60
Books that can get me started on JAVA 2 53
unix in java example 9 39
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

708 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

20 Experts available now in Live!

Get 1:1 Help Now