geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (GERONIMO-3881) geronimo/stop-server dumps ConnectException: Connection refused: connect when server's stopped yet Shutdown request has been issued
Date Thu, 13 Mar 2008 02:37:47 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-3881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jarek Gawor reassigned GERONIMO-3881:
-------------------------------------

    Assignee: Jarek Gawor

> geronimo/stop-server dumps ConnectException: Connection refused: connect when server's
stopped yet Shutdown request has been issued
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-3881
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3881
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>            Reporter: Jacek Laskowski
>            Assignee: Jarek Gawor
>
> The stack trace should not be printed out, but a error message. The Shutdown request
has been issued message's a little misleading.
> {noformat}jlaskowski@dev /cygdrive/c/geronimo-jetty6-javaee5-2.1
> $ ./bin/gsh
> Apache Geronimo (2.1)
> Type 'help' for more information.
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> jlaskowski@dev:/> geronimo/stop-server
> Stopping Geronimo server: localhost:1099
> Username: systen
> Password:
> 23:22:20,156 WARN  [ServerProxy] Unable to shutdown the server
> java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException
[Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nes
> ted exception is:
>         java.net.ConnectException: Connection refused: connect]
>         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317)
>         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
>         at org.apache.geronimo.commands.ServerProxy.getConnection(ServerProxy.java:102)
>         at org.apache.geronimo.commands.ServerProxy.invoke(ServerProxy.java:219)
>         at org.apache.geronimo.commands.ServerProxy.invoke(ServerProxy.java:230)
>         at org.apache.geronimo.commands.ServerProxy.invoke(ServerProxy.java:234)
>         at org.apache.geronimo.commands.ServerProxy.shutdown(ServerProxy.java:202)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.groovy.reflection.CachedMethod.invokeByReflection(CachedMethod.java:107)
>         at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:127)
>         at org.codehaus.groovy.runtime.metaclass.StdMetaMethod.invoke(StdMetaMethod.java:18)
>         at org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:538)
>         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:749)
>         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:589)
>         at org.codehaus.groovy.runtime.Invoker.invokePojoMethod(Invoker.java:87)
>         at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:75)
>         at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:74)
>         at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:158)
>         at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod0(ScriptBytecodeAdapter.java:201)
>         at org.apache.geronimo.commands.StopServerCommand.doExecute(StopServerCommand.groovy:72)
>         at org.apache.geronimo.gshell.command.CommandSupport.execute(CommandSupport.java:101)
>         at org.apache.geronimo.gshell.plugin.PlexusCommandWrapper.execute(PlexusCommandWrapper.java:71)
>         at org.apache.geronimo.gshell.DefaultCommandExecutor.execute(DefaultCommandExecutor.java:209)
>         at org.apache.geronimo.gshell.ExecutingVisitor.visit(ExecutingVisitor.java:96)
>         at org.apache.geronimo.gshell.parser.ASTExpression.jjtAccept(ASTExpression.java:17)
>         at org.apache.geronimo.gshell.parser.SimpleNode.childrenAccept(SimpleNode.java:57)
>         at org.apache.geronimo.gshell.ExecutingVisitor.visit(ExecutingVisitor.java:79)
>         at org.apache.geronimo.gshell.parser.ASTCommandLine.jjtAccept(ASTCommandLine.java:17)
>         at org.apache.geronimo.gshell.DefaultCommandLineBuilder$1.execute(DefaultCommandLineBuilder.java:95)
>         at org.apache.geronimo.gshell.DefaultCommandExecutor.execute(DefaultCommandExecutor.java:86)
>         at org.apache.geronimo.gshell.DefaultShell.execute(DefaultShell.java:123)
>         at org.apache.geronimo.gshell.DefaultShell$1.execute(DefaultShell.java:155)
>         at org.apache.geronimo.gshell.console.Console.work(Console.java:187)
>         at org.apache.geronimo.gshell.console.Console.run(Console.java:128)
>         at org.apache.geronimo.gshell.console.JLineConsole.run(JLineConsole.java:68)
>         at org.apache.geronimo.gshell.DefaultShell.run(DefaultShell.java:202)
>         at org.apache.geronimo.gshell.GShell.run(GShell.java:156)
>         at org.apache.geronimo.gshell.cli.Main.boot(Main.java:249)
>         at org.apache.geronimo.gshell.cli.Main.main(Main.java:266)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:408)
>         at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:351)
>         at org.apache.geronimo.gshell.bootstrap.Launcher.main(Launcher.java:59)
> Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException:
Connection refused to host: localhost; nested exception is:
>         java.net.ConnectException: Connection refused: connect]
>         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)
>         at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)
>         at javax.naming.InitialContext.lookup(InitialContext.java:351)
>         at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1817)
>         at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1787)
>         at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259)
>         ... 50 more
> Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception
is:
>         java.net.ConnectException: Connection refused: connect
>         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
>         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
>         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
>         at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
>         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
>         at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:93)
>         ... 55 more
> Caused by: java.net.ConnectException: Connection refused: connect
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>         at java.net.Socket.connect(Socket.java:520)
>         at java.net.Socket.connect(Socket.java:470)
>         at java.net.Socket.<init>(Socket.java:367)
>         at java.net.Socket.<init>(Socket.java:180)
>         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
>         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
>         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
>         ... 60 more
> Shutdown request has been issued{noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message