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 79759 - Exception every time user is editing XML and it becomes invalid during editing
Summary: Exception every time user is editing XML and it becomes invalid during editing
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: XDM (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: bhate
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-05 12:30 UTC by Mikhail Kondratyev
Modified: 2006-08-29 10:21 UTC (History)
0 users

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 Mikhail Kondratyev 2006-07-05 12:30:17 UTC
Steps to reproduce:
 - create a new wsdl file
 - start typing something like <dfgdfg name="
 - Exception will be thrown:
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)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaSourceMultiViewElement.selectElementsAtOffset(SchemaSourceMultiViewElement.java:350)
	at
org.netbeans.modules.xml.schema.core.multiview.SchemaSourceMultiViewElement$3.actionPerformed(SchemaSourceMultiViewElement.java:152)
	at javax.swing.Timer.fireActionPerformed(Timer.java:271)
[catch] at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 bhate 2006-07-10 18:25:27 UTC
we are now checking state of model to be valid
Comment 2 Mikhail Kondratyev 2006-08-29 10:21:27 UTC
Verified with build from 06.08.25