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.
This bug was originally marked as duplicate of bug 180924, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 7.0.1 (Build 201107282000) VM: Java HotSpot(TM) Client VM, 20.1-b02, Java(TM) SE Runtime Environment, 1.6.0_26-b03 OS: Linux User Comments: helderneres: Restart after abrupt shutdown. GUEST: Just opened the IDE mcseemz: openeed application nleck: opening IDE Stacktrace: java.lang.InternalError: processing event: -1 at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:507) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
Created attachment 110165 [details] stacktrace
Product Version: NetBeans IDE 7.1 Beta (Build 201109252201) Java: 1.6.0_29; Java HotSpot(TM) 64-Bit Server VM 20.4-b02-402 System: Mac OS X version 10.6.8 running on x86_64; MacRoman; en_US (nb)
Created attachment 114569 [details] stacktrace thrown during start up (opening link to the NetBeans web site on the top of the Start Page)
Created attachment 116802 [details] stacktrace On restart after cmoputer powered off.
Created attachment 117027 [details] stacktrace
Created attachment 117091 [details] stacktrace Opening a project (with Quick File Chooser)
Created attachment 117102 [details] stacktrace Open a project group
I've reproduced this with the XML file attached in the messages.log file.
I have finally identified the problem on line 3219: <sequence><record> This part of the XML is broken in http://statistics.netbeans.org/exceptions/messageslog?id=568136: <record> <date>2012-03-22T12:44:29</date> <millis>1332416669429</millis> <sequence><record> <date>2012-03-22T12:50:13</date> <millis>1332417013861</millis> <sequence>31</sequence> <logger>org.netbeans.ui.metrics</logger> <level>INFO</level> <thread>12</thread> <message>USG_SYSTEM_CONFIG</message> <param>Linux, 3.0.0-16-generic-pae, i386</param> <param>Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b04</param> <param>NetBeans IDE Dev (Build 201203210400)</param> <param>201203210400</param> <param>${buildday}</param> <param></param> <param>trunk</param> <param></param> <param>fab8d7e9e22b</param> </record> Similar broken segment is at line 8245 of the XML in http://statistics.netbeans.org/exceptions/messageslog?id=568098: <exception> <message>java.io.IOException: No space left on device</message> <frame> <class>java.io.Fi<record> <date>2012-03-22T12:45:06</date> <millis>1332416706654</millis> <sequence>2970</sequence> <logger></logger> <level>SEVERE</level> <thread>42</thread> <message>java.io.IOException: No space left on device</message> <exception> ... A part of the record is gone and next record continues after an unfinished element. This creates a broken XML file. As the second log file suggests, this can happen when no more space is left on the device.
Integrated into 'main-golden', will be available in build *201204040400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c4694d883176 User: mentlicher@netbeans.org Log: #201257: Remember and report the fatal parsing errors. This improves the ability to diagnose parsing failures.
Consistent output should prevent from this issue in the future: changeset: 217787:a4804ab38877 http://hg.netbeans.org/main/rev/a4804ab38877
Integrated into 'main-golden', will be available in build *201204050400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a4804ab38877 User: mentlicher@netbeans.org Log: #201257: DataConsistentFileOutputStream introduced to assure consistency of data written to the XML file. Also, when appendFile() fails, just undo the append.
*** Bug 213412 has been marked as a duplicate of this bug. ***
*** Bug 214708 has been marked as a duplicate of this bug. ***