Author: adietish
Date: 2011-07-01 05:27:19 -0400 (Fri, 01 Jul 2011)
New Revision: 32525
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.management.as7/src/org/jboss/ide/eclipse/as/management/as7/deployment/AS7Manager.java
Log:
[JBIDE-9173] changed handling when connection was closed by the server (because it shuts
down)
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.management.as7/src/org/jboss/ide/eclipse/as/management/as7/deployment/AS7Manager.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.management.as7/src/org/jboss/ide/eclipse/as/management/as7/deployment/AS7Manager.java 2011-07-01
09:20:17 UTC (rev 32524)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.management.as7/src/org/jboss/ide/eclipse/as/management/as7/deployment/AS7Manager.java 2011-07-01
09:27:19 UTC (rev 32525)
@@ -204,21 +204,10 @@
}
}
- public void quietlyExecuteAsync(ModelNode node) throws JBoss7ManangerException {
- try {
- client.executeAsync(node, null);
- } catch (Exception e) {
- if (!isConnectionCloseException(e)) {
- throw new JBoss7ManangerException(e);
- }
- }
- }
-
private boolean isConnectionCloseException(Exception e) {
return e instanceof IOException
- && e.getCause() instanceof ExecutionException
- && e.getCause().getCause() instanceof EOFException
- && e.getCause().getCause().getMessage().indexOf("Connection
closed") > -1;
+ && e.getMessage() != null
+ && e.getMessage().indexOf("Channel closed") > -1;
}
private IJBoss7DeploymentResult execute(DeploymentPlanBuilder builder) throws
JBoss7ManangerException {
Show replies by date