Examples of TransportException


Examples of org.apache.qpid.transport.TransportException

          }

          if (hostname != null && !(hostname.equalsIgnoreCase(hostnameExpected) ||
                  hostname.equalsIgnoreCase(hostnameExpected + ".localdomain")))
          {
              throw new TransportException("SSL hostname verification failed." +
                                           " Expected : " + hostnameExpected +
                                           " Found in cert : " + hostname);
          }

        }
View Full Code Here

Examples of org.cometd.common.TransportException

        }

        @Override
        protected boolean transportSend(TransportListener listener, List<Message.Mutable> messages)
        {
            failMessages(new TransportException(null), messages);
            return false;
        }
View Full Code Here

Examples of org.eclipse.jgit.errors.TransportException

    @Override
    public RemoteSession getSession(URIish uri, CredentialsProvider credentialsProvider, FS fs, int tms) throws TransportException {
        try {
            return new SshdSession(uri, credentialsProvider, fs, tms);
        } catch (Exception e) {
            throw new TransportException("Unable to connect", e);
        }
    }
View Full Code Here

Examples of org.elasticsearch.transport.TransportException

            // if compression is disabled only allow "indentity" (uncompressed) requests
            if (HttpHeaders.Values.IDENTITY.equals(contentEncoding)) {
                // nothing to handle here
                return null;
            } else {
                throw new TransportException("Support for compressed content is disabled. You can enable it with http.compression=true");
            }
        }
    }
View Full Code Here

Examples of org.gudy.azureus2.plugins.network.TransportException

    try {
      com.aelitis.azureus.core.networkmanager.impl.TransportCipher cipher = new com.aelitis.azureus.core.networkmanager.impl.TransportCipher(algorithm, mode, key_spec, params);
      return new TransportCipherImpl(cipher);
    }
    catch (Exception e) {
      throw new TransportException(e);
    }
  }
View Full Code Here

Examples of org.gudy.azureus2.plugins.network.TransportException

 
  public TransportFilter createTransportFilter(Connection connection, TransportCipher read_cipher, TransportCipher write_cipher) throws TransportException {
    Transport transport = connection.getTransport();
    com.aelitis.azureus.core.networkmanager.Transport core_transport;
    try {core_transport = ((TransportImpl)transport).coreTransport();}
    catch (IOException e) {throw new TransportException(e);}
   
    TransportHelper helper;
   
    if (core_transport instanceof TCPTransportImpl) {
      TransportHelperFilter hfilter = ((TCPTransportImpl)core_transport).getFilter();
      if (hfilter != null) {helper = hfilter.getHelper();}
      else {
        helper = new TCPTransportHelper(((TCPTransportImpl)(core_transport)).getSocketChannel());
      }
    } else if (core_transport instanceof UDPTransport) {
      TransportHelperFilter hfilter = ((UDPTransport)core_transport).getFilter();
      if (hfilter != null) {helper = hfilter.getHelper();}
      else {
        helper = ((UDPTransport)core_transport).getFilter().getHelper();
        InetSocketAddress addr = core_transport.getTransportEndpoint().getProtocolEndpoint().getConnectionEndpoint().getNotionalAddress();
        if (!connection.isIncoming()) {
        try {helper = new UDPTransportHelper(UDPNetworkManager.getSingleton().getConnectionManager(), addr, (UDPTransport)core_transport);}
        catch (IOException ioe) {throw new TransportException(ioe);}
        }
        else {
        /**
         * Not sure how I can grab the UDPConnection object to pass to the incoming
         * connection constructor. The only time I can figure out where we can link
         * up the UDPConnection object is in UDPConnectionManager.accept - we have a
         * transport object and we construct a UDPConnection object, so we could link
         * them there - but I don't know if we really should associate the UDP connection
         * with the transport (might breaks encapsulation).
         */
          //helper = new UDPTransportHelper(UDPNetworkManager.getSingleton().getConnectionManager(), addr, (UDPTransport)core_transport);
          throw new TransportException("udp incoming transport type not supported - " + core_transport);
        }
      }
    } else {
      throw new TransportException("transport type not supported - " + core_transport);
    }

    TransportHelperFilterStreamCipher core_filter = new TransportHelperFilterStreamCipher(helper, ((TransportCipherImpl)read_cipher).cipher, ((TransportCipherImpl)write_cipher).cipher);
    return new TransportFilterImpl(core_filter);
  }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

      // Wait until the connection attempt succeeds or fails.
      channel = future.awaitUninterruptibly().getChannel();
      if (!future.isSuccess()) {
         bootstrap.releaseExternalResources();
         throw new TransportException("Could not create netty transport", future.getCause());
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

   @Override
   public void flush() {
      try {
         lastWrite.await();
      } catch (InterruptedException e) {
         throw new TransportException(e);
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

         VHelper.writeVInt(vInt, socket.getOutputStream());
         if (log.isTraceEnabled())
            log.trace("VInt wrote " + vInt);
        
      } catch (IOException e) {
         throw new TransportException(e);
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

         VHelper.writeVLong(l, socket.getOutputStream());
         if (log.isTraceEnabled())
            log.trace("VLong wrote " + l);       

      } catch (IOException e) {
         throw new TransportException(e);
      }
   }
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.