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 235049 - IllegalStateException: Referencing component is not part of model.
Summary: IllegalStateException: Referencing component is not part of model.
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: XAM (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-26 18:37 UTC by titosanxez
Modified: 2015-09-17 14:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 87386


Attachments
stacktrace (1.82 KB, text/plain)
2013-08-26 18:37 UTC, titosanxez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description titosanxez 2013-08-26 18:37:27 UTC
Build: NetBeans IDE 7.4 Beta (Build 201307092200)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Mac OS X

User Comments:
FrantaM: Editing xml schema.

titosanxez: Editing a XSD document using the editor from the XML tools plugin

GUEST: The error that occurred when editing an element <xsd:documentation/> of an XML schema.

GUEST: Working on developing an XML Schema (.xsd). Although the validator in the Source view shows no warnings or errors, the Design view gives "<The schema is invalid. Please run the validator from Source view and fix all errors.>" Commenting out various parts of the source and switching to Design view eventually yielded this error.

simonsteinmetz: Scanning projects freeze my netbeans

GUEST: when i was modifing a xsd file in source view




Stacktrace: 
java.lang.IllegalStateException: Referencing component is not part of model.
   at org.netbeans.modules.xml.xam.dom.AbstractNamedComponentReference.checkParentPartOfModel(AbstractNamedComponentReference.java:209)
   at org.netbeans.modules.xml.xam.dom.AbstractNamedComponentReference.getReferenced(AbstractNamedComponentReference.java:160)
   at org.netbeans.modules.xml.schema.model.impl.GlobalReferenceImpl.get(GlobalReferenceImpl.java:73)
   at org.netbeans.modules.xml.schema.model.impl.GlobalReferenceImpl.get(GlobalReferenceImpl.java:59)
   at org.netbeans.modules.xml.schema.ui.nodes.categorized.AdvancedGlobalSimpleTypeNode.valueChanged(AdvancedGlobalSimpleTypeNode.java:254)
   at org.netbeans.modules.xml.xam.ui.XAMUtils$AwtComponentListener$1.run(XAMUtils.java:219)
Comment 1 titosanxez 2013-08-26 18:37:29 UTC
Created attachment 139266 [details]
stacktrace
Comment 2 Martin Balin 2015-09-17 14:14:45 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.