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

RemotingConnector thowing RuntimeException for connection timeouts.

    XMLWordPrintable

Details

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

      Catch unchecked Exceptions.

      Show
      Catch unchecked Exceptions.

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: