[jboss-jira] [JBoss JIRA] (REMJMX-90) RemotingConnector thowing RuntimeException for connection timeouts.
Darran Lofthouse (JIRA)
issues at jboss.org
Fri Nov 14 09:10:30 EST 2014
[ https://issues.jboss.org/browse/REMJMX-90?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Darran Lofthouse updated REMJMX-90:
-----------------------------------
Priority: Major (was: Critical)
> 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
> Reporter: Bryan Varner
> Assignee: Darran Lofthouse
>
> 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.8#6338)
More information about the jboss-jira
mailing list