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 187191 - IllegalStateException: Too many org.netbeans.modules.javafx.fxd.composer.preview.PreviewTopComponent$1$1 (3) in shared RequestProcessor; create your own
Summary: IllegalStateException: Too many org.netbeans.modules.javafx.fxd.composer.prev...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Andrew Korostelev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-04 08:59 UTC by Alexandr Scherbatiy
Modified: 2010-07-08 10:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 170430


Attachments
stacktrace (2.24 KB, text/plain)
2010-06-04 08:59 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-06-04 08:59:55 UTC
Build: NetBeans IDE Dev (Build 201006020001)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP

Stacktrace: 
java.lang.IllegalStateException: Too many org.netbeans.modules.javafx.fxd.composer.preview.PreviewTopComponent$1$1 (3) in shared RequestProcessor; create your own
   at org.openide.util.RequestProcessor.post(RequestProcessor.java:422)
   at org.netbeans.modules.javafx.fxd.composer.preview.PreviewTopComponent$1.focusGained(PreviewTopComponent.java:221)
   at java.awt.Component.processFocusEvent(Component.java:6152)
   at java.awt.Component.processEvent(Component.java:6019)
   at java.awt.Container.processEvent(Container.java:2041)
   at java.awt.Component.dispatchEventImpl(Component.java:4630)
Comment 1 Alexandr Scherbatiy 2010-06-04 08:59:59 UTC
Created attachment 99809 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-06-04 09:04:06 UTC
The problem is that when I press Preview button for FXZ file the another tab for the same FXZ file opens. Now I have 5 tabs for the same FXZ files.
When I close all tabs and open the FXZ files all tabs open again.
Comment 3 Alexandr Scherbatiy 2010-06-04 09:22:45 UTC
Steps to reproduce:

- - Create FXZ file
- Copy the code to the Group conten:
------------------------------------------------------
            Rectangle {
                x: -properties.radius
                y: -properties.radius
                width: 2 * properties.radius
                height: 2 * properties.radius
                fill: properties.fill
                stroke: properties.stroke
            }
            Line {
                startX: -properties.radius
                startY: -properties.radius
                endX: properties.radius
                endY: properties.radius
                stroke: properties.stroke
            }
            Line {
                startX: -properties.radius
                startY: properties.radius
                endX: properties.radius
                endY: -properties.radius
                stroke: properties.stroke
            }
------------------------------------------------------

- Press Preview
- Close the file
- Open the file
Two tabs are opened for the same FXZ file
Comment 4 Andrew Korostelev 2010-06-15 14:28:16 UTC
i
Comment 5 Andrew Korostelev 2010-06-15 14:32:08 UTC
there is related issue 183588.
issue 183588 was fixed, but the last commit has moved fixing code from open() method to constructor (for more clear design purposes).
http://hg.netbeans.org/javafx/rev/638f5b7e9ee5

Fix worked well at that time, but looks like it stopped working after some other changes.
Rolling http://hg.netbeans.org/javafx/rev/638f5b7e9ee5 back fixes this issue.
Comment 6 Andrew Korostelev 2010-06-16 14:21:19 UTC
fixed
http://hg.netbeans.org/javafx/rev/2f9b2e381d6f
Comment 7 Alexandr Scherbatiy 2010-07-08 10:11:25 UTC
verified in NetBeans IDE 6.9.1 Dev (Build 201007072301)