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.jboss.mx.remote.connector.ConnectionException

                ccl = getClass().getClassLoader();
            }

            if (isStopped())
            {
                    throw new ConnectionException("Connection has been closed");
            }
            if (logMethod && log.isDebugEnabled())
            {
                //new Exception().printStackTrace();
                log.debug(this+" - invoking operation: "+name+" with "+(args==null?0:args.length)+" args (classloader="+ccl+")");
                debugArgs(args,sig);
            }
            if (name.equals("toString"))
            {
                return toString();
            }
            else if (name.equals("hashCode"))
            {
                return new Integer(hashCode());
            }
            byte[][] arg=null;
            if (args!=null && args.length>0)
            {
                arg=new byte[args.length][];
                for (int c=0;c<args.length;c++)
                {
                    if (args[c]!=null)
                    {
                        arg[c]=SerializationHelper.serialize(args[c]);
                    }
                }
            }
            RemoteMethodInvocation method = new RemoteMethodInvocation(name, arg, sig, extraParams, payload);
            if (logMethod&&log.isDebugEnabled())
            {
                log.debug("created invocation: "+method);
            }
            byte buf[] = SerializationHelper.serialize(method);

            byte lenbuf[] = new byte[10];
            int maxrecv = socket.getSendBufferSize();
            int maxsend = socket.getReceiveBufferSize();

            MethodInvocationResult result = null;
            synchronized (invokeLock)
            {


                // write the method invocation to the output stream
                try
                {
                    // first write out the buffer with the length
                    SocketAcceptor.fill(lenbuf, buf.length);

                    out.write(lenbuf, 0, 10);
                    out.flush();

                    int count = 0;
                    int left = buf.length;

                    // write out our invocation request buffer
                    while (left > 0)
                    {
                        int total = Math.min(left, maxsend);
                        out.write(buf, count, total);
                        count += total;
                        left -= total;
                    }

                    out.flush();

                    // read in our response
                    SocketAcceptor.zero(lenbuf);

                    // read in the response's length
                    in.read(lenbuf, 0, 10);

                    int length = Integer.valueOf(new String(lenbuf)).intValue();

                    ByteArrayOutputStream input = new ByteArrayOutputStream(length);

                    count = 0;
                    left = length;

                    buf = new byte[Math.min(length, maxrecv)];

                    while (left > 0)
                    {
                        int amt = in.read(buf, 0, buf.length);
                        if (amt == -1)
                        {
                            break;
                        }
                        count += amt;
                        left -= amt;
                        input.write(buf, 0, amt);
                    }

                    // de-serialize the method invocation result
                    result = (MethodInvocationResult) SerializationHelper.deserialize(input.toByteArray(),ccl);
                    if (logMethod&&log.isDebugEnabled())
                    {
                        log.debug("method returned result ... "+result+" for operation: "+name);
                    }
                }
                catch (Throwable t)
                {
                    if (t instanceof SocketException)
                    {
                        try
                        {
                            stop();
                        }
                        catch (Exception ex)
                        {
                            if (log.isDebugEnabled())
                            {
                                log.warn("Exception stopping socket on SocketException", ex);
                            }
                        }
                        throw new ConnectionException("Connection has been closed",t);
                    }
                    throw t;
                }
                if (result.hasException())
                {
    View Full Code Here

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

          String command = "serverdone";
          boolean shutdown = false;
          try {
            if (id == 0) {
              List<Integer> ids = listRunningInstanceIds(serverName);
                        ConnectionException toRethrow = null;
              for (int i = 0; i < ids.size(); i++) {
                            try {
                    callAdminService(serverName, ids.get(i), command);
                      } catch (ConnectionException e) {
                        log.error("call server " + serverName + " id " + id
    View Full Code Here

    Examples of org.jboss.seam.rest.example.client.ConnectionException

                    log.error(locations.getStatus().getMessage());
                    throw new StatusException(locations.getStatus().getMessage());
                }
            } catch (Throwable e) {
                log.error(e.getMessage());
                throw new ConnectionException(e);
            }
        }
    View Full Code Here

    Examples of org.jivesoftware.openfire.auth.ConnectionException

                throw ue;
            } catch (org.jivesoftware.openfire.clearspace.ConnectionException e) {
                if (e.getErrorType() == org.jivesoftware.openfire.clearspace.ConnectionException.ErrorType.AUTHENTICATION) {
                    throw new InternalUnauthenticatedException("Bad credentials to use Clearspace webservices", e);
                } else {
                    throw new ConnectionException("Error connection to Clearspace webservices", e);
                }
            } catch (Exception e) {
                // It is not supported exception, wrap it into an UnsupportedOperationException
                throw new UnauthorizedException("Unexpected error", e);
            }
    View Full Code Here

    Examples of org.mc4j.ems.connection.ConnectionException

                return context;
            } catch(NoInitialContextException e) {
                // Try to be more helpful, indicating the reason we couldn't make the connection in this
                // common case of missing libraries.
                if (e.getCause() instanceof ClassNotFoundException) {
                    throw new ConnectionException("Necessary classes not found for remote connection, check installation path configuration.",e.getCause());
                }
                throw e;
            }
        }
    View Full Code Here

    Examples of org.mule.api.ConnectionException

            //Dummy operation for connectivity testing
            try {
                getCatalogCurrentStoreView();
            } catch (Exception e) {
                throw new ConnectionException(ConnectionExceptionCode.INCORRECT_CREDENTIALS, null, e.getMessage());
            }
        }
    View Full Code Here

    Examples of org.rssowl.core.connection.ConnectionException

              if (reader != null)
                reader.close();
            }
          }
        } catch (URISyntaxException e) {
          throw new ConnectionException(Activator.getDefault().createErrorStatus(e.getMessage(), e));
        } catch (IOException e) {
          throw new ConnectionException(Activator.getDefault().createErrorStatus(e.getMessage(), e));
        }

        return null;
      }
    View Full Code Here

    Examples of org.rssowl.core.connection.ConnectionException

          lastArticleId = groupInfo.getLastArticle();
        }

        /* Wrap Exceptions */
        catch (IOException e) {
          throw new ConnectionException(Activator.getDefault().createErrorStatus(e.getMessage(), e));
        }

        /* Disconnect */
        finally {
          try {
            if (client.isConnected())
              client.disconnect();
          } catch (IOException e) {
            throw new ConnectionException(Activator.getDefault().createErrorStatus(e.getMessage(), e));
          }
        }

        /* Create Conditional Get Object */
        IConditionalGet conditionalGet = null;
    View Full Code Here

    Examples of org.rssowl.core.connection.ConnectionException

      private void throwConnectionException(String msg, NNTPClient client) throws ConnectionException {
        StringBuilder str = new StringBuilder();
        str.append(msg);
        str.append(" (").append(client.getReplyString()).append(")");

        throw new ConnectionException(Activator.getDefault().createErrorStatus(str.toString(), null));
      }
    View Full Code Here

    Examples of org.rssowl.core.connection.ConnectionException

          /* Try to pipe the resulting stream into a GZipInputStream */
          if (inS != null)
            inS = pipeStream(inS, method);
        } catch (IOException e) {
          throw new ConnectionException(Activator.getDefault().createErrorStatus(e.getMessage(), e));
        }

        /* In case authentication required / failed */
        if (method.getStatusCode() == HTTP_ERROR_AUTH_REQUIRED) {
          AuthState hostAuthState = method.getHostAuthState();
          throw new AuthenticationRequiredException(hostAuthState != null ? hostAuthState.getRealm() : null, Activator.getDefault().createErrorStatus(Messages.DefaultProtocolHandler_ERROR_AUTHENTICATION_REQUIRED, null));
        }

        /* In case proxy-authentication required / failed */
        if (method.getStatusCode() == HTTP_ERROR_PROXY_AUTH_REQUIRED)
          throw new ProxyAuthenticationRequiredException(Activator.getDefault().createErrorStatus(Messages.DefaultProtocolHandler_ERROR_PROXY_AUTHENTICATION_REQUIRED, null));

        /* If status code is 4xx, throw an IOException with the status code included */
        if (method.getStatusCode() >= HTTP_ERRORS) {
          String error = getError(method.getStatusCode());
          if (error != null)
            throw new ConnectionException(Activator.getDefault().createErrorStatus(NLS.bind(Messages.DefaultProtocolHandler_ERROR_HTTP_STATUS_MSG, String.valueOf(method.getStatusCode()), error), null));

          throw new ConnectionException(Activator.getDefault().createErrorStatus(NLS.bind(Messages.DefaultProtocolHandler_ERROR_HTTP_STATUS, String.valueOf(method.getStatusCode())), null));
        }

        /* In case the Feed has not been modified since */
        if (method.getStatusCode() == HTTP_STATUS_NOT_MODIFIED)
          throw new NotModifiedException(Activator.getDefault().createInfoStatus(Messages.DefaultProtocolHandler_INFO_NOT_MODIFIED_SINCE, null));

        /* In case response body is not available */
        if (inS == null)
          throw new ConnectionException(Activator.getDefault().createErrorStatus(Messages.DefaultProtocolHandler_ERROR_STREAM_UNAVAILABLE, null));

        /* Check wether a Progress Monitor is provided to support early cancelation */
        IProgressMonitor monitor = null;
        if (properties != null && properties.containsKey(IConnectionPropertyConstants.PROGRESS_MONITOR))
          monitor = (IProgressMonitor) properties.get(IConnectionPropertyConstants.PROGRESS_MONITOR);
    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.