[jboss-jira] [JBoss JIRA] (REMJMX-90) RemotingConnector thowing RuntimeException for connection timeouts.
Bryan Varner (JIRA)
issues at jboss.org
Thu Nov 13 14:47:30 EST 2014
Bryan Varner created REMJMX-90:
----------------------------------
Summary: 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
Priority: Critical
When attempting to connect, if a timeout occurs, an unchecked RuntimeException is thrown, rather than a checked IOException.
My mind cannot conceive how this could possibly be correct.
{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