Package com.sun.jdi

Examples of com.sun.jdi.InvalidTypeException


          JdwpCommandPacket.CT_INVOKE_METHOD, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_METHODID:
        throw new IllegalArgumentException();
      case JdwpReplyPacket.TYPE_MISMATCH:
        throw new InvalidTypeException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ClassNotLoadedException(name());
      case JdwpReplyPacket.INVALID_THREAD:
        throw new IncompatibleThreadStateException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
View Full Code Here


          JdwpCommandPacket.CT_NEW_INSTANCE, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_METHODID:
        throw new IllegalArgumentException();
      case JdwpReplyPacket.TYPE_MISMATCH:
        throw new InvalidTypeException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ClassNotLoadedException(name());
      case JdwpReplyPacket.INVALID_THREAD:
        throw new IncompatibleThreadStateException();
      case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
View Full Code Here

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.CT_SET_VALUES, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.TYPE_MISMATCH:
        throw new InvalidTypeException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ClassNotLoadedException(name());
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
    } catch (IOException e) {
View Full Code Here

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.AR_SET_VALUES, outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.TYPE_MISMATCH:
        throw new InvalidTypeException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new ClassNotLoadedException(type().name());
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
    } catch (IOException e) {
View Full Code Here

      }
      if (valueType instanceof VoidType && type instanceof VoidType) {
        return (VoidValueImpl) value;
      }
    }
    throw new InvalidTypeException(
        MessageFormat
            .format(JDIMessages.ValueImpl_Type_of_the_value_not_compatible_with_the_expected_type__1,
                new Object[] {
                    value != null ? value.type().name()
                        : "null", type.name() })); //$NON-NLS-1$
View Full Code Here

          }
        }
      }
    }

    throw new InvalidTypeException(
        MessageFormat
            .format(JDIMessages.ValueImpl_Type_of_the_value_not_compatible_with_the_expected_type__1,
                new Object[] { valueType.name(), type.name() }));
  }
View Full Code Here

      if (valueTypeSignature == 'B') {
        return new ShortValueImpl(vm, new Short(value.shortValue()));
      }
      break;
    }
    throw new InvalidTypeException(
        MessageFormat
            .format(JDIMessages.ValueImpl_Type_of_the_value_not_compatible_with_the_expected_type__1,
                new Object[] { valueType.name(), type.name() }));
  }
View Full Code Here

            JDIMessages.ThreadReferenceImpl_thread_cannot_force_native_method);
      case JdwpReplyPacket.NO_MORE_FRAMES:
        throw new InvalidStackFrameException(
            JDIMessages.ThreadReferenceImpl_thread_no_stackframes);
      case JdwpReplyPacket.TYPE_MISMATCH:
        throw new InvalidTypeException(
            JDIMessages.ThreadReferenceImpl_incapatible_return_type);
      case JdwpReplyPacket.VM_DEAD:
        throw new VMDisconnectedException(JDIMessages.vm_dead);
      }
      defaultReplyErrorHandler(reply.errorCode());
View Full Code Here

          outBytes);
      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      case JdwpReplyPacket.INVALID_CLASS:
        throw new InvalidTypeException(
            JDIMessages.ThreadReferenceImpl_Stop_argument_not_an_instance_of_java_lang_Throwable_in_the_target_VM_7);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
View Full Code Here

      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);
      case JdwpReplyPacket.INVALID_THREAD:
        throw new IncompatibleThreadStateException();
View Full Code Here

TOP

Related Classes of com.sun.jdi.InvalidTypeException

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.