Examples of TransportException


Examples of ca.uhn.hl7v2.protocol.TransportException

    private Socket getSocket(SocketAddress theAddress) throws TransportException {
        Socket s = new Socket();       
        try {
            s.connect(theAddress);
        } catch (IOException e) {
            throw new TransportException(e);
        }
        return s;       
    }
View Full Code Here

Examples of com.activequant.exceptions.TransportException

            originalDestination);
        publisherMap.put(originalDestination, j);
        if (log.isDebugEnabled())
          log.debug("Added publisher for " + originalDestination);
      } catch (Exception ex) {
        throw new TransportException(ex);
      }
    }
  }
View Full Code Here

Examples of com.google.code.or.net.TransportException

    //
    final Packet response = transport.getInputStream().readPacket();
    if(response.getPacketBody()[0] == ErrorPacket.PACKET_MARKER) {
      final ErrorPacket error = ErrorPacket.valueOf(response);
      LOGGER.info("login failed, user: {}, error: {}", this.user, error);
      throw new TransportException(error);
    } else if(response.getPacketBody()[0] == OKPacket.PACKET_MARKER) {
      final OKPacket ok = OKPacket.valueOf(response);
      LOGGER.info("login successfully, user: {}, detail: {}", this.user, ok);
    } else {
      LOGGER.warn("login failed, unknown packet: ", response);
View Full Code Here

Examples of com.kurento.kmf.jsonrpcconnector.TransportException

      public <P, R> Response<R> internalSendRequest(Request<P> request,
          Class<R> resultClass) throws IOException {
        try {
          return internalSendRequestThrift(request, resultClass);
        } catch (ThriftTransportException e) {
          throw new TransportException(
              "Error sendind request to server", e);
        }
      }

      @Override
View Full Code Here

Examples of com.netflix.astyanax.connectionpool.exceptions.TransportException

                            || e.getCause().getMessage().toLowerCase().contains("connection reset")) {
                        return new ConnectionAbortedException(e);
                    }
                }
            }
            return new TransportException(e);
        }
        else {
            // e.getCause().printStackTrace();
            return new UnknownException(e);
        }
View Full Code Here

Examples of edu.villanova.studs.poker.exceptions.TransportException

            //Add the Card to the end of the list
            community.add(c);
        }
        else
            //Exceeded maximum # of allowable Cards
            throw new TransportException ( PokerMessages.AFTER_RIVER );
    }
View Full Code Here

Examples of gnu.classpath.jdwp.transport.TransportException

    }
      }
    catch (IOException ioe)
      {
  // This will grab UnknownHostException, too.
  throw new TransportException (ioe);
      }
  }
View Full Code Here

Examples of jcifs.util.transport.TransportException

                System.out.println("InterruptedIOException");
                continue;
            } catch(SmbException se) {
                Throwable t = se.getRootCause();
                if (t instanceof TransportException) {
                    TransportException te = (TransportException)t;
                    t = te.getRootCause();
                    if (t instanceof InterruptedException) {
                        System.out.println("InterruptedException in constructor");
                        continue;
                    }
                }
View Full Code Here

Examples of net.schmizz.sshj.transport.TransportException

    @Override
    public void handle(Message msg, SSHPacket buf)
            throws SSHException {
        if (!msg.in(50, 80)) // ssh-userauth packets have message numbers between 50-80
            throw new TransportException(DisconnectReason.PROTOCOL_ERROR);

        switch (msg) {

            case USERAUTH_BANNER: {
                banner = buf.readString();
View Full Code Here

Examples of net.schmizz.sshj.transport.TransportException

                    to.putRawBytes(tempBuf, 0, BUF_SIZE - stream.avail_out);
                    break;
                case JZlib.Z_BUF_ERROR:
                    return;
                default:
                    throw new TransportException(DisconnectReason.COMPRESSION_ERROR, "uncompress: inflate returned "
                            + status);
            }
        }
    }
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.