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 64330 - Cannot stop JBoss server
Summary: Cannot stop JBoss server
Status: VERIFIED INCOMPLETE
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 5.x
Hardware: PC Windows 7 x64
: P1 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-14 11:59 UTC by Jiri Skrivanek
Modified: 2016-05-16 08:59 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JBoss Server Log (806.22 KB, text/plain)
2006-08-08 13:06 UTC, msmith
Details
Netbeans messages.log (332.58 KB, text/plain)
2006-08-08 13:07 UTC, msmith
Details
Server Console Output (20.27 KB, text/plain)
2006-08-08 13:08 UTC, msmith
Details
NB Thread Dump During Stop (10.70 KB, text/plain)
2006-08-09 07:34 UTC, msmith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2005-09-14 11:59:16 UTC
JBoss 4.0.3RC2 can't be stopped from IDE. To reproduce:

- unzip jboss-4.0.3RC2.zip into D:\
- add 'set JAVA_HOME=E:\jdk1.5.0_04' to E:\Program Files\bin\run.bat, shutdown.bat
- start IDE
- add JBoss server in Runtime tab
- start JBoss server using popup menu Start on server node and wait until it is
running.
- try to stop JBoss server using Stop popup menu. Nothing happens in output
window and it timeouts with the message:

"Stop server JBoss Application Server 4.0 timeout or interrupted"

Build 200509131800, JDK1.5.0_04, WindowsXP, JBoss4.0.3RC2.
Comment 1 Pavel Buzek 2005-09-14 16:31:31 UTC
I will take a look at this.
Comment 2 Pavel Buzek 2005-09-14 19:06:00 UTC
Works for me. XP, 1.5.0_04, jb-4.0.3RC2, space in install path and start/stop
works just fine, either called from popup menu or from the icons in output tab.

Can you reproduce this often or 100% or just once? After you got this error did
you try to stop the server again, and what happened?
Comment 3 Jiri Skrivanek 2005-09-20 16:57:52 UTC
Probably fixed with issue 64456.
Comment 4 kbrownlow 2005-12-08 22:48:08 UTC
Nope, it's still and issue for jboss 4.0.3sp1.  Tried to stop jboss from either
runtime 'Jboss Application Server 4.0.3' icon or from Output Window 'Jboss
Application Server 4.0.3' 'X' icon and still spins forever - no shutdown message
in log.  Basically have to exit NetBeans and kill any java.exe processes hanging
around. Nasty as I have to re-start for each change.
Comment 5 Pavel Buzek 2005-12-08 23:04:01 UTC
Is it 100% reproducible? Which build of NetBeans do you have?
Comment 6 msmith 2006-08-05 09:06:43 UTC
I'm currently seeing the same or a similar issue but only on Windows. Because I
can't reproduce it on Linux with the same versions I assume its an environment
or Windows related problem rather than a Netbeans bug.

Versions: 

Java 1.5.0_07. 
JBoss 4.0.4GA-Patch1 (ejb3-clustered config) 
NetBeans 5.5 beta 2

I'm not sure whether it's worth reopening this, I'll leave it up to you. It
seems 100% reproducible on my Windows machine. Let me know if you want any logs etc.

Martin
Comment 7 Libor Kotouc 2006-08-07 09:57:14 UTC
Please provide the steps leading to the error and attach the server log,
messages log and the Output console content.
Comment 8 Jiri Skrivanek 2006-08-07 10:15:19 UTC
Recently I have filed issue 81951. Please, look at it whether it is the same. If
not, please write your steps to reproduce the failure as lkotouc requested.
Comment 9 msmith 2006-08-08 13:04:29 UTC
I've looked and I don't think what I'm seeing is the same as 81951.

Steps to reproduce (versions listed in my previous post):

1. Install + Register JBoss 4.0.4GA-patch1 if necessary (I have it installed in
c:\java\jboss-4.0.4.GA)

2. Start JBoss from Runtime menu

