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 79785 - Exception on adding an element
Summary: Exception on adding an element
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Model (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: bhate
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-05 15:35 UTC by kozlov
Modified: 2006-07-11 13:29 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kozlov 2006-07-05 15:35:14 UTC
To reproduce the Bug:

1. create newpo Schema;
2. switch to Source View;
3. type '<' select 'element' from code complition menu;
4. press 'space'.

Exception:

java.lang.IllegalStateException: The model is not initialized or is broken.
	at
org.netbeans.modules.xml.xdm.XDMModel.checkStableOrParsingState(XDMModel.java:810)
	at org.netbeans.modules.xml.xdm.XDMModel.getDocument(XDMModel.java:678)
	at
org.netbeans.modules.xml.xdm.xam.XDMAccess.getContainingElement(XDMAccess.java:280)
	at
org.netbeans.modules.xml.xdm.xam.XDMAccess.getContainingElement(XDMAccess.java:61)
	at
org.netbeans.modules.xml.xam.dom.AbstractDocumentModel.findComponent(AbstractDocumentModel.java:329)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaSourceMultiViewElement.findNode(SchemaSourceMultiViewElement.java:363)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaSourceMultiViewElement.access$200(SchemaSourceMultiViewElement.java:66)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaSourceMultiViewElement$4$1.run(SchemaSourceMultiViewElement.java:338)
	at org.openide.util.Mutex.readAccess(Mutex.java:227)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaSourceMultiViewElement$4.run(SchemaSourceMultiViewElement.java:334)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 bhate 2006-07-10 18:43:30 UTC
this issue is same as 79902.
fix for 79902 fixes this too.
Comment 2 kozlov 2006-07-11 13:26:07 UTC
Verified in build060711.
Comment 3 kozlov 2006-07-11 13:29:34 UTC
Verified in build060711.