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.
Summary: | IllegalStateException: The model is not initialized or is broken. | ||
---|---|---|---|
Product: | xml | Reporter: | Jaromir Uhrik <juhrik> |
Component: | XDM | Assignee: | _ alexpetrov <alexpetrov> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | anebuzelsky, ehsavoie, mcamou, mkleint, mmirilovic, neilg, ravindranathakila, sgtgarcia, sirkkalap, smsmithee, supernikita, tboudreau, yardus |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=145664 | ||
Issue Type: | DEFECT | Exception Reporter: | 145664 |
Bug Depends on: | 190041 | ||
Bug Blocks: | |||
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace |
Description
Jaromir Uhrik
2009-01-29 10:38:13 UTC
Created attachment 76333 [details]
stacktrace
This issue has already 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145664 Build: NetBeans IDE Dev (Build 200902231810) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Linux, 2.6.27-13-generic, i386 User Comments: Editing Maven pom.xml file Stacktrace: java.lang.IllegalStateException: The model is not initialized or is broken. at org.netbeans.modules.xml.xdm.XDMModel.checkStableOrParsingState(XDMModel.java:987) at org.netbeans.modules.xml.xdm.XDMModel.getDocument(XDMModel.java:829) at org.netbeans.modules.xml.xdm.nodes.NodeImpl.getNamespaceURI(NodeImpl.java:601) at org.netbeans.modules.maven.model.pom.impl.POMComponentFactoryImpl.getQName(POMComponentFactoryImpl.java:63) at org.netbeans.modules.maven.model.pom.impl.POMComponentFactoryImpl.create(POMComponentFactoryImpl.java:81) at org.netbeans.modules.maven.model.pom.impl.POMComponentFactoryImpl.create(POMComponentFactoryImpl.java:51) Created attachment 78200 [details]
stacktrace
Build: NetBeans IDE Dev (Build 200902231810) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Linux, 2.6.27-13-generic, i386 User Comments: Editing Maven pom.xml with errors in it (file is not valid) Stacktrace: java.lang.IllegalStateException: The model is not initialized or is broken. at org.netbeans.modules.xml.xdm.XDMModel.checkStableOrParsingState(XDMModel.java:987) at org.netbeans.modules.xml.xdm.XDMModel.getDocument(XDMModel.java:829) at org.netbeans.modules.xml.xdm.nodes.NodeImpl.getNamespaceURI(NodeImpl.java:601) at org.netbeans.modules.maven.model.pom.impl.POMComponentFactoryImpl.getQName(POMComponentFactoryImpl.java:63) at org.netbeans.modules.maven.model.pom.impl.POMComponentFactoryImpl.create(POMComponentFactoryImpl.java:81) at org.netbeans.modules.maven.model.pom.impl.POMComponentFactoryImpl.create(POMComponentFactoryImpl.java:51) Created attachment 78201 [details]
stacktrace
I'm not able to reproduce this bug on NB release: Product Version: NetBeans IDE Dev (Build 200907140201) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02 System: Windows XP version 5.1 running on x86 Editing of an invalid Maven pom.xml doesn't cause any exception now. Verified in: Product Version: NetBeans IDE Dev (Build 200908110201) Java: 1.5.0_19; Java HotSpot(TM) Client VM 1.5.0_19-137 System: Mac OS X version 10.5.8 running on i386; MacRoman; en_US (nb) Build: NetBeans IDE 6.8 Beta (Build 200910212001) VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01 OS: Linux, 2.6.28-15-generic, amd64 User Comments: Stacktrace: java.lang.IllegalStateException: The model is not initialized or is broken. at org.netbeans.modules.xml.xdm.XDMModel.checkStableOrParsingState(XDMModel.java:987) at org.netbeans.modules.xml.xdm.XDMModel.getDocument(XDMModel.java:829) at org.netbeans.modules.xml.xdm.nodes.NodeImpl.getNamespaceURI(NodeImpl.java:601) at org.netbeans.modules.maven.model.pom.impl.POMComponentFactoryImpl.getQName(POMComponentFactoryImpl.java:63) at org.netbeans.modules.maven.model.pom.impl.POMComponentFactoryImpl.create(POMComponentFactoryImpl.java:81) at org.netbeans.modules.maven.model.pom.impl.POMComponentFactoryImpl.create(POMComponentFactoryImpl.java:51) Created attachment 89998 [details]
stacktrace
Re-opening as I got this exception in 6.8 beta when editing an invalid pom. It is an intermittent error. Please provide more exact steps to CONSTANTLY reproduce the problem. It is an intermittent problem so I'm not sure I can consistently reproduce it. Using mercurial to revert an invalid pom file seems to have a reasonably high chance of triggering it in 200910260201. Build: NetBeans IDE Dev (Build 200910170201) VM: Java HotSpot(TM) Client VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08 OS: Windows Vista, 6.0, x86 User Comments: Expanded a layer.xml file inside an NBM in the files tab Stacktrace: java.lang.AssertionError: AbstractFileObject@144ef7b[org/netbeans/modules/javacard/ri/platform/layer.xml] at org.netbeans.modules.apisupport.project.layers.LayerNode$LayerChildren$1.run(LayerNode.java:148) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084) Created attachment 90367 [details]
stacktrace
This bug already has 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145664 I think the root cause of the problem is incorrect work of maven with XAM/XDM. sergey, can you be more specific what the incorrect use is? and what the message actually means? is xam/xdm supposed to work on broken xml? how broken? how to figure up front the xml is broken and won't work? Milos, I don't have answers to your questions now. Hope to provide you some information soon. The following fact is not quite clear to me : the original bug is related to IllegalStateException, but Comment #14 From _tboudreau 2009-11-01 00:34:47 says about java.lang.AssertionError. In my opinion these exceptions/errors are different. Why AssertionError was added to this issue? Created attachment 91976 [details]
stacktrace
we are going to fix it in NB 6.8 > we are going to fix it in NB 6.8
Actually after an offline discussion of the issue, we agreed that this will be fixed only to trunk now and we will be watching for any regressions the fix might introduce. For 6.8 it is too risky and given the 50 duplicate reports were accumulated over long period of time, this is not considered a 6.8 stopper.
Integrated into 'main-golden', will be available in build *200912030200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/3dfb067533e2 User: Alex Petrov <alexpetrov@netbeans.org> Log: Fix for issue [#157599]. IllegalStateException: The model is not initialized or is broken. Fixed in trunk |