3. Stop JBoss from Runtime menu or server log window or exit NetBeans

The "Stopping JBoss" progress bar appears and nothing else seems to happen. The
JBoss JVM does not exit, the server log does not contain shutdown messages.
Eventually the progress bar disappears and the server is still running.

I'll attach the log files in a few minutes.
Comment 10 msmith 2006-08-08 13:06:32 UTC
Created attachment 32640 [details]
JBoss Server Log
Comment 11 msmith 2006-08-08 13:07:43 UTC
Created attachment 32641 [details]
Netbeans messages.log
Comment 12 msmith 2006-08-08 13:08:21 UTC
Created attachment 32642 [details]
Server Console Output
Comment 13 Libor Kotouc 2006-08-08 17:23:25 UTC
I believe that this issue is really duplicate of the issue 81951. Thread dump
could clarify it.
Please run IDE with -J-Dnetbeans.serverplugins.jboss4.logging parameter and
paste the lines from the messages log which are printed while trying to run and
stop the server. Please do the thread dump during unsuccessfull stopping and
attach it also. Thank you.

Comment 14 msmith 2006-08-09 07:33:05 UTC
I just see a lot of lines like this in messages.log:

Failed to initalize plugin: org.jboss.logging.Log4jLoggerPlugin@838fd6
Failed to initalize plugin: org.jboss.logging.Log4jLoggerPlugin@1e39ebf
Failed to initalize plugin: org.jboss.logging.Log4jLoggerPlugin@f74fc5
Failed to initalize plugin: org.jboss.logging.Log4jLoggerPlugin@b6a52e
.....

I'll attach a thread dump in a minute.
Comment 15 msmith 2006-08-09 07:34:10 UTC
Created attachment 32680 [details]
NB Thread Dump During Stop
Comment 16 Libor Kotouc 2006-08-09 07:42:56 UTC
Sorry, the messages are written into the standard output - just run the IDE from
the command line using nb.exe command and messages should appear in the console
Comment 17 msmith 2006-08-09 09:07:20 UTC
Just tried that. This is all I saw in the output:

************START thread 58
STARTING message fired
STARTED message fired
Startup thread NOTIFIED
Comment 18 Libor Kotouc 2006-08-09 09:52:00 UTC
Thanks for your help, it is really duplicate of the issue 81591.

I am just going to commit the fix, just checkout the serverplugins/jboss4 module
or wait for the daily build which should be ready following morning CET.
Comment 19 msmith 2006-08-10 07:49:12 UTC
I just tried the daily build for 20060810 and JBoss is still not stopping.
Should the fix be in there or do I need to wait a bit longer?
Comment 20 javatlacati 2015-11-07 01:07:31 UTC
On netbeans 8.0.2 the jboss is started but never shows enabled the stop option.
I'm on Windows 7 64 bits and I'm running it with jdk 6.0. My NB JDK is 1.8.0
Comment 21 alcatwize 2016-02-18 15:12:43 UTC
(In reply to javatlacati from comment #20)
> On netbeans 8.0.2 the jboss is started but never shows enabled the stop
> option.
> I'm on Windows 7 64 bits and I'm running it with jdk 6.0. My NB JDK is 1.8.0

I see the same issue.  I am on Windows 7, Netbeans 8.1 with Jboss 1.7.   Basically it can start the server, but it can't stop the server.   If I click on the "stop" button, it hangs forever.  To stop the server, I open up a command prompt window and issue the following command... 

jboss-cli.sh --connect command=:shutdown

After that, Netbeans recognizes that Jboss is shut down.
Comment 22 Petr Hejl 2016-05-13 08:49:09 UTC
What JDK is NB and JBoss running on? Can you try with the dev build of NetBeans? Is there any firewall in place? Please provide IDE log and thread dump if it is reproducible. Works fine for me.

Also note JBoss 7 is not supported anymore by RedHat and it does not work with JDK8.