Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

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

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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$ 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 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="">

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic