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 159179, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201506190001) VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b15 OS: Windows 7 User Comments: MackSix: Tried to open /WEB-INF/beans.xml in a web project. Stacktrace: java.lang.AssertionError at org.netbeans.modules.editor.structure.api.DocumentModel$DocumentModelModificationTransaction.addDocumentElement(DocumentModel.java:875) at org.netbeans.modules.editor.structure.api.DocumentModel.addRootElement(DocumentModel.java:576) at org.netbeans.modules.editor.structure.api.DocumentModel.<init>(DocumentModel.java:196) at org.netbeans.modules.editor.structure.api.DocumentModel.getDocumentModel(DocumentModel.java:241) at org.netbeans.modules.xml.text.breadcrumbs.EditorRegistryMonitor.findTextModel(EditorRegistryMonitor.java:105) at org.netbeans.modules.xml.text.breadcrumbs.EditorRegistryMonitor.componentActivated(EditorRegistryMonitor.java:130)
Created attachment 154317 [details] stacktrace
The beans.xml file is empty.
Created attachment 154323 [details] stacktrace Happened during opening a XML document
Created attachment 154610 [details] stacktrace Happened during opening persistence.xml
Created attachment 155182 [details] stacktrace Trying to reproduce Report #218082. I closed all projects and restarted IDE, then chosed File -> New Project -> PHP -> PHP Application. Then I clicked on Project's Source Files and selected New -> Empty File... -> test.xml. I opened test.xml, removed all characters (more precisely: I removed a solitary newline character) and saved. Now this exception is thrown when I navigate into opened test.xml.
Created attachment 155225 [details] stacktrace Just created Sample Payroll Application using Batch from the JavaEE samples
Created attachment 156168 [details] stacktrace Opening blank pom.xml
Created attachment 156645 [details] stacktrace Opened empty beans.xml
Created attachment 157131 [details] stacktrace Double clicking on beans.xml
Created attachment 157132 [details] stacktrace .
Created attachment 157133 [details] stacktrace .
Created attachment 158639 [details] stacktrace 1. Create an empty file: $ touch test.svg 2. Use --open command line option: $ /home/pflaska/dev/netbeans/bin/netbeans --open test.svg Result: repeating AssertionError occured. Workaround: update the file from command line, then I am able to close the dialog.
Created attachment 164152 [details] stacktrace Opened empty fxml.
Created attachment 164993 [details] Stacktrace for empty xml file. I have the same problem when I have an empty test.xml file. I don't have any problems with my my NetBeans IDE 8.2 Patch 2 stable version, but it happens in the latest nightly. When I don't have open any projects and I open this file, I got the exception. It happens too when I have a lot of projects open.
Atm I tried to reproduce it but w/o luck in my production enviroment.
I got the exception when the XML file is really empty. 0 Bytes. And with help from benno, I have to set -J-ea in my conf for the stable version too, to see whether it happens there too and yes it happens there too.