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.
On Mac OSX (Leopard) performing a shutdown of the operating system while Netbeans is running will produce the error message "The application Netbeans cancelled the shutdown" (even if there are no unsaved documents or processes running in Netbeans). However, Netbeans will indeed shutdown as expected (so doing an OS shutdown a second time will work).
Reassinging to Platform
Issue happens on Snow Leopard (Mac OS X 10.6) as well
Can you please verify if other Java applications don't manifest this problem? I don't have a way to try now, but my guess is it is a general Java issue.
I don't have any other Java applications here to test it with, I'm afraid, but it seems less likely to me. As far as I know Mac OS X sends around a message when it intends to shutdown to each application in turn and that message needs to be answered by the application. It looks like Netbeans incorrectly answers the message causing the shutdown process to abort, or perhaps Netbeans shuts itself down before answering the message.
Please try with the SwingSet2 demo which is bundled with JDK. You should find it as a JAR at /Developer/Extras/Java/JFC/SwingSet2/
Ok, I tried it. OS X shuts down just fine whilst running swingset2.jar
This bug is still happening for Netbeans 7.1.2 and Mac OS X Lion and Mountain Lion. I haven't tried with Netbeans 7.2. Can't this be fixed?
Happens infrequently for me. Rig is:- OS X 10.8.2 Netbeans 7.2 Java system JRE is 1.6.0_32 JDK(s) are 1.6.0_32-b05-420 (Default) and jdk1.7.0_06. This doesn't just happen on shutdown but also on quit (cmd Q), so you have to force a quit.
@timmaher Actually, I'm not seeing a problem on a regular quit, only on a shutdown, so perhaps your problem is unrelated to this bug.