Package com.sun.jdi

Examples of com.sun.jdi.VMDisconnectedException


     */
    if (!fGotIDSizes) {
      getIDSizes();
      if (!fGotIDSizes) { // We can't do much without them.
        disconnectVM();
        throw new VMDisconnectedException(
            JDIMessages.VirtualMachineImpl_Failed_to_get_ID_sizes_2);
      }

      // TBD: This call should be moved to addKnownRefType() when it can
      // be made specific
View Full Code Here


            JDIMessages.VirtualMachineImpl_count_less_than_zero);
      case JdwpReplyPacket.NOT_IMPLEMENTED:
        throw new UnsupportedOperationException(
            JDIMessages.ReferenceTypeImpl_27);
      case JdwpReplyPacket.VM_DEAD:
        throw new VMDisconnectedException(JDIMessages.vm_dead);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      int counts = readInt("counts", replyData); //$NON-NLS-1$
View Full Code Here

                  new String[] {
                      getDisconnectException().getClass()
                          .getName(), exMessage });
        }
      }
      throw new VMDisconnectedException(message);
    }

    synchronized (fOutgoingPackets) {
      // Add packet to list of packets to send.
      fOutgoingPackets.add(packet);
View Full Code Here

                  new String[] {
                      getDisconnectException().getClass()
                          .getName(), exMessage });
        }
      }
      throw new VMDisconnectedException(message);
    }
    // Check for a timeout.
    if (packet == null) {
      throw new TimeoutException();
    }
View Full Code Here

        packet = removeReplyPacket(id);
      }
    }
    // Check for an IO Exception.
    if (VMIsDisconnected())
      throw new VMDisconnectedException(
          ConnectMessages.PacketReceiveManager_Got_IOException_from_Virtual_Machine_2);
    // Check for a timeout.
    if (packet == null) {
      synchronized (fTimedOutPackets) {
        fTimedOutPackets.add(new Integer(id));
View Full Code Here

    case JdwpReplyPacket.NOT_IMPLEMENTED:
      throw new UnsupportedOperationException();
    case JdwpReplyPacket.HCR_OPERATION_REFUSED:
      throw new org.eclipse.jdi.hcr.OperationRefusedException();
    case JdwpReplyPacket.VM_DEAD:
      throw new VMDisconnectedException();
    default:
      throw new InternalException(
          JDIMessages.MirrorImpl_Got_error_code_in_reply___1 + error,
          error);
    }
View Full Code Here

   */
  public String getVMName() throws DebugException {
    VirtualMachine vm = getVM();
    if (vm == null) {
      requestFailed(JDIDebugModelMessages.JDIDebugTarget_2,
          new VMDisconnectedException());
    }
    try {
      return vm.name();
    } catch (RuntimeException e) {
      targetRequestFailed(JDIDebugModelMessages.JDIDebugTarget_2, e);
View Full Code Here

            JDIMessages.ReferenceTypeImpl_27);
      case JdwpReplyPacket.ILLEGAL_ARGUMENT:
        throw new IllegalArgumentException(
            JDIMessages.ReferenceTypeImpl_26);
      case JdwpReplyPacket.VM_DEAD:
        throw new VMDisconnectedException(JDIMessages.vm_dead);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      int elements = readInt("element count", replyData); //$NON-NLS-1$
View Full Code Here

   */
  public String getVersion() throws DebugException {
    VirtualMachine vm = getVM();
    if (vm == null) {
      requestFailed(JDIDebugModelMessages.JDIDebugTarget_4,
          new VMDisconnectedException());
    }
    try {
      return vm.version();
    } catch (RuntimeException e) {
      targetRequestFailed(JDIDebugModelMessages.JDIDebugTarget_4, e);
View Full Code Here

        return 0;
      case JdwpReplyPacket.NOT_IMPLEMENTED:
        throw new UnsupportedOperationException(
            JDIMessages.ReferenceTypeImpl_no_class_version_support24);
      case JdwpReplyPacket.VM_DEAD:
        throw new VMDisconnectedException(JDIMessages.vm_dead);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      return readInt("major version", replyData); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of com.sun.jdi.VMDisconnectedException

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.