Skip to main content

Applets + JRE 1.6.0_06 + IE 7 + Ajax = Problem

2 replies [Last post]
Joined: 2008-06-08


I have a strange issue in front of me, and I don't know why it would be happening.

My problem is as follows:
Whenever I try to load an applet (any applet), through an Ajax update call on IE 7 with JRE 1.6.0_06 installed, I get a NullPointerException before the applet is loaded.

I get this NPE only with this special combination -> JRE 1.6.0_06 + IE 7 + Ajax call.

I don't face any issues if I do not use Ajax, i.e., if I load the applet using plain simple static HTML it works fine, but, when I use an ajax call to load the applet into a DIV tag I get a null pointer exception.

Does anyone have an idea as to why this may be happening? Could you please suggest some work around so that I get rid of the NPE.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-16

What's the stack trace?

Does this happen with the new Java Plug-In in 6u10?

Joined: 2008-06-08


i have not found out the reason for why this was happening, but, I have found a solution to overcome this issue. I now load the applet in an iframe instead of a div. This stopped the exceptions to appear.