Examples of ConnectionException

@author Chris Hennigfeld
  • com.brewtab.irc.ConnectionException
  • com.cloud.exception.ConnectionException
    ConnectionException is thrown by Listeners while processing the startup command. There are two uses for this exception and they are distinguished 1. If the flag is set to true, there is an unexpected error during the processing. Upon receiving this exception, the AgentManager will immediately place the agent under alert. When the function to enable to disable the agent, the agent is disabled. should be disconnected and reconnected to "refresh" all resource information. This is useful when the Listener needed to perform setup on the agent and decided it is best to flush connection and reconnect. situation where it keeps throwing ConnectionException.
  • com.couchbase.client.vbucket.ConnectionException
    .
  • com.google.dataconnector.util.ConnectionException
    Exception for all connection related errors. @author rayc@google.com (Ray Colline)
  • com.jdroid.java.exception.ConnectionException
    Exception related with connectivity errors.
  • com.lixia.rdp.ConnectionException
  • com.netflix.astyanax.connectionpool.exceptions.ConnectionException
    Connection exception caused by an error in the connection pool or a transport error related to the connection itself. Application errors are derived from OperationException. @author elandau
  • com.sforce.ws.ConnectionException
  • com.tinkerpop.gremlin.driver.exception.ConnectionException
    en.genoprime.com)
  • com.volantis.vdp.sps.connector.exception.ConnectionException
    User: rstroz01 Date: 2006-01-06 Time: 11:09:12
  • com.youtube.vitess.vtgate.Exceptions.ConnectionException
  • de.fu_berlin.inf.dpp.exceptions.ConnectionException
    Connection is lost while an operation related to streaming was tried to perform.
  • de.mhus.lib.cao.ConnectionException
  • de.zib.scalaris.ConnectionException
    Exception that is thrown if an operation on a scalaris ring fails because the connection is not active, a communication error occurred, an exit signal was received or the remote node sent a message containing an invalid cookie. @author Nico Kruber, kruber@zib.de @version 2.2 @since 2.0
  • eu.mosaic_cloud.platform.core.exceptions.ConnectionException
    Exception thrown when a queue-based connection cannot be set. @author Georgiana Macariu
  • fr.norsys.mapper.console.exception.ConnectionException
  • jnipap.ConnectionException
    Connection related errors Timeouts, ...
  • net.schmizz.sshj.connection.ConnectionException
    Connection-layer exception.
  • net.sourceforge.bing.exception.ConnectionException
    api.sourceforge.net/
  • org.aavso.tools.vstar.exception.ConnectionException
    This exception can be thrown when a database connection exception has occurred.
  • org.agorava.api.exception.ConnectionException
    Low level exception in Rest attempt to connect to tier service @author Pablo Fernandez @author Antoine Sabot-Durand
  • org.apache.directory.studio.ldapbrowser.core.model.ConnectionException
  • org.apache.isis.runtimes.dflt.remoting.transport.ConnectionException
    Indicates that a connection could not be established between the client and the server.
  • org.apache.maven.wagon.ConnectionException
    The exception is thrown when a connection to repository cannot be established or open connection cannot be closed. @author Michal Maczka @version $Id: ConnectionException.java 682051 2008-08-02 21:29:38Z hboutemy $
  • org.apache.oodt.cas.filemgr.structs.exceptions.ConnectionException
    @author woollard @version $Revision$

    An exception that is thrown when a connection cannot be established by a client.

  • org.apache.qpid.amqp_1_0.client.ConnectionException
  • org.apache.qpid.example.shared.ConnectionException
  • org.apache.qpid.transport.ConnectionException
    ConnectionException
  • org.jboss.blacktie.jatmibroker.xatmi.ConnectionException
    This is the exception that is raised when the connection to Blacktie is suffering.
  • org.jboss.internal.soa.esb.rosetta.pooling.ConnectionException
    This exception is thrown when Connection Pool fails to initialize @author kstamDate: March 10, 2007
  • org.jboss.mx.remote.connector.ConnectionException
    ConnectionException is raised by a Connector to the caller when a Connection to the remote MBeanServer is lost during an invocation. @author Jeff Haynie @version $Revision: 1.3 $
  • org.jboss.narayana.blacktie.jatmibroker.xatmi.ConnectionException
    This is the exception that is raised when the connection to Blacktie is suffering.
  • org.jboss.seam.rest.example.client.ConnectionException
  • org.jivesoftware.openfire.auth.ConnectionException
    Thrown when Openfire is not able to connect to the user and group system. @author Gabriel Guardincerri
  • org.mc4j.ems.connection.ConnectionException
    @author Greg Hinkle (ghinkle@users.sourceforge.net), Apr 12, 2005 @version $Revision: 1.2 $($Author: ghinkl $ / $Date: 2006/04/12 19:11:33 $)
  • org.mule.api.ConnectionException
    Exception thrown when connect method in cloud connectors fails to connect properly.
  • org.rssowl.core.connection.ConnectionException
    Checked Exception thrown from Connection operations. @author bpasero
  • org.teiid.net.ConnectionException
    This exception indicates that an error has occurred during connection. There are many possible reasons for this, but the most likely is a problem with connection parameters.
  • org.xdams.exception.ConnectionException
  • org.xooof.xooofoscope.dao.exception.ConnectionException
    @author acsejcaTo change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
  • se.despotify.exceptions.ConnectionException

  • Examples of org.apache.qpid.amqp_1_0.client.ConnectionException

                    }
                }).get(5, TimeUnit.SECONDS);
            }
            catch (Exception e)
            {
                throw new ConnectionException(e);
            }

        }
    View Full Code Here

    Examples of org.apache.qpid.example.shared.ConnectionException

                    return _connection;
                }
                catch (Exception e)
                {
                    throw new ConnectionException(e.toString());
                }
            }
            else
            {
                return _connection;
    View Full Code Here

    Examples of org.apache.qpid.transport.ConnectionException

            final String brokerMechanisms = Strings.join(" ", brokerMechs);
            final String restrictionList = getConnectionSettings().getSaslMechs();
            final String selectedMech = CallbackHandlerRegistry.getInstance().selectMechanism(brokerMechanisms, restrictionList);
            if (selectedMech == null)
            {
                throw new ConnectionException("Client and broker have no SASL mechanisms in common." +
                        " Broker allows : " + brokerMechanisms +
                        " Client has : " + CallbackHandlerRegistry.getInstance().getMechanisms()  +
                        " Client restricted itself to : " + (restrictionList != null ? restrictionList : "no restriction"));
            }
    View Full Code Here

    Examples of org.apache.qpid.transport.ConnectionException

            exception = exc;
        }

        public void closed(Connection conn)
        {
            ConnectionException exc = exception;
            exception = null;

            if (exc == null)
            {
                return;
            }

            ConnectionClose close = exc.getClose();
            if (close == null || close.getReplyCode() == ConnectionCloseCode.CONNECTION_FORCED)
            {
                _conn.getProtocolHandler().setFailoverLatch(new CountDownLatch(1));

                _qpidConnection.notifyFailoverRequired();

                synchronized (_conn.getFailoverMutex())
                {
                    try
                    {
                        if (_conn.firePreFailover(false) && _conn.attemptReconnection())
                        {
                            _conn.failoverPrep();
                            _conn.resubscribeSessions();
                            _conn.fireFailoverComplete();
                            return;
                        }
                    }
                    catch (Exception e)
                    {
                        _logger.error("error during failover", e);
                    }
                    finally
                    {
                        _conn.getProtocolHandler().getFailoverLatch().countDown();
                        _conn.getProtocolHandler().setFailoverLatch(null);
                    }
                }
            }

            _conn.setClosed();

            ExceptionListener listener = _conn.getExceptionListenerNoCheck();
            if (listener == null)
            {
                _logger.error("connection exception: " + conn, exc);
            }
            else
            {
                String code = null;
                if (close != null)
                {
                    code = close.getReplyCode().toString();
                }

                JMSException ex = new JMSException(exc.getMessage(), code);
                ex.setLinkedException(exc);
                ex.initCause(exc);
                listener.onException(ex);
            }
        }
    View Full Code Here

    Examples of org.apache.qpid.transport.ConnectionException

            final String brokerMechanisms = Strings.join(" ", brokerMechs);
            final String restrictionList = getConnectionSettings().getSaslMechs();
            final String selectedMech = CallbackHandlerRegistry.getInstance().selectMechanism(brokerMechanisms, restrictionList);
            if (selectedMech == null)
            {
                throw new ConnectionException("Client and broker have no SASL mechanisms in common." +
                        " Broker allows : " + brokerMechanisms +
                        " Client has : " + CallbackHandlerRegistry.getInstance().getMechanisms()  +
                        " Client restricted itself to : " + (restrictionList != null ? restrictionList : "no restriction"));
            }
    View Full Code Here

    Examples of org.apache.qpid.transport.ConnectionException

            final String brokerMechanisms = Strings.join(" ", brokerMechs);
            final String restrictionList = getConnectionSettings().getSaslMechs();
            final String selectedMech = CallbackHandlerRegistry.getInstance().selectMechanism(brokerMechanisms, restrictionList);
            if (selectedMech == null)
            {
                throw new ConnectionException("Client and broker have no SASL mechanisms in common." +
                        " Broker allows : " + brokerMechanisms +
                        " Client has : " + CallbackHandlerRegistry.getInstance().getMechanisms()  +
                        " Client restricted itself to : " + (restrictionList != null ? restrictionList : "no restriction"));
            }

            if ((_connectionURL.getUsername() == null || _connectionURL.getPassword() == null)
                    && CallbackHandlerRegistry.getInstance().isUserPassRequired(selectedMech))
            {
                throw new ConnectionException("Username and Password is required for the selected mechanism : " + selectedMech +
                        " Broker allows : " + brokerMechanisms +
                        " Client has : " + CallbackHandlerRegistry.getInstance().getMechanisms()  +
                        " Client restricted itself to : " + (restrictionList != null ? restrictionList : "no restriction"));
            }
    View Full Code Here

    Examples of org.apache.qpid.transport.ConnectionException

            exception = exc;
        }

        public void closed(Connection conn)
        {
            ConnectionException exc = exception;
            exception = null;

            if (exc == null)
            {
                return;
            }

            ConnectionClose close = exc.getClose();
            if (close == null || close.getReplyCode() == ConnectionCloseCode.CONNECTION_FORCED)
            {
                _conn.getProtocolHandler().setFailoverLatch(new CountDownLatch(1));

                _qpidConnection.notifyFailoverRequired();

                synchronized (_conn.getFailoverMutex())
                {
                    try
                    {
                        if (_conn.firePreFailover(false) && _conn.attemptReconnection())
                        {
                            _conn.failoverPrep();
                            _conn.resubscribeSessions();
                            _conn.fireFailoverComplete();
                            return;
                        }
                    }
                    catch (Exception e)
                    {
                        _logger.error("error during failover", e);
                    }
                    finally
                    {
                        _conn.getProtocolHandler().getFailoverLatch().countDown();
                        _conn.getProtocolHandler().setFailoverLatch(null);
                    }
                }
            }

            _conn.setClosed();

            ExceptionListener listener = _conn.getExceptionListenerNoCheck();
            if (listener == null)
            {
                _logger.error("connection exception: " + conn, exc);
            }
            else
            {
                String code = null;
                if (close != null)
                {
                    code = close.getReplyCode().toString();
                }

                JMSException ex = new JMSException(exc.getMessage(), code);
                ex.setLinkedException(exc);
                ex.initCause(exc);
                listener.onException(ex);
            }
        }
    View Full Code Here

    Examples of org.apache.qpid.transport.ConnectionException

            exception = exc;
        }

        public void closed(Connection conn)
        {
            ConnectionException exc = exception;
            exception = null;

            if (exc == null)
            {
                return;
            }

            ConnectionClose close = exc.getClose();
            if (close == null)
            {
                _conn.getProtocolHandler().setFailoverLatch(new CountDownLatch(1));
               
                try
                {
                    if (_conn.firePreFailover(false) && _conn.attemptReconnection())
                    {
                        _conn.failoverPrep();
                        _conn.resubscribeSessions();
                        _conn.fireFailoverComplete();
                        return;
                    }
                }
                catch (Exception e)
                {
                    _logger.error("error during failover", e);
                }
                finally
                {
                    _conn.getProtocolHandler().getFailoverLatch().countDown();
                    _conn.getProtocolHandler().setFailoverLatch(null);
                }
            }

            ExceptionListener listener = _conn._exceptionListener;
            if (listener == null)
            {
                _logger.error("connection exception: " + conn, exc);
            }
            else
            {
                String code = null;
                if (close != null)
                {
                    code = close.getReplyCode().toString();
                }

                JMSException ex = new JMSException(exc.getMessage(), code);
                ex.setLinkedException(exc);
                ex.initCause(exc);
                listener.onException(ex);
            }
        }
    View Full Code Here

    Examples of org.jboss.blacktie.jatmibroker.xatmi.ConnectionException

      public void send(Object replyTo, short rval, int rcode, byte[] data,
          int len, int correlationId, int flags, int ttl, String type,
          String subtype) throws ConnectionException {
        if (closed) {
          throw new ConnectionException(Connection.TPEPROTO, "Sender closed");
        }

        if (data == null) {
          data = new byte[1];
          len = 1;
        }
        if (len < 1) {
          throw new ConnectionException(Connection.TPEINVAL,
              "Length of buffer must be greater than 0");
        }

        log.debug("Sender sending: " + name);
        try {
          BytesMessage message = session.createBytesMessage();
          String ior = JtsTransactionImple.getTransactionIOR();

          message.setStringProperty("messagecontrol", ior);
          log.debug("Sender sending IOR: " + ior);
          if (replyTo != null) {
            message.setStringProperty("messagereplyto", (String) replyTo);
          }
          message.setStringProperty("servicename", name);
          message.setStringProperty("messagecorrelationId",
              String.valueOf(correlationId));
          message.setStringProperty("messageflags", String.valueOf(flags));
          message.setStringProperty("messagerval", String.valueOf(rval));
          message.setStringProperty("messagercode", String.valueOf(rcode));
          message.setStringProperty("messagetype", type == null ? "" : type);
          message.setStringProperty("messagesubtype", subtype == null ? ""
              : subtype);

          byte[] toSend = new byte[len + pad];
          if (data != null) {
            int min = Math.min(toSend.length, data.length);
            System.arraycopy(data, 0, toSend, 0, min);
          }
          message.writeBytes(toSend, 0, toSend.length);
          if (ttl > 0) {
            int deliveryMode = message.getJMSDeliveryMode();
            int priority = message.getJMSPriority();

            log.debug("send message with time-to-live " + ttl);
            sender.send(message, deliveryMode, priority, ttl);
          } else {
            sender.send(message);
          }
          log.debug("sent message");
        } catch (Throwable e) {
          throw new ConnectionException(Connection.TPESYSTEM,
              "Could not send the message: " + e.getMessage(), e);
        }
      }
    View Full Code Here

    Examples of org.jboss.internal.soa.esb.rosetta.pooling.ConnectionException

                    NamingContextPool.releaseNamingContext(context) ;
                }
      }
      catch (final NamingContextException nce)
      {
          throw new ConnectionException("Unexpected exception while accessing Naming Context pool", nce) ;
      }
      }
    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.