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.

Bug 168718 - Netbeans does not shut down properly on Mac OS X
Summary: Netbeans does not shut down properly on Mac OS X
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 7.2
Hardware: Macintosh All
: P4 blocker with 2 votes (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-16 23:03 UTC by fjan11
Modified: 2014-02-10 14:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fjan11 2009-07-16 23:03:16 UTC
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).
Comment 1 Andrei Chistiakov 2009-07-17 11:08:15 UTC
Reassinging to Platform
Comment 2 fjan11 2010-01-15 12:45:07 UTC
Issue happens on Snow Leopard (Mac OS X 10.6) as well
Comment 3 Antonin Nebuzelsky 2010-09-30 12:44:45 UTC
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.
Comment 4 fjan11 2010-09-30 13:48:29 UTC
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.
Comment 5 Antonin Nebuzelsky 2010-09-30 14:06:07 UTC
Please try with the SwingSet2 demo which is bundled with JDK.

You should find it as a JAR at /Developer/Extras/Java/JFC/SwingSet2/
Comment 6 fjan11 2010-09-30 14:30:07 UTC
Ok, I tried it. OS X shuts down just fine whilst running swingset2.jar
Comment 7 cardozo.damian 2012-08-24 13:18:42 UTC
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?
Comment 8 timmaher 2012-11-19 15:43:33 UTC
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.
Comment 9 fjan 2012-11-19 15:49:33 UTC
@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.