Package org.eclipse.jdi.internal.jdwp

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.errorCode()


                                // types
      }

      JdwpReplyPacket reply = requestVM(
          JdwpCommandPacket.VM_REDEFINE_CLASSES, outBytes);
      switch (reply.errorCode()) {
      case JdwpReplyPacket.UNSUPPORTED_VERSION:
        throw new UnsupportedClassVersionError();
      case JdwpReplyPacket.INVALID_CLASS_FORMAT:
        throw new ClassFormatError();
      case JdwpReplyPacket.CIRCULAR_CLASS_DEFINITION:
View Full Code Here


            JDIMessages.VirtualMachineImpl_Class_modifiers_change_not_implemented_5);
      case JdwpReplyPacket.METHOD_MODIFIERS_CHANGE_NOT_IMPLEMENTED:
        throw new UnsupportedOperationException(
            JDIMessages.VirtualMachineImpl_Method_modifiers_change_not_implemented_6);
      default:
        defaultReplyErrorHandler(reply.errorCode());
      }
    } catch (IOException ioe) {
      defaultIOExceptionHandler(ioe);
      return;
    } finally {
View Full Code Here

      DataOutputStream outData = new DataOutputStream(outBytes);
      writeString(stratum, "stratum ID", outData); //$NON-NLS-1$

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.VM_SET_DEFAULT_STRATUM, outBytes);
      defaultReplyErrorHandler(replyPacket.errorCode());

    } catch (IOException e) {
      defaultIOExceptionHandler(e);
    } finally {
      handledJdwpRequest();
View Full Code Here

        ((ReferenceTypeImpl) refTypes.get(i)).getRefTypeID().write(
            outData);
      }
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.VM_INSTANCE_COUNTS, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_CLASS:
      case JdwpReplyPacket.INVALID_OBJECT:
        throw new ObjectCollectedException(
            JDIMessages.class_or_object_not_known);
      case JdwpReplyPacket.ILLEGAL_ARGUMENT:
View Full Code Here

        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$
      if (counts != size) {
        throw new InternalError(JDIMessages.VirtualMachineImpl_3);
View Full Code Here

    // Note that this information should not be cached.
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.CLR_VISIBLE_CLASSES, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      List<ReferenceType> elements = new ArrayList<ReferenceType>(nrOfElements);
      for (int i = 0; i < nrOfElements; i++) {
        ReferenceTypeImpl elt = ReferenceTypeImpl.readWithTypeTag(this, replyData);
View Full Code Here

      fVerboseWriter.println("id", reply.getId()); //$NON-NLS-1$
      fVerboseWriter.println(
          "flags", reply.getFlags(), JdwpPacket.getFlagMap()); //$NON-NLS-1$
      fVerboseWriter
          .println(
              "error code", reply.errorCode(), JdwpReplyPacket.errorMap()); //$NON-NLS-1$
    }

    return reply;
  }
View Full Code Here

  public void disableCollection() {
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.OR_DISABLE_COLLECTION, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
    } finally {
      handledJdwpRequest();
    }
  }
View Full Code Here

  public void enableCollection() {
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.OR_ENABLE_COLLECTION, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
    } finally {
      handledJdwpRequest();
    }
  }
View Full Code Here

    // Note that this information should not be cached.
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.OR_MONITOR_INFO, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new IncompatibleThreadStateException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException();
      }
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.