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

Summary: Netbeans doesn't close a JVM if it has a thread running. Affects our Hazelcast and RabbitMQ development
Product: platform Reporter: pnewman
Component: -- Other --Assignee: Antonin Nebuzelsky <anebuzelsky>
Status: RESOLVED INCOMPLETE    
Severity: normal    
Priority: P1    
Version: 8.0.1   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

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.