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.
Netbeans completely hangs during xml file editing. It happened multiple times. There's no any response from the IDE at all afterwards. For instance open any build.xml file and try to edit it. I might be regarded to xml parsing. In my case it hanged several times. I had to give up and go back to 4.1.
Please attach the threaddump! Without this I can hardly fix it. (Press Ctrl-Break on windows or Ctrl-\ on linuxes). More info on how to get threaddumps is on: http://qa.netbeans.org/bugzilla/generating-thread-dumps.html
This is threaddump i could get. for me it looks editor waits forever and it's never woken up. in that case not editor is blocked only but whole IDE. Full thread dump Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode, sharing): "Text-Layout" prio=2 tid=0x0be40330 nid=0xca8 in Object.wait() [0x0c5ef000..0x0c 5efd68] at java.lang.Object.wait(Native Method) - waiting on <0x1cd50060> (a org.netbeans.editor.view.spi.ViewLayoutQueu e) at java.lang.Object.wait(Object.java:474) at org.netbeans.editor.view.spi.ViewLayoutQueue.waitForTask(ViewLayoutQu eue.java:128) - locked <0x1cd50060> (a org.netbeans.editor.view.spi.ViewLayoutQueue) at org.netbeans.editor.view.spi.ViewLayoutQueue$LayoutThread.run(ViewLay outQueue.java:182) "Timer-1" prio=6 tid=0x02f6c098 nid=0x3c8 in Object.wait() [0x0366f000..0x0366fa 68] at java.lang.Object.wait(Native Method) - waiting on <0x1f7ed118> (a java.util.TaskQueue) at java.lang.Object.wait(Object.java:474) at java.util.TimerThread.mainLoop(Timer.java:483) - locked <0x1f7ed118> (a java.util.TaskQueue) at java.util.TimerThread.run(Timer.java:462) "Inactive RequestProcessor thread [Was:JarFs - modification watcher/org.openide. filesystems.JarFileSystem$2]" daemon prio=2 tid=0x02ef2ae8 nid=0xe9c in Object.w ait() [0x0bdaf000..0x0bdafbe8] at java.lang.Object.wait(Native Method) - waiting on <0x1ed6c3a0> (a java.lang.Object) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java :857) - locked <0x1ed6c3a0> (a java.lang.Object) "MDR event dispatcher" daemon prio=2 tid=0x00ab2400 nid=0xfa8 in Object.wait() [ 0x03d0f000..0x03d0fce8] at java.lang.Object.wait(Native Method) - waiting on <0x1e2c3b50> (a java.util.LinkedList) at java.lang.Object.wait(Object.java:474) at org.netbeans.mdr.util.EventNotifier$EventsDelivery.run(EventNotifier. java:257) - locked <0x1e2c3b50> (a java.util.LinkedList) at java.lang.Thread.run(Thread.java:595) "Inactive RequestProcessor thread [Was:org.netbeans.modules.editor.structure.api .DocumentModel/org.netbeans.modules.editor.structure.api.DocumentModel$2]" daemo n prio=2 tid=0x0323b048 nid=0xa50 in Object.wait() [0x0385f000..0x0385fd68] at java.lang.Object.wait(Native Method) - waiting on <0x1e1ebe38> (a java.lang.Object) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java :857) - locked <0x1e1ebe38> (a java.lang.Object) "Inactive RequestProcessor thread [Was:Folder recognizer/org.openide.loaders.Fol derList$ListTask]" daemon prio=2 tid=0x032438b8 nid=0xebc in Object.wait() [0x03 81f000..0x0381f9e8] at java.lang.Object.wait(Native Method) - waiting on <0x1e1ebeb0> (a java.lang.Object) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java :857) - locked <0x1e1ebeb0> (a java.lang.Object) "DestroyJavaVM" prio=6 tid=0x00037768 nid=0xc04 waiting on condition [0x00000000 ..0x0007fae8] "AWT-EventQueue-1" prio=6 tid=0x0304c408 nid=0xb74 waiting for monitor entry [0x 037df000..0x037dfae8] at org.apache.tools.ant.module.xml.AntProjectSupport.getDocument(AntProj ectSupport.java:141) - waiting to lock <0x1f6e5c98> (a java.lang.Object) at org.apache.tools.ant.module.xml.AntProjectSupport.getProjectElement(A ntProjectSupport.java:316) at org.apache.tools.ant.module.loader.AntProjectDataEditor.annotateWithP rojectName(AntProjectDataEditor.java:83) at org.apache.tools.ant.module.loader.AntProjectDataEditor.messageHtmlNa me(AntProjectDataEditor.java:72) at org.openide.text.CloneableEditor$2.run(CloneableEditor.java:457) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) "TimerQueue" daemon prio=6 tid=0x03038a58 nid=0xdec in Object.wait() [0x036af000 ..0x036afb68] at java.lang.Object.wait(Native Method) - waiting on <0x1df49820> (a javax.swing.TimerQueue) at javax.swing.TimerQueue.run(TimerQueue.java:233) - locked <0x1df49820> (a javax.swing.TimerQueue) at java.lang.Thread.run(Thread.java:595) "Inactive RequestProcessor thread [Was:Folder recognizer/org.openide.loaders.Fol derList$ListTask]" daemon prio=2 tid=0x02f6c4e8 nid=0xec8 in Object.wait() [0x03 79f000..0x0379fbe8] at java.lang.Object.wait(Native Method) - waiting on <0x1df498a0> (a java.lang.Object) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java :857) - locked <0x1df498a0> (a java.lang.Object) "AntProjectSupport[MasterFileObject@b14efc[file:/C:/sorrent/ice2_j2me/build/comm on/build.xml]]" daemon prio=2 tid=0x03168780 nid=0x58c in Object.wait() [0x0375f 000..0x0375fc68] at java.lang.Object.wait(Native Method) - waiting on <0x1ca797d0> (a java.awt.EventQueue$1AWTInvocationLock) at java.lang.Object.wait(Object.java:474) at java.awt.EventQueue.invokeAndWait(EventQueue.java:846) - locked <0x1ca797d0> (a java.awt.EventQueue$1AWTInvocationLock) at org.openide.util.Mutex.doEventAccess(Mutex.java:1158) at org.openide.util.Mutex.readAccess(Mutex.java:227) at org.apache.tools.ant.module.xml.AntProjectSupport.createInputSource(A ntProjectSupport.java:225) at org.apache.tools.ant.module.xml.AntProjectSupport.parseDocument(AntPr ojectSupport.java:282) at org.apache.tools.ant.module.xml.AntProjectSupport.getDocument(AntProj ectSupport.java:144) - locked <0x1f6e5c98> (a java.lang.Object) at org.apache.tools.ant.module.xml.AntProjectSupport.getProjectElement(A ntProjectSupport.java:316) at org.apache.tools.ant.module.api.support.TargetLister$Script.<init>(Ta rgetLister.java:257) at org.apache.tools.ant.module.api.support.TargetLister.getTargets(Targe tLister.java:87) at org.apache.tools.ant.module.nodes.AntProjectChildren.refreshKeys(AntP rojectChildren.java:64) at org.apache.tools.ant.module.nodes.AntProjectChildren.stateChanged(Ant ProjectChildren.java:99) at org.apache.tools.ant.module.xml.AntProjectSupport$ChangeFirer.run(Ant ProjectSupport.java:396) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:471) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java :904) "Inactive RequestProcessor thread [Was:TimedSoftReference/org.openide.util.Timed SoftReference]" daemon prio=2 tid=0x00aafae0 nid=0x384 in Object.wait() [0x0370f 000..0x0370fd68] at java.lang.Object.wait(Native Method) - waiting on <0x1d9377b0> (a java.lang.Object) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java :857) - locked <0x1d9377b0> (a java.lang.Object) "Java2D Disposer" daemon prio=10 tid=0x00acc1b8 nid=0xee4 in Object.wait() [0x03 5af000..0x035afae8] at java.lang.Object.wait(Native Method) - waiting on <0x1d4b72f0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked <0x1d4b72f0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at sun.java2d.Disposer.run(Disposer.java:107) at java.lang.Thread.run(Thread.java:595) "AWT-Windows" daemon prio=6 tid=0x02ecf4d8 nid=0xbb4 runnable [0x034ff000..0x034 ffb68] at sun.awt.windows.WToolkit.eventLoop(Native Method) at sun.awt.windows.WToolkit.run(WToolkit.java:269) at java.lang.Thread.run(Thread.java:595) "AWT-Shutdown" prio=6 tid=0x02d16038 nid=0x72c in Object.wait() [0x034bf000..0x0 34bfbe8] at java.lang.Object.wait(Native Method) - waiting on <0x1d4b73d8> (a java.lang.Object) at java.lang.Object.wait(Object.java:474) at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259) - locked <0x1d4b73d8> (a java.lang.Object) at java.lang.Thread.run(Thread.java:595) "Active Reference Queue Daemon" daemon prio=2 tid=0x02d04d80 nid=0xd94 in Object .wait() [0x0344f000..0x0344fc68] at java.lang.Object.wait(Native Method) - waiting on <0x1d4b7460> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked <0x1d4b7460> (a java.lang.ref.ReferenceQueue$Lock) at org.openide.util.Utilities$ActiveQueue.run(Utilities.java:2968) at java.lang.Thread.run(Thread.java:595) "Timer-0" daemon prio=6 tid=0x02d00400 nid=0xd28 in Object.wait() [0x0340f000..0 x0340fce8] at java.lang.Object.wait(Native Method) - waiting on <0x1d45bb78> (a java.util.TaskQueue) at java.util.TimerThread.mainLoop(Timer.java:509) - locked <0x1d45bb78> (a java.util.TaskQueue) at java.util.TimerThread.run(Timer.java:462) "CLI Requests Server" daemon prio=6 tid=0x02d17648 nid=0xcdc runnable [0x0338f00 0..0x0338f9e8] at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) - locked <0x1d45bd10> (a java.net.SocksSocketImpl) at java.net.ServerSocket.implAccept(ServerSocket.java:450) at java.net.ServerSocket.accept(ServerSocket.java:421) at org.netbeans.CLIHandler$Server.run(CLIHandler.java:832) "Low Memory Detector" daemon prio=6 tid=0x00a6fd68 nid=0xf58 runnable [0x0000000 0..0x00000000] "CompilerThread0" daemon prio=10 tid=0x00035870 nid=0xba8 waiting on condition [ 0x00000000..0x02c4f84c] "Signal Dispatcher" daemon prio=10 tid=0x00a6ddb0 nid=0xe70 waiting on condition [0x00000000..0x00000000] "Finalizer" daemon prio=8 tid=0x00a39e28 nid=0xcac in Object.wait() [0x02bcf000. .0x02bcfc68] at java.lang.Object.wait(Native Method) - waiting on <0x1d45bfb0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked <0x1d45bfb0> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) "Reference Handler" daemon prio=10 tid=0x00a48a00 nid=0xbe8 in Object.wait() [0x 02b8f000..0x02b8fce8] at java.lang.Object.wait(Native Method) - waiting on <0x1d45bb08> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:474) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked <0x1d45bb08> (a java.lang.ref.Reference$Lock) "VM Thread" prio=10 tid=0x0003f0f0 nid=0xc00 runnable "VM Periodic Task Thread" prio=10 tid=0x00a710e8 nid=0xa04 waiting on condition
Looks like ant project support problem.
The Issue #70169 is very likely about the same problem. User got a deadlock when he edited a buildfile.
*** Issue 70169 has been marked as a duplicate of this issue. ***
Don't edit Ant scripts in 5.0 beta 2. *** This issue has been marked as a duplicate of 68650 ***
verified duplicate