Package org.eclipse.jdi.internal.jdwp

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


      case JdwpReplyPacket.TYPE_MISMATCH:
        throw new InvalidTypeException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ClassNotLoadedException(type().name());
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
    } finally {
      handledJdwpRequest();
    }
View Full Code Here


    }
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_SOURCE_FILE, this);
      if (replyPacket.errorCode() == JdwpReplyPacket.ABSENT_INFORMATION) {
        throw new AbsentInformationException(
            JDIMessages.ReferenceTypeImpl_Source_name_is_not_known_7);
      }

      defaultReplyErrorHandler(replyPacket.errorCode());
View Full Code Here

      if (replyPacket.errorCode() == JdwpReplyPacket.ABSENT_INFORMATION) {
        throw new AbsentInformationException(
            JDIMessages.ReferenceTypeImpl_Source_name_is_not_known_7);
      }

      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      fSourceName = readString("source name", replyData); //$NON-NLS-1$
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
View Full Code Here

    if (virtualMachineImpl().isJdwpVersionGreaterOrEqual(1, 5)) {
      initJdwpRequest();
      try {
        JdwpReplyPacket replyPacket = requestVM(
            JdwpCommandPacket.RT_SIGNATURE_WITH_GENERIC, this);
        defaultReplyErrorHandler(replyPacket.errorCode());
        DataInputStream replyData = replyPacket.dataInStream();
        setSignature(readString("signature", replyData)); //$NON-NLS-1$
        fGenericSignature = readString("generic signature", replyData); //$NON-NLS-1$
        if (fGenericSignature.length() == 0) {
          fGenericSignature = null;
View Full Code Here

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

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_INSTANCES, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_OBJECT:
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ObjectCollectedException(
            JDIMessages.class_or_object_not_known);
      case JdwpReplyPacket.NOT_IMPLEMENTED:
View Full Code Here

        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$
      if (max > 0 && elements > max) {
        elements = max;
View Full Code Here

      DataOutputStream outData = new DataOutputStream(outBytes);
      getRefTypeID().write(outData);

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_CLASS_VERSION, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_CLASS:
      case JdwpReplyPacket.INVALID_OBJECT:
        throw new ObjectCollectedException(
            JDIMessages.class_or_object_not_known);
      case JdwpReplyPacket.ABSENT_INFORMATION:
View Full Code Here

        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$
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
View Full Code Here

      DataOutputStream outData = new DataOutputStream(outBytes);
      getRefTypeID().write(outData);

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_CLASS_VERSION, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_CLASS:
      case JdwpReplyPacket.INVALID_OBJECT:
        throw new ObjectCollectedException(
            JDIMessages.class_or_object_not_known);
      case JdwpReplyPacket.ABSENT_INFORMATION:
View Full Code Here

        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();
      readInt("major version", replyData); //$NON-NLS-1$
      return readInt("minor version", replyData); //$NON-NLS-1$
    } catch (IOException e) {
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.