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

javax/management/mxbean/MXBeanLoadingTest1.java assumes URLClassLoader

XMLWordPrintable

      The javax/management/mxbean/MXBeanLoadingTest1.java test assumes that the application classloader will be a ClassLoader. This is not the case in the jigsaw/jake forest.

      STDOUT:
      MXBeanLoadingTest1::run: Start
      We ensure no reference is retained on MXBean class after it is unregistered. We take time to perform some little extra check of Descriptors, MBean*Info.
      (ERROR) Test's class loader is not a URLClassLoader
      java.lang.RuntimeException: (ERROR) Test's class loader is not a URLClassLoader
      at MXBeanLoadingTest1.run(MXBeanLoadingTest1.java:78)
      at MXBeanLoadingTest1.main(MXBeanLoadingTest1.java:59)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(java.base@9-internal/Thread.java:804)
       class java.lang.RuntimeException==>(ERROR) Test's class loader is not a URLClassLoader
      STDERR:
      java.lang.RuntimeException: java.lang.RuntimeException: (ERROR) Test's class loader is not a URLClassLoader
      at MXBeanLoadingTest1.run(MXBeanLoadingTest1.java:289)
      at MXBeanLoadingTest1.main(MXBeanLoadingTest1.java:59)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(java.base@9-internal/Thread.java:804)
      Caused by: java.lang.RuntimeException: (ERROR) Test's class loader is not a URLClassLoader
      at MXBeanLoadingTest1.run(MXBeanLoadingTest1.java:78)
      ... 7 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: java.lang.RuntimeException: (ERROR) Test's class loader is not a URLClassLoader
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: (ERROR) Test's class loader is not a URLClassLoader

            hb Harsha Wardhana B (Inactive)
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: