[jboss-jira] [JBoss JIRA] (REMJMX-90) RemotingConnector thowing RuntimeException for connection timeouts.

Darran Lofthouse (JIRA) issues at jboss.org
Wed Apr 1 12:52:21 EDT 2015


     [ https://issues.jboss.org/browse/REMJMX-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse resolved REMJMX-90.
------------------------------------
    Resolution: Done


> RemotingConnector thowing RuntimeException for connection timeouts.
> -------------------------------------------------------------------
>
>                 Key: REMJMX-90
>                 URL: https://issues.jboss.org/browse/REMJMX-90
>             Project: Remoting JMX
>          Issue Type: Bug
>          Components: Connection
>    Affects Versions: 2.0.1.CR1
>            Reporter: Bryan Varner
>            Assignee: Darran Lofthouse
>             Fix For: 2.0.1.CR2
>
>
> When attempting to connect, if a timeout occurs, an unchecked RuntimeException is thrown, rather than a checked IOException.
> {code}
> 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...
> }
> {code}
> The problem seems to be:
> https://github.com/jbossas/remoting-jmx/blob/master/src/main/java/org/jboss/remotingjmx/RemotingConnector.java#L243



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list