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 248435 - Netbeans doesn't close a JVM if it has a thread running. Affects our Hazelcast and RabbitMQ development
Summary: Netbeans doesn't close a JVM if it has a thread running. Affects our Hazelcas...
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0.1
Hardware: Macintosh Mac OS X
: P1 normal with 1 vote (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-05 18:22 UTC by pnewman
Modified: 2014-11-10 09:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (54.35 KB, text/plain)
2014-11-05 18:22 UTC, pnewman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pnewman 2014-11-05 18:22:44 UTC
Product Version = NetBeans IDE 8.0.1 (Build 201408251540)
Operating System = Mac OS X version 10.10 running on x86_64
Java; VM; Vendor = 1.8.0_11
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.11-b03

Any project that has secondary threads running isnt stopped by netbeans 8.01. This is proving to be a show stopper for our development with Hazelcast and RabbitMQ. I put the following code into the main method to check if it is being executed on close.

Runtime.getRuntime().addShutdownHook(new Thread() {
                 @Override
                 public void run() {
                	 System.out.println("shutdown here !");
                   
                 }
                });

Nothing gets called when stopping from netbeans, but using kill process id  works. Both Eclipse and InteeliJ work. I'd rather keep using netbeans however, but we realy need some help quickly.

THanks
Paul Newman
Comment 1 pnewman 2014-11-05 18:22:47 UTC
Created attachment 150303 [details]
IDE log
Comment 2 Jaroslav Tulach 2014-11-10 09:11:04 UTC
Your inquiry to platform - do you develop an application on top of NetBeans platform? If so, provide a sample module that demonstrates your problem and reopen the issue.

If you inquiry is about developing your own code with NetBeans IDE, state so, provide sample project to demonstrate your problem and change "product" to "projects" when reopening the issue.