Examples of MessagingNetworkFailureException


Examples of org.jboss.jms.exception.MessagingNetworkFailureException

         client.setSubsystem(ServerPeer.REMOTING_JMS_SUBSYSTEM);
         client.connect();
      }
      catch (Exception e)
      {
         throw new MessagingNetworkFailureException("Failed to connect client", e);
      }

      client.setMarshaller(new JMSWireFormat());
      client.setUnMarshaller(new JMSWireFormat());
     
View Full Code Here

Examples of org.jboss.jms.exception.MessagingNetworkFailureException

         {
            log.debug("Server" + server + " was broken, loading AOP from next delegate", e);
         }
      }

      throw new MessagingNetworkFailureException("Failed to download and/or install client side AOP stack");
   }
View Full Code Here

Examples of org.jboss.jms.exception.MessagingNetworkFailureException

/* 233 */           failover = false;
/*     */         }
/*     */       }
/* 236 */       if (failover)
/*     */       {
/* 238 */         return new MessagingNetworkFailureException(cc);
/*     */       }
/*     */     } else {
/* 241 */       if (((t instanceof IOException)) || ((t instanceof ConnectionFailedException)))
/*     */       {
/* 243 */         return new MessagingNetworkFailureException((Exception)t);
/*     */       }
/*     */
/* 247 */       if ((t instanceof RuntimeException))
/*     */       {
/* 249 */         RuntimeException re = (RuntimeException)t;
/*     */
/* 251 */         Throwable initCause = re.getCause();
/*     */
/* 253 */         if (initCause != null)
/*     */         {
/*     */           do
/*     */           {
/* 257 */             if (((initCause instanceof CannotConnectException)) || ((initCause instanceof IOException)) || ((initCause instanceof ConnectionFailedException)))
/*     */             {
/* 261 */               return new MessagingNetworkFailureException((Exception)initCause);
/*     */             }
/* 263 */             initCause = initCause.getCause();
/*     */           }
/* 265 */           while (initCause != null);
/*     */         }
View Full Code Here

Examples of org.jboss.jms.exception.MessagingNetworkFailureException

/*     */
/*     */   public synchronized byte[] org$jboss$jms$client$delegate$ClientClusteredConnectionFactoryDelegate$getClientAOPStack$aop()
/*     */     throws JMSException
/*     */   {
/* 232 */     ClientClusteredConnectionFactoryDelegate.jdField_log_of_type_OrgJbossLoggingLogger.trace("Getting AOP stack, there are " + this.jdField_delegates_of_type_ArrayOfOrgJbossJmsClientDelegateClientConnectionFactoryDelegate.length + " delegates to choose from"); for (int server = 0; server < this.jdField_delegates_of_type_ArrayOfOrgJbossJmsClientDelegateClientConnectionFactoryDelegate.length; server++) try { ConnectionFactoryDelegate aopStackProvider = this.jdField_delegates_of_type_ArrayOfOrgJbossJmsClientDelegateClientConnectionFactoryDelegate[server]; ClientClusteredConnectionFactoryDelegate.jdField_log_of_type_OrgJbossLoggingLogger.trace("getting AOP stack from " + aopStackProvider);
/*     */         MessagingNetworkFailureException e;
/* 232 */         return aopStackProvider.getClientAOPStack(); } catch (MessagingNetworkFailureException localMessagingNetworkFailureException1) { ClientClusteredConnectionFactoryDelegate.jdField_log_of_type_OrgJbossLoggingLogger.debug("Server" + server + " was broken, loading AOP from next delegate", localMessagingNetworkFailureException1); } throw new MessagingNetworkFailureException("Failed to download and/or install client side AOP stack");
/*     */   }
View Full Code Here

Examples of org.jboss.jms.exception.MessagingNetworkFailureException

/* 299 */       client.setSubsystem("JMS");
/* 300 */       client.connect();
/*     */     }
/*     */     catch (Exception e)
/*     */     {
/* 304 */       throw new MessagingNetworkFailureException("Failed to connect client", e);
/*     */     }
/*     */
/* 307 */     client.setMarshaller(new JMSWireFormat());
/* 308 */     client.setUnMarshaller(new JMSWireFormat());
/*     */
View Full Code Here

Examples of org.jboss.jms.exception.MessagingNetworkFailureException

            failover = false;
          }
        }
        if (failover)
        {
          return new MessagingNetworkFailureException(cc);
        }                                       
      }
      else if ((t instanceof IOException) || (t instanceof ConnectionFailedException))
      {
         return new MessagingNetworkFailureException((Exception)t);
      }
      //This can occur if failure happens when Client.connect() is called
      //Ideally remoting should have a consistent API
      else if (t instanceof RuntimeException)
      {
         RuntimeException re = (RuntimeException)t;
        
         Throwable initCause = re.getCause();
        
         if (initCause != null)
         {
            do
            {
               if ((initCause instanceof CannotConnectException) ||
                        (initCause instanceof IOException) ||
                        (initCause instanceof ConnectionFailedException))
               {
                  return new MessagingNetworkFailureException((Exception)initCause);
               }
               initCause = initCause.getCause();
            }
            while (initCause != null);
         }
View Full Code Here

Examples of org.jboss.jms.util.MessagingNetworkFailureException

         {
            log.warn("Server" + 0 + " was broken, loading AOP from next delegate", e);
         }
      }

      throw new MessagingNetworkFailureException(
         "Failed to download and/or install client side AOP stack");
   }
View Full Code Here

Examples of org.jboss.jms.util.MessagingNetworkFailureException

      else if ((t instanceof CannotConnectException) ||
         (t instanceof IOException) ||
         (t instanceof ConnectionFailedException))
      {
         log.warn("Captured Exception:" + t, t);
         return new MessagingNetworkFailureException((Exception)t);
      }
      else
      {
         log.error("Failed", t);
         return new MessagingJMSException("Failed to invoke", t);
View Full Code Here

Examples of org.jboss.jms.util.MessagingNetworkFailureException

         client.setSubsystem(ServerPeer.REMOTING_JMS_SUBSYSTEM);
         client.connect();
      }
      catch (Exception e)
      {
         throw new MessagingNetworkFailureException("Failed to connect client", e);
      }

      client.setMarshaller(new JMSWireFormat());
      client.setUnMarshaller(new JMSWireFormat());
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.