Uploaded image for project: 'Remoting JMX'
  1. Remoting JMX
  2. REMJMX-90

RemotingConnector thowing RuntimeException for connection timeouts.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.1.CR2
    • 2.0.1.CR1
    • Connection
    • None
    • Hide

      Catch unchecked Exceptions.

      Show
      Catch unchecked Exceptions.

      When attempting to connect, if a timeout occurs, an unchecked RuntimeException is thrown, rather than a checked IOException.

      try {
      	serverConnector = JMXConnectorFactory.newJMXConnector(serviceURL, environment);
      	serverConnector.connect(environment);
      } catch (IOException ioe) {
      	// Code to handle connection / network / failures
      	// This never gets called if the IOFuture status is WAITING...
      }
      

      The problem seems to be:
      https://github.com/jbossas/remoting-jmx/blob/master/src/main/java/org/jboss/remotingjmx/RemotingConnector.java#L243

              darran.lofthouse@redhat.com Darran Lofthouse
              bvarner_jira Bryan Varner (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: