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 222566 - AssertionError at org.netbeans.modules.xml.schema.model.SchemaModelFactory.getModel
Summary: AssertionError at org.netbeans.modules.xml.schema.model.SchemaModelFactory.ge...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Spring (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-21 21:02 UTC by javydreamercsw
Modified: 2012-12-13 02:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 195527


Attachments
stacktrace (2.01 KB, text/plain)
2012-11-21 21:02 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2012-11-21 21:02:18 UTC
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)
Comment 1 javydreamercsw 2012-11-21 21:02:20 UTC
Created attachment 128230 [details]
stacktrace
Comment 2 Svata Dedic 2012-12-10 15:45:02 UTC
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
Comment 3 Martin Fousek 2012-12-11 09:43:44 UTC
Thanks Svato for the evaluation.
Fixed in web-main #c9d3d930a554.
Comment 4 Quality Engineering 2012-12-13 02:40:28 UTC
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