Solved

Exception NULL in IE 6.0

Posted on 2002-05-07
2
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Suggested Courses

710 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