Examples of ConnectionFailedException


Examples of com.subgraph.orchid.ConnectionFailedException

      try {
        doConnect();
      } catch (SocketTimeoutException e) {
        throw new ConnectionTimeoutException();
      } catch (IOException e) {
        throw new ConnectionFailedException(e.getClass().getName() + " : "+ e.getMessage());
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
        throw new ConnectionHandshakeException("Handshake interrupted");
      } catch (ConnectionHandshakeException e) {
        throw e;
      } catch (ConnectionIOException e) {
        throw new ConnectionFailedException(e.getMessage());
      }
      isConnected = true;
    }
  }
View Full Code Here

Examples of org.apache.geronimo.remoting.transport.ConnectionFailedException

            InetAddress addr = InetAddress.getByName(remoteURI.getHost());
            socketChannel = SocketChannel.open();
            socketChannel.configureBlocking(true);
            socketChannel.connect(new InetSocketAddress(addr, port));
        } catch (Exception e) {
            throw new ConnectionFailedException("" + e);
        }
        try {
            socketChannel.socket().setTcpNoDelay(enableTcpNoDelay);

            DataOutputStream out = new DataOutputStream(socketChannel.socket().getOutputStream());
View Full Code Here

Examples of org.apache.geronimo.remoting.transport.ConnectionFailedException

            InetAddress addr = InetAddress.getByName(remoteURI.getHost());
            socketChannel = SocketChannel.open();
            socketChannel.configureBlocking(true);
            socketChannel.connect(new InetSocketAddress(addr, port));
        } catch (Exception e) {
            throw new ConnectionFailedException("" + e);
        }
        try {
            socketChannel.socket().setTcpNoDelay(enableTcpNoDelay);

            DataOutputStream out = new DataOutputStream(socketChannel.socket().getOutputStream());
View Full Code Here

Examples of org.apache.geronimo.remoting.transport.ConnectionFailedException

            InetAddress addr = InetAddress.getByName(remoteURI.getHost());
            socketChannel = SocketChannel.open();
            socketChannel.configureBlocking(true);
            socketChannel.connect(new InetSocketAddress(addr, port));
        } catch (Exception e) {
            throw new ConnectionFailedException("" + e);
        }
        try {
            socketChannel.socket().setTcpNoDelay(enableTcpNoDelay);

            DataOutputStream out = new DataOutputStream(socketChannel.socket().getOutputStream());
View Full Code Here

Examples of org.apache.geronimo.remoting.transport.ConnectionFailedException

            InetAddress addr = InetAddress.getByName(remoteURI.getHost());
            socketChannel = SocketChannel.open();
            socketChannel.configureBlocking(true);
            socketChannel.connect(new InetSocketAddress(addr, port));
        } catch (Exception e) {
            throw new ConnectionFailedException("" + e);
        }
        try {
            socketChannel.socket().setTcpNoDelay(enableTcpNoDelay);

            DataOutputStream out = new DataOutputStream(socketChannel.socket().getOutputStream());
View Full Code Here

Examples of org.exolab.castor.jdo.ConnectionFailedException

        // to have the transaction association in the engine inflates the code size
        // in other places.
        try {
            return engine.getConnectionFactory().createConnection();
        } catch (SQLException ex) {
            throw new ConnectionFailedException(Messages.format("persist.nested", ex), ex);
        }
    }
View Full Code Here

Examples of org.exolab.castor.jdo.ConnectionFailedException

        try {
            Connection conn = engine.getConnectionFactory().createConnection();
            conn.setAutoCommit(false);
            return conn;
        } catch (SQLException ex) {
            throw new ConnectionFailedException(Messages.format("persist.nested", ex), ex);
        }
    }
View Full Code Here

Examples of org.jboss.remoting.ConnectionFailedException

                  }
               }
            }
           
            if (sockets.isEmpty())
               throw new ConnectionFailedException("Timed out trying to create control socket");

            Iterator it = sockets.iterator();
            controlSocket = (Socket) it.next();
            it.remove();
            try
            {
               controlOutputStream = controlSocket.getOutputStream();
            }
            catch (IOException e1)
            {
               throw new ConnectionFailedException("Unable to get control socket output stream");
            }
            log.debug("got control socket( " + listenerId + "): " + controlSocket);
            pingTimerTask = new PingTimerTask(this);

            synchronized (timerLock)
View Full Code Here

Examples of org.jboss.remoting.ConnectionFailedException

            }
         }
      }
      else
      {
         throw new ConnectionFailedException("Error invoking on server because " +
                                             "no local server to call upon.");
      }

      return ret;
   }
View Full Code Here

Examples of org.jboss.remoting.ConnectionFailedException

            }
         }
      }
      else
      {
         throw new ConnectionFailedException("Error invoking on server because " +
                                             "no local server to call upon.");
      }

      return ret;
   }
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.