This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 139363

Summary: IllegalMonitorStateException when disabling or resetting the Preview
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: UnsupportedAssignee: Oleg Barbashov <obarbashov>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log file

Description Alexandr Scherbatiy 2008-07-09 10:19:23 UTC
Steps to reproduce:

- Create a JavaFX Script file:
------------------------------------------
import javafx.ext.swing.*;
import javafx.scene.geometry.*;
import javafx.scene.paint.*;

Frame{
    title: "MyFrame"
    content: Canvas{
        content: Circle{
            radius: 100
        }
    }
    visible: true
}
------------------------------------------
- Enable the Preview
- Disable the Preview

The exception pops up:

ava.lang.IllegalMonitorStateException
	at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:127)
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1175)
	at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:431)
	at java.util.concurrent.DelayQueue.take(DelayQueue.java:176)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:583)
	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:576)
	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
[catch] at java.lang.Thread.run(Thread.java:619)
Comment 1 Alexandr Scherbatiy 2008-07-09 10:21:08 UTC
Created attachment 64151 [details]
IDE log file
Comment 2 Alexandr Scherbatiy 2008-07-09 10:23:13 UTC
See the compiler issue: IllegalMonitorStateException in Applet
http://openjfx.java.sun.com/jira/browse/JFXC-1471
Comment 3 Alexandr Scherbatiy 2008-07-10 10:58:36 UTC
Resetting the preview also throws IllegalMonitorStateException
Comment 4 Lark Fitzgerald 2008-07-14 16:59:06 UTC
QE has declared this a stopper for preview and requested fix from sdk, marking as P1.
Comment 5 Alexandr Scherbatiy 2008-07-18 11:28:28 UTC
The issue is reproduced in build #375  2008-07-18_11-59-25.zip
from JavaFX_Preview_NB_Plugin_NB61_cont
Comment 6 Lark Fitzgerald 2008-07-21 14:22:20 UTC
Igor Kushnirskiy resolved JFXC-1471.
------------------------------------

    Fix Version/s: Technology Preview 1
       Resolution: Fixed

the fix is checked into https://scenegraph.dev.java.net/svn/scenegraph/branches/technology-preview-1 r304
Comment 7 Lark Fitzgerald 2008-07-21 15:55:51 UTC
Verified using:
Product Version: NetBeans IDE 6.1 (Build 200805300101)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Installer build: NO
fx NB61 continuous plugin: 380