ICEpdf
  1. ICEpdf
  2. PDF-168

Applet dipose causing IllegalMonitorStateException on reload

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      Applet example, appletviewer or j2se browser plugin

      Description

      When ICEpdf is used with JDK 1.6 in an applet deployement a reload of the applet causes an IllegalMonitorStateException exception to occur. There appears to be more information on this at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6627356 .

      In our application code we have two static ThreadPoolExecutors which to pasing and paint work for all open documents. It appears that the only work around to this issue is to create a new isntance of the thread pools for each open document and then shutdown the pool when the document is clossed. This approach is alittle heavier then the old but it gets around the applet issue and it only affects the viewer RI, the render core is untouched.

        Activity

        Hide
        Patrick Corless added a comment -

        Upated the AbstarctDocuemtnviewModel so that the threadpool is shutdown on dispose.

        Show
        Patrick Corless added a comment - Upated the AbstarctDocuemtnviewModel so that the threadpool is shutdown on dispose.

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: