Package org.apache.qpid.transport

Examples of org.apache.qpid.transport.TransportException


    public void send(java.nio.ByteBuffer buf)
    {
        if (session.isClosing())
        {
            throw new TransportException("attempted to write to a closed socket");
        }

        synchronized (this)
        {
            lastWrite = session.write(ByteBuffer.wrap(buf));
View Full Code Here


        {
            return (NetworkTransport)transportClass.newInstance();
        }
        catch (Exception e)
        {
            throw new TransportException("Error while creating a new transport instance",e);
        }
    }
View Full Code Here

            {
                sslCtx = SSLUtil.createSSLContext(settings);
            }
            catch (Exception e)
            {
                throw new TransportException("Error creating SSL Context", e);
            }
           
            try
            {
                engine = sslCtx.createSSLEngine();
                engine.setUseClientMode(true);
            }
            catch(Exception e)
            {
                throw new TransportException("Error creating SSL Engine", e);
            }
        }
View Full Code Here

          }
         
          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

                sender.setErrorFlag();
                synchronized(notificationToken)
                {
                    notificationToken.notifyAll();
                }               
                exception(new TransportException("Error in SSLReceiver",e));
            }

        }
    }
View Full Code Here

            {
                sslCtx = createSSLContext();
            }
            catch (Exception e)
            {
                throw new TransportException("Error creating SSL Context", e);
            }
           
            try
            {
                engine = sslCtx.createSSLEngine();
                engine.setUseClientMode(true);
            }
            catch(Exception e)
            {
                throw new TransportException("Error creating SSL Engine", e);
            }
           
            this.sender = new SSLSender(engine,new IoSender(this, 2*writeBufferSize, timeout));
            this.endpoint = binding.endpoint(sender);
            this.receiver = new IoReceiver(this, new SSLReceiver(engine,binding.receiver(endpoint),(SSLSender)sender),
View Full Code Here

            socket.connect(new InetSocketAddress(address, port));
            return socket;
        }
        catch (SocketException e)
        {
            throw new TransportException("Error connecting to broker", e);
        }
        catch (IOException e)
        {
            throw new TransportException("Error connecting to broker", e);
        }
    }
View Full Code Here

                if (block && Thread.currentThread() != receiverThread)
                {
                    receiverThread.join(timeout);
                    if (receiverThread.isAlive())
                    {
                        throw new TransportException("join timed out");
                    }
                }
            }
            catch (InterruptedException e)
            {
                throw new TransportException(e);
            }
            catch (IOException e)
            {
                throw new TransportException(e);
            }
        }
    }
View Full Code Here

        {
            out = socket.getOutputStream();
        }
        catch (IOException e)
        {
            throw new TransportException("Error getting output stream for socket", e);
        }

        try
        {
            senderThread = Threading.getThreadFactory().createThread(this);                     
View Full Code Here

            socket.connect(new InetSocketAddress(address, settings.getPort()));
        }
        catch (SocketException e)
        {
            throw new TransportException("Error connecting to broker", e);
        }
        catch (IOException e)
        {
            throw new TransportException("Error connecting to broker", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.qpid.transport.TransportException

Copyright © 2018 www.massapicom. 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.