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 255355 - AssertionError: CloneableEditorSupport.getOpenedPanes() must be called from AWT thread only
Summary: AssertionError: CloneableEditorSupport.getOpenedPanes() must be called from A...
Status: RESOLVED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 255356 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-09-17 09:53 UTC by akobberup
Modified: 2016-07-14 01:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219981


Attachments
stacktrace (1.24 KB, text/plain)
2015-09-17 09:53 UTC, akobberup
Details

Note You need to log in before you can comment on or make changes to this bug.
Description akobberup 2015-09-17 09:53:46 UTC
This bug was originally marked as duplicate of bug 252521, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201509160002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.31-b07, Java(TM) SE Runtime Environment, 1.8.0_31-b13
OS: Windows 8

User Comments:
akobberup: hit shift+ctrl+s to save all

terje7601: And again...

terje7601: ...

terje7601: Created an XML Schema file using the wizard & pasted an XML fragment inside

terje7601: Same issue




Stacktrace: 
java.lang.AssertionError: CloneableEditorSupport.getOpenedPanes() must be called from AWT thread only
   at org.openide.text.CloneableEditorSupport.getOpenedPanes(CloneableEditorSupport.java:830)
   at org.netbeans.modules.xml.text.XMLTextRepresentation.updateText(XMLTextRepresentation.java:95)
   at org.netbeans.modules.xml.text.XMLTextRepresentation.update(XMLTextRepresentation.java:160)
   at org.netbeans.modules.xml.sync.SyncSupport.representationChanged(SyncSupport.java:239)
   at org.netbeans.modules.xml.sync.DataObjectSyncSupport.representationChanged(DataObjectSyncSupport.java:92)
   at org.netbeans.modules.xml.text.TextEditorSupport.syncDocument(TextEditorSupport.java:542)
Comment 1 akobberup 2015-09-17 09:53:51 UTC
Created attachment 156232 [details]
stacktrace
Comment 2 Svata Dedic 2015-09-25 14:12:06 UTC
*** Bug 255356 has been marked as a duplicate of this bug. ***
Comment 3 Svata Dedic 2015-09-29 09:35:58 UTC
Could you please provide some details on the file you're editing ? terje7601: you created XML schema - do you use some additional (3rd party) modules to visualize the schema contents ?
Comment 4 akobberup 2015-09-29 19:46:46 UTC
I have no extra modules of any kind for xml, and just created a blank xml document (selecting the "well formed" option). When trying to save the document i got the error.

However, i have not gotten it since, having updated to yet a newer dev version (currently 201509280002).
Comment 5 terje7601 2015-09-29 21:32:42 UTC
(In reply to Svata Dedic from comment #3)
> Could you please provide some details on the file you're editing ?
> terje7601: you created XML schema - do you use some additional (3rd party)
> modules to visualize the schema contents ?

I'm using dev builds of the Java EE distribution (OS Independent Zip), with no additional modules. I've only had this issue once, where it would constantly give me the error. If I remember correctly, I copy-pasted part of a JPA 2.1 .xsd (as defined in JSR-338, http://download.oracle.com/otndocs/jcp/persistence-2_1-fr-eval-spec/index.html ) in an empty XML Schema file. However, I can't readily reproduce it now. If I encounter it again, I'll make sure to provide steps to reproduce.
Comment 6 Svata Dedic 2016-06-24 15:16:40 UTC
Access to JPanel and caret replanned to EDT - jet-main#17909e476be7
Comment 7 Quality Engineering 2016-07-14 01:52:08 UTC
Integrated into 'main-silver', will be available in build *201607140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/17909e476be7
User: Svata Dedic <sdedic@netbeans.org>
Log: #255355: JPanel and caret accessed in EDT