• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet Fails to load in IE for the first time at random times giving Exception in java console

 
Vaibhav Kr
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have built an applet and embedded it inside a jsp and trying to display it in IE. Details are:
OS : Win Vista - Microsoft Windows [Version 6.0.6001]
Browser: IE 7
JRE: 1.6.0_12

The applet fails to load at some times giving following stack trace, when i refresh the page it appears correctly with no stack trace again.

Exception in thread "AWT-EventQueue-1" java.lang.IllegalArgumentException: Invalid remove
at javax.swing.JTextArea.replaceRange(Unknown Source)
at com.sun.deploy.util.ConsoleWindow$25.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

The stack trace does not have any reference to my custom applet code neither I have used JTextArea --

The jsp where I have embedded my applet looks like, where the class id is given to use the latest jre in client browser :
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="990" height="700" name="PlanViewerIE" codebase="http://java.sun.com/update/1.6.0/jinstall-6u12-windows-i586.cab">

The <embed> tag is as follows:

<embed code="com.flexion.moment.planviewer.applet.PlanViewerApplet" name="PlanViewerFF" archive="/moment/appletlib/momentPlanViewer.jar"

Is it an issue with jsp tag usage or my custom applet code is breaking.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic