Examples of SenderException


Examples of com.anthavio.httl.SenderException

        contentBinary = HttpHeaderUtil.readAsBytes(response);
      } else {
        contentString = HttpHeaderUtil.readAsString(response);
      }
    } catch (IOException iox) {
      throw new SenderException(iox);
    } finally {
      Cutils.close(response);
    }
  }
View Full Code Here

Examples of com.sun.xml.rpc.client.SenderException

        switch (opcode) {
            case getOpenInterfaceAddress_OPCODE:
                _deserialize_getOpenInterfaceAddress(bodyReader, deserializationContext, state);
                break;
            default:
                throw new SenderException("sender.response.unrecognizedOperation", Integer.toString(opcode));
        }
    }
View Full Code Here

Examples of com.sun.xml.rpc.client.SenderException

                break;
            case iterate_OPCODE:
                _deserialize_iterate(bodyReader, deserializationContext, state);
                break;
            default:
                throw new SenderException("sender.response.unrecognizedOperation", Integer.toString(opcode));
        }
    }
View Full Code Here

Examples of com.sun.xml.rpc.client.SenderException

                break;
            case AddBid_OPCODE:
                _deserialize_AddBid(bodyReader, deserializationContext, state);
                break;
            default:
                throw new SenderException("sender.response.unrecognizedOperation", java.lang.Integer.toString(opcode));
        }
    }
View Full Code Here

Examples of org.apache.qpid.transport.SenderException

    {
        checkNotAlreadyClosed();

        if(!senderThread.isAlive())
        {
            throw new SenderException(String.format("sender thread for socket %s is not alive", _remoteSocketAddress));
        }

        final int size = buffer.length;
        int remaining = buf.remaining();

        while (remaining > 0)
        {
            final int hd = head;
            final int tl = tail;

            if (hd - tl >= size)
            {
                flush();
                synchronized (notFull)
                {
                    final long start = System.currentTimeMillis();
                    long elapsed = 0;
                    while (!closed.get() && head - tail >= size && elapsed < timeout)
                    {
                        try
                        {
                            notFull.wait(timeout - elapsed);
                        }
                        catch (InterruptedException e)
                        {
                            // pass
                        }
                        elapsed += System.currentTimeMillis() - start;
                    }

                    checkNotAlreadyClosed();

                    if (head - tail >= size)
                    {
                        try
                        {
                            log.error("write timed out for socket %s: head %d, tail %d", _remoteSocketAddress, head, tail);
                            throw new SenderException(String.format("write timed out for socket %s: head %d, tail %d",  _remoteSocketAddress, head, tail));
                        }
                        finally
                        {
                            close(false, false);
                        }
View Full Code Here

Examples of org.apache.qpid.transport.SenderException

            {
                closeListeners();
            }
            if (reportException && exception != null)
            {
                throw new SenderException(exception);
            }
        }
    }
View Full Code Here

Examples of org.apache.qpid.transport.SenderException

            }
        }

        if (ex != null)
        {
            throw new SenderException(ex.getMessage(), ex);
        }
    }
View Full Code Here

Examples of org.apache.qpid.transport.SenderException

        {
            socket.setSoTimeout(i);
        }
        catch (Exception e)
        {
            throw new SenderException(e);
        }
    }
View Full Code Here

Examples of org.apache.qpid.transport.SenderException

            {
                senderThread.join(timeout);
                if (senderThread.isAlive())
                {
                    log.error("join timed out for socket %s to stop", _remoteSocketAddress);
                    throw new SenderException(String.format("join timed out for socket %s to stop", _remoteSocketAddress));
                }
            }
            catch (InterruptedException e)
            {
                log.error("interrupted whilst waiting for sender thread for socket %s to stop", _remoteSocketAddress);
                throw new SenderException(e);
            }
        }
    }
View Full Code Here

Examples of org.apache.qpid.transport.SenderException

            {
                tearDownSSLConnection();
            }
            catch(Exception e)
            {
                throw new SenderException("Error closing SSL connection",e);
            }


            synchronized(_sslStatus.getSslLock())
            {
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.