Package org.eclipse.jdi.internal.jdwp

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


        throw new IncompatibleThreadStateException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException();
      }

      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      MonitorInfo result = new MonitorInfo();
      result.owner = ThreadReferenceImpl.read(this, replyData);
      result.entryCount = readInt("entry count", replyData); //$NON-NLS-1$
View Full Code Here


      this.getObjectID().write(outData);
      writeInt(max, "max referrers", outData); //$NON-NLS-1$

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.OR_REFERRING_OBJECTS, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.NOT_IMPLEMENTED:
        throw new UnsupportedOperationException(
            JDIMessages.ReferenceTypeImpl_27);
      case JdwpReplyPacket.ILLEGAL_ARGUMENT:
        throw new IllegalArgumentException(
View Full Code Here

        throw new ObjectCollectedException(
            JDIMessages.ObjectReferenceImpl_object_not_known);
      case JdwpReplyPacket.VM_DEAD:
        throw new VMDisconnectedException(JDIMessages.vm_dead);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      int elements = readInt("elements", replyData); //$NON-NLS-1$
      if (max > 0 && elements > max) {
        elements = max;
View Full Code Here

        field.write(this, outData);
      }

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

      DataInputStream replyData = replyPacket.dataInStream();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      if (nrOfElements != nonStaticFieldsSize)
        throw new InternalError(
View Full Code Here

      writeInt(optionsToJdwpOptions(options),
          "options", MethodImpl.getInvokeOptions(), outData); //$NON-NLS-1$

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.OR_INVOKE_METHOD, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.TYPE_MISMATCH:
        throw new InvalidTypeException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ClassNotLoadedException(
            JDIMessages.ObjectReferenceImpl_One_of_the_arguments_of_ObjectReference_invokeMethod___6);
View Full Code Here

      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException();
      case JdwpReplyPacket.INVALID_TYPESTATE:
        throw new IncompatibleThreadStateException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      ValueImpl value = ValueImpl.readWithTag(this, replyData);
      ObjectReferenceImpl exception = ObjectReferenceImpl
          .readObjectRefWithTag(this, replyData);
      if (exception != null)
View Full Code Here

    // Note that this information should not be cached.
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.OR_IS_COLLECTED, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_OBJECT:
        return true;
      case JdwpReplyPacket.NOT_IMPLEMENTED:
        // Workaround for problem in J2ME WTK (wireless toolkit)
        // @see Bug 12966
View Full Code Here

        } catch (ObjectCollectedException e) {
          return true;
        }
        return false;
      default:
        defaultReplyErrorHandler(replyPacket.errorCode());
        break;
      }
      DataInputStream replyData = replyPacket.dataInStream();
      boolean result = readBoolean("is collected", replyData); //$NON-NLS-1$
      return result;
View Full Code Here

    }
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.OR_REFERENCE_TYPE, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      fReferenceType = ReferenceTypeImpl.readWithTypeTag(this, replyData);
      return fReferenceType;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
View Full Code Here

        ValueImpl.writeNull(this, outData);
      }

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.OR_SET_VALUES, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.TYPE_MISMATCH:
        throw new InvalidTypeException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ClassNotLoadedException(referenceType().name());
      }
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.