Package org.eclipse.jdi.internal.jdwp

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


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

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_CONSTANT_POOL, 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_constant_pool_support);
      case JdwpReplyPacket.VM_DEAD:
        throw new VMDisconnectedException(JDIMessages.vm_dead);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      return readInt("pool count", replyData); //$NON-NLS-1$
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
View Full Code Here

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

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_CONSTANT_POOL, 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_constant_pool_support);
      case JdwpReplyPacket.VM_DEAD:
        throw new VMDisconnectedException(JDIMessages.vm_dead);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      readInt("pool count", replyData); //$NON-NLS-1$
      int bytes = readInt("byte count", replyData); //$NON-NLS-1$
      byte[] array = new byte[bytes];
View Full Code Here

    // Note that this information should not be cached.
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.TR_CURRENT_CONTENDED_MONITOR, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException(
            JDIMessages.ThreadReferenceImpl_Thread_was_not_suspended_1);
View Full Code Here

        throw new ObjectCollectedException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException(
            JDIMessages.ThreadReferenceImpl_Thread_was_not_suspended_1);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      ObjectReference result = ObjectReferenceImpl.readObjectRefWithTag(
          this, replyData);
      return result;
View Full Code Here

      } else {
        ValueImpl.writeNullWithTag(this, dataOutStream);
      }
      JdwpReplyPacket reply = requestVM(
          JdwpCommandPacket.TR_FORCE_EARLY_RETURN, byteOutStream);
      switch (reply.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException(
            JDIMessages.ThreadReferenceImpl_thread_object_invalid);
      case JdwpReplyPacket.INVALID_OBJECT:
        throw new ClassNotLoadedException(
View Full Code Here

        throw new InvalidTypeException(
            JDIMessages.ThreadReferenceImpl_incapatible_return_type);
      case JdwpReplyPacket.VM_DEAD:
        throw new VMDisconnectedException(JDIMessages.vm_dead);
      }
      defaultReplyErrorHandler(reply.errorCode());
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
    } finally {
      handledJdwpRequest();
    }
View Full Code Here

    // Note that this information should not be cached.
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.TR_FRAME_COUNT, this);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException(
            JDIMessages.ThreadReferenceImpl_Thread_was_not_suspended_1);
View Full Code Here

        throw new ObjectCollectedException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
        throw new IncompatibleThreadStateException(
            JDIMessages.ThreadReferenceImpl_Thread_was_not_suspended_1);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      int result = readInt("frame count", replyData); //$NON-NLS-1$
      return result;
    } 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.