Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4407697

HotSpot Virtual Machine Error, Internal Error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.3.0
    • hotspot
    • sparc
    • solaris_8



      Name: yyT116575 Date: 01/24/2001


      JavaVM args:
          Version 0x00010002, ignoreUnrecognized is JNI_TRUE, nOptions is 2
      #
      # HotSpot Virtual Machine Error, Internal Error
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Error ID: 5448524541442C4F43414C33544F524147450E435050002B FF
      #
      # Problematic Thread: prio=5 tid=0x8d938 nid=0x4 runnable
      #
      Abort(coredump)


      #include "jni.h"

      int main(int argc, char *argv[], char **envp) {
        JavaVMOption options[2];
        JavaVMInitArgs vm_args;
        JavaVM *jvm;
        JNIEnv *env;
        long result;
        jmethodID mid;
        jfieldID fid;
        jobject jobj;
        jclass cls;
        int i, asize;

        options[0].optionString = ".";
        options[1].optionString = "-Djava.compiler=NONE";
        options[2].optionString = "-verbose:jni";

      /*
        vm_args.version = 0x00010003;
      */ vm_args.version = JNI_VERSION_1_2;
        vm_args.options = options;
        vm_args.nOptions = 2;
        vm_args.ignoreUnrecognized = JNI_TRUE ;

         if (1) {
              int i = 0;
              printf("JavaVM args:\n ");
              printf("Version 0x%08lx, ", vm_args.version);
              printf("ignoreUnrecognized is %s, ",
                     vm_args.ignoreUnrecognized ? "JNI_TRUE" : "JNI_FALSE");
              printf("nOptions is %ld\n", vm_args.nOptions);
              /*for (i = 0; i < 2 ; i++)
                  printf(" option[%2d] = '%s'\n",
                         i, vm_args.options[i].optionString);*/
          }

        result = JNI_CreateJavaVM(
                   &jvm,(void **)&env, &vm_args);
        if(result == JNI_ERR ) {
          printf("Error invoking the JVM");
              return 1;
        }



       cls = env->FindClass("com.kivasoft.engine.Engine");
        if( cls == NULL ) {
          printf("can't find class com.kivasoft.engine.Engine\n");
              return 1 ;
        }
        env->ExceptionClear();
        mid=env->GetMethodID( cls, "<init>", "()V");
        jobj=env->NewObject( cls, mid);
        fid=env->GetFieldID( cls, "arraySize", "I");
        asize=env->GetIntField( jobj, fid);

        printf("size of array is %d",asize);
        jvm->DestroyJavaVM();
      }
      (Review ID: 115681)
      ======================================================================

            dwallmansunw David Wallman (Inactive)
            yyoungsunw Yung-ching Young (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: