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.
Build: NetBeans IDE Dev (Build nbms-and-javadoc-9597-on-20121114) VM: Java HotSpot(TM) Client VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-ea-b16 OS: Windows 7 User Comments: javydreamercsw: Not sure what triggered this. Stacktrace: java.lang.AssertionError at org.netbeans.modules.xml.schema.model.SchemaModelFactory.getModel(SchemaModelFactory.java:123) at org.netbeans.modules.spring.beans.index.SpringBinaryIndexer.processXsds(SpringBinaryIndexer.java:114) at org.netbeans.modules.spring.beans.index.SpringBinaryIndexer.index(SpringBinaryIndexer.java:104) at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor.index(Indexable.java:263) at org.netbeans.modules.parsing.impl.indexing.ProxyBinaryIndexerFactory$Indexer.index(ProxyBinaryIndexerFactory.java:251) at org.netbeans.modules.parsing.spi.indexing.Indexable$MyAccessor$1.run(Indexable.java:148)
Created attachment 128230 [details] stacktrace
the document obtained at Utilities:647 must be null, so assuming assertions are not (SMF:123), the DataObject must be invalid (Utilities:527). Such a ModelSource cannot be really used, because either ReadOnlyAccess:390 will throw NPE or XDMModel:167 will throw IOE. While not documented in Utilities.createModelSource, I'd suggest that the Spring indexer makes a lookup for Document.class and does not use the model if the Document instance is not present
Thanks Svato for the evaluation. Fixed in web-main #c9d3d930a554.
Integrated into 'main-golden', will be available in build *201212130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c9d3d930a554 User: Martin Fousek <marfous@netbeans.org> Log: #222566 - AssertionError at org.netbeans.modules.xml.schema.model.SchemaModelFactory.getModel