Bugs item #824105, was opened at 2003-10-15 15:21
Message generated for change (Comment added) made by koecke
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=824105&group_id=22866

Category: JBoss-IDE
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Bernd Köcke (koecke)
Assigned to: Laurent Etiemble (letiemble)
Summary: JBoss-IDE shuts down foreign server on the same net

Initial Comment:
I'm using Eclipse 2.1.1 with Sun-JDK 1.4.2 JBoss-IDE
1.2.1 on Linux with JBoss 3.2.2RC4

When I use "-s localhost:1199 -S" as program arguments
for shutdown in eclipse, JBoss on another machine in
the same subnet is shutting down. JBoss on my machine
listens on port 1099. And JBoss on the other machine
too. I recognized this while I was playing around with
the binding manager. 

It seems that if nobody answers on localhost, JBoss-IDE
tries to connect on the network on the default port. I
checked it with jnp://localhost:1199, my own machine
name instead of localhost and I checked port numbers
1199, 1299, 9090 and 1099 when my machine listens on
port 1199, nothing changes. It happens only, when I use
a URL on which nobody listens on my server.

There are no error messages or exceptions.

----------------------------------------------------------------------

>Comment By: Bernd Köcke (koecke)
Date: 2003-10-15 17:07

Message:
Logged In: YES 
user_id=803141

Yes, it happens on command line, too.

Sorry should have checked that prior to call it an IDE bug :(.

But now I get the following stack trace:

bin/shutdown.sh -s localhost:9090 -S

17:03:42,571 WARN  [NamingContext] Failed to connect to
localhost:9090
javax.naming.CommunicationException: Failed to connect to
server localhost:9090 [Root exception is
javax.naming.ServiceUnavailableException: Failed to connect
to server localhost:9090 [Root exception is
java.net.ConnectException: Connection refused]]
        at
org.jnp.interfaces.NamingContext.getServer(NamingContext.java:215)
        at
org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1181)
        at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)
        at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
        at
javax.naming.InitialContext.lookup(InitialContext.java:347)
        at org.jboss.Shutdown.main(Shutdown.java:180)
Caused by: javax.naming.ServiceUnavailableException: Failed
to connect to server localhost:9090 [Root exception is
java.net.ConnectException: Connection refused]
        at
org.jnp.interfaces.NamingContext.getServer(NamingContext.java:190)
        ... 5 more
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:452)
        at java.net.Socket.connect(Socket.java:402)
        at java.net.Socket.<init>(Socket.java:309)
        at java.net.Socket.<init>(Socket.java:211)
        at
org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)
        at
org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)
        at
org.jnp.interfaces.NamingContext.getServer(NamingContext.java:186)
        ... 5 more
Shutdown complete


----------------------------------------------------------------------

Comment By: Laurent Etiemble (letiemble)
Date: 2003-10-15 16:48

Message:
Logged In: YES 
user_id=437455

Do you have the same behaviour when using the shutdown 
script with the same arguments from a command line ?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=824105&group_id=22866


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to