Examples of NetworkException


Examples of com.sun.sgs.impl.service.data.store.NetworkException

      }
      server.prepareAndCommit(txnInfo.tid);
      threadTxnInfo.set(null);
      decrementTxnCount();
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.NetworkException

    }
      }
      threadTxnInfo.set(null);
      decrementTxnCount();
  } catch (IOException e) {
      throw new NetworkException("", e);
  }
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.NetworkException

                 String operation)
    {
  if (e instanceof NetworkException) {
      /* Include the operation in the message */
      Throwable cause = e.getCause();
      e = new NetworkException(
    operation + " failed due to a communication problem: " +
    cause.getMessage(), cause);
  } else if (e instanceof TransactionNotActiveException && txn != null) {
      /*
       * If the transaction is not active on the server, then it may have
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.NetworkException

    protected int getClassIdInternal(Transaction txn, byte[] classInfo) {
  contextMap.join(txn);
  try {
      return server.getClassId(classInfo);
  } catch (IOException e) {
      throw new NetworkException(e.getMessage(), e);
  }
    }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.NetworkException

    throw new ClassInfoNotFoundException(
        "No information found for class ID " + classId);
      }
      return result;
  } catch (IOException e) {
      throw new NetworkException(e.getMessage(), e);
  }
    }
View Full Code Here

Examples of com.taobao.metamorphosis.exception.NetworkException

        }
        catch (final InterruptedException e) {
            throw e;
        }
        catch (final Exception e) {
            throw new NetworkException("failed to query offset form " + masterServerUrl + ",topic=" + topic
                + ",partition=" + partition.getPartition(), e);
        }
    }
View Full Code Here

Examples of org.jnode.driver.net.NetworkException

    public void setAuthenticationMode(AuthenticationMode mode) throws NetworkException {
        try {
            getWirelessCore().setAuthenticationMode(mode);
        } catch (DriverException ex) {
            log.debug("setAuthenticationMode failed", ex);
            throw new NetworkException(ex);
        }
    }
View Full Code Here

Examples of org.jnode.driver.net.NetworkException

    public void setESSID(String essid) throws NetworkException {
        try {
            getWirelessCore().setESSID(essid);
        } catch (DriverException ex) {
            log.debug("setESSID failed", ex);
            throw new NetworkException(ex);
        }
    }
View Full Code Here

Examples of org.jnode.driver.net.NetworkException

                public Object run() throws IOException {
                    // Get the API.
                    try {
                        api = device.getAPI(NetDeviceAPI.class);
                    } catch (ApiNotFoundException ex) {
                        throw new NetworkException("Device is not a network device", ex);
                    }
                    configureDevice(device.getId(), api.getAddress());
                    return null;
                }
            });
View Full Code Here

Examples of org.jnode.driver.net.NetworkException

        final IPv4ConfigurationService cfg;
        try {
            cfg = InitialNaming.lookup(IPv4ConfigurationService.NAME);
        } catch (NameNotFoundException ex) {
            throw new NetworkException(ex);
        }
        BOOTPHeader hdr = msg.getHeader();
        cfg.configureDeviceStatic(device, new IPv4Address(hdr
                .getYourIPAddress()), null, false);
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.