Package java.net

Examples of java.net.PortUnreachableException


    } else if (exception instanceof NoRouteToHostException) {
      return (NoRouteToHostException)new NoRouteToHostException(
           "Call to " + addr + " failed on NoRouteToHostException exception: "
                      + exception).initCause(exception);
    } else if (exception instanceof PortUnreachableException) {
      return (PortUnreachableException)new PortUnreachableException(
           "Call to " + addr + " failed on PortUnreachableException exception: "
                      + exception).initCause(exception);
    } else {
      return (IOException)new IOException(
           "Call to " + addr + " failed on local exception: " + exception)
View Full Code Here


        UIMAFramework.getLogger(this.getClass()).logrb(Level.SEVERE, this.getClass().getName(),
                "initialize", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,
                "UIMA_CPM_vns_port_not_available__SEVERE",
                new Object[] { Thread.currentThread().getName(), String.valueOf(vnsPort) });

        throw new PortUnreachableException("Unable to aquire a port for VNS Service");
      }
      if (!vnsPortAvailable) {
        vnsPort++;
      }
      currentRetryCount++;
View Full Code Here

      // Check port availability
      portAvailable = isAvailable(onport);
      // In case ports are not available break out of the loop having tried 4 times
      // to acquire any of the ports in configured range
      if (retryCount > 3) {
        throw new PortUnreachableException(
                "Unable to aquire any of the ports in configured range:[" + startport + ".."
                        + maxport + "]");
      }
    }
    return onport;
View Full Code Here

                    new Object[] { Thread.currentThread().getName(), String.valueOf(vnsPort) });
          }
          vnsPortAvailable = isAvailable(vnsPort);

          if (currentRetryCount > 100) {
            throw new PortUnreachableException("Unable to aquire a port for VNS Service");
          }
          if (!vnsPortAvailable) {
            vnsPort++;
          }
          currentRetryCount++;
View Full Code Here

        UIMAFramework.getLogger(this.getClass()).logrb(Level.SEVERE, this.getClass().getName(),
                "initialize", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,
                "UIMA_CPM_vns_port_not_available__SEVERE",
                new Object[] { Thread.currentThread().getName(), String.valueOf(vnsPort) });

        throw new PortUnreachableException("Unable to aquire a port for VNS Service");
      }
      if (!vnsPortAvailable) {
        vnsPort++;
      }
      currentRetryCount++;
View Full Code Here

      // Check port availability
      portAvailable = isAvailable(onport);
      // In case ports are not available break out of the loop having tried 4 times
      // to acquire any of the ports in configured range
      if (retryCount > 3) {
        throw new PortUnreachableException(
                "Unable to aquire any of the ports in configured range:[" + startport + ".."
                        + maxport + "]");
      }
    }
    return onport;
View Full Code Here

        log.trace("show connect stack trace for debug", new Exception("DEBUG USAGE"));
      }
      if (status == NginxClojureAsynSocket.NGX_HTTP_CLOJURE_SOCKET_ERR_RESOLVE) {
        throw new NoRouteToHostException(as.buildError(status));
      }else if (status == NginxClojureAsynSocket.NGX_HTTP_CLOJURE_SOCKET_ERR_CONNECT) {
        throw new PortUnreachableException(as.buildError(status));
      }else if (status != NginxClojureAsynSocket.NGX_HTTP_CLOJURE_SOCKET_OK) {
        throw new ConnectException(as.buildError(status));
      }
      if (log.isDebugEnabled()) {
        log.debug("socket#%d: yield on connect", as.s);
View Full Code Here

   if (isSocketErrAddrNotAvail0(res) != 0)
    throw new BindException(message);
   if (isSocketErrHostUnreach0(res) != 0)
    throw new NoRouteToHostException(message);
   if (isSocketErrResetConn0(res) != 0)
    throw new PortUnreachableException(message);
   throw new SocketException(message);
  }
}
View Full Code Here

    } else if (exception instanceof NoRouteToHostException) {
      return (NoRouteToHostException)new NoRouteToHostException(
           "Call to " + addr + " failed on NoRouteToHostException exception: "
                      + exception).initCause(exception);
    } else if (exception instanceof PortUnreachableException) {
      return (PortUnreachableException)new PortUnreachableException(
           "Call to " + addr + " failed on PortUnreachableException exception: "
                      + exception).initCause(exception);
    } else if (exception instanceof EOFException) {
        return (EOFException)new EOFException(
             "Call to " + addr + " failed on EOFException exception: "
View Full Code Here

TOP

Related Classes of java.net.PortUnreachableException

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.