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 85450 - Cannot stop JBoss server from IDE
Summary: Cannot stop JBoss server from IDE
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-21 15:17 UTC by Jiri Skrivanek
Modified: 2006-09-27 10:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump. (23.88 KB, text/plain)
2006-09-21 15:17 UTC, Jiri Skrivanek
Details
Logs from JBoss and IDE. (66.98 KB, application/octet-stream)
2006-09-22 12:34 UTC, Jiri Skrivanek
Details
patch (3.86 KB, patch)
2006-09-22 16:23 UTC, Sherold Dev
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2006-09-21 15:17:01 UTC
I can't stop JBoss server from IDE. It is stuck forever. To reproduce:

- add jboss-4.0.4.GA server instance to Runtime view
- start server using context menu and wait until it is up
- stop server using context menu. Progress bar starts to run but JBoss console
doesn't change. It stays in that state (see attached thread dump) until it time
outs. If I shutdown server from command line, it works well.

Build 20060919-0644, JDK1.6.0-b99, WindowsXP, jboss-4.0.4.GA.
Comment 1 Jiri Skrivanek 2006-09-21 15:17:42 UTC
Created attachment 34309 [details]
Thread dump.
Comment 2 Jiri Skrivanek 2006-09-21 15:57:31 UTC
I can reproduce it with JDK1.5.0_07 and build 200607010200.
Comment 3 Petr Jiricka 2006-09-21 18:04:13 UTC
Is this a regression, or did this never work?
Comment 4 Sherold Dev 2006-09-21 18:13:18 UTC
I cannot reproduce it on my machine.
Comment 5 Jiri Skrivanek 2006-09-22 08:59:29 UTC
I can everytime. Cannot be cause find out from thread dump?
Comment 6 Petr Jiricka 2006-09-22 11:26:13 UTC
I can not reproduce on my machine (JDK 1.5.0_06, Win XP, jboss-4.0.4.GA). Jirko,
can you please attach the JBoss console output and the JBoss log file (under
server/default/log)? Thanks.

Comment 7 Petr Jiricka 2006-09-22 11:42:15 UTC
Jirko, can you please also try with NetBeans 5.0, so we know if this is a
regression? Thanks.
Comment 8 Jiri Skrivanek 2006-09-22 12:33:35 UTC
I can reproduce it even with NB5.0. It is strange because I think it used to
work on my computer before.
Comment 9 Jiri Skrivanek 2006-09-22 12:34:45 UTC
Created attachment 34366 [details]
Logs from JBoss and IDE.
Comment 10 Sherold Dev 2006-09-22 16:21:32 UTC
Fixed in the release55_dev branch.

Checking in src/org/netbeans/modules/j2ee/jboss4/ide/JBStopRunnable.java;
/cvs/serverplugins/jboss4/src/org/netbeans/modules/j2ee/jboss4/ide/Attic/JBStopRunnable.java,v
 <--  JBStopRunnable.java
new revision: 1.1.2.6.6.1; previous revision: 1.1.2.6
done
Comment 11 Sherold Dev 2006-09-22 16:23:27 UTC
Created attachment 34386 [details]
patch
Comment 12 Sherold Dev 2006-09-22 16:25:55 UTC
The problem was that the JAVA_HOME environment property was not set.
Comment 13 Andrei Badea 2006-09-25 16:59:23 UTC
The fix seems fine to me.
Comment 14 Jiri Skrivanek 2006-09-26 14:13:41 UTC
Verified in NetBeans 5.5 Dev 20060925-0755.
Comment 15 Sherold Dev 2006-09-26 17:09:37 UTC
Fix merged to the release55 branch.

Checking in src/org/netbeans/modules/j2ee/jboss4/ide/JBStopRunnable.java;
/cvs/serverplugins/jboss4/src/org/netbeans/modules/j2ee/jboss4/ide/Attic/JBStopRunnable.java,v
 <--  JBStopRunnable.java
new revision: 1.1.2.7; previous revision: 1.1.2.6
done
Comment 16 Jiri Skrivanek 2006-09-27 10:06:36 UTC
Verified in build 20060927-0520.