Petals ESB Container

Unable to print the container version if it is not already started

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 3.1
  • Fix Version/s: 4.0.0
  • Component/s: Launcher
  • Security Level: Public
  • Description:
    Hide

    PEtALs is getting its version number through the network, which is awkward @_@ ----------------------------------------------------------- | | | OW2 PEtALS Enterprise Service Bus | | http://petals.ow2.org | | | ----------------------------------------------------------- Command processing error : version org.ow2.petals.jmx.exception.ConnectionErrorException: Can not connect using URI : service:jmx:rmi:///jndi/rmi://localhost:7700/jmxRmiConnector with petals/petals at org.ow2.petals.jmx.PetalsJMXConnection.<init>(PetalsJMXConnection.java:114) at org.ow2.petals.jmx.PetalsJMXClient.<init>(PetalsJMXClient.java:70) at org.ow2.petals.launcher.StandaloneLauncher.getPetalsJmxClient(StandaloneLauncher.java:90) at org.ow2.petals.launcher.AbstractLauncher.version(AbstractLauncher.java:219) at org.ow2.petals.launcher.AbstractLauncher.launch(AbstractLauncher.java:143) at org.ow2.petals.distribution.standalone.Main.main(Main.java:42) Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317) at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248) at org.ow2.petals.jmx.PetalsJMXConnection.<init>(PetalsJMXConnection.java:110) ... 5 more Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] 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) ... 7 more Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused 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) ... 12 more Caused by: java.net.ConnectException: Connection refused 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) ... 17 more Java Result: 255

    Show
    PEtALs is getting its version number through the network, which is awkward @_@ ----------------------------------------------------------- | | | OW2 PEtALS Enterprise Service Bus | | http://petals.ow2.org | | | ----------------------------------------------------------- Command processing error : version org.ow2.petals.jmx.exception.ConnectionErrorException: Can not connect using URI : service:jmx:rmi:///jndi/rmi://localhost:7700/jmxRmiConnector with petals/petals at org.ow2.petals.jmx.PetalsJMXConnection.<init>(PetalsJMXConnection.java:114) at org.ow2.petals.jmx.PetalsJMXClient.<init>(PetalsJMXClient.java:70) at org.ow2.petals.launcher.StandaloneLauncher.getPetalsJmxClient(StandaloneLauncher.java:90) at org.ow2.petals.launcher.AbstractLauncher.version(AbstractLauncher.java:219) at org.ow2.petals.launcher.AbstractLauncher.launch(AbstractLauncher.java:143) at org.ow2.petals.distribution.standalone.Main.main(Main.java:42) Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317) at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248) at org.ow2.petals.jmx.PetalsJMXConnection.<init>(PetalsJMXConnection.java:110) ... 5 more Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused] 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) ... 7 more Caused by: java.rmi.ConnectException: Connection refused to host: localhost; nested exception is: java.net.ConnectException: Connection refused 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) ... 12 more Caused by: java.net.ConnectException: Connection refused 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) ... 17 more Java Result: 255
  • Environment:
    Os:all

Activity

Hide
Sébastien André added a comment - Thu, 4 Nov 2010 - 17:17:40 +0100

The version of the launcher is printed with the --version option and works if the container is running and also if it's not running.

To get the containers version, use the version command in petals-cli. This command won't work when the remote container os stopped

Show
Sébastien André added a comment - Thu, 4 Nov 2010 - 17:17:40 +0100 The version of the launcher is printed with the --version option and works if the container is running and also if it's not running. To get the containers version, use the version command in petals-cli. This command won't work when the remote container os stopped

People

Dates

  • Created:
    Fri, 16 Jul 2010 - 11:30:52 +0200
    Updated:
    Thu, 4 Nov 2010 - 17:17:48 +0100
    Resolved:
    Thu, 4 Nov 2010 - 17:17:40 +0100