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

Add specific ClassLoader object to Proxy IllegalArgumentException message

XMLWordPrintable

        Created on behalf of Ravali Yatham.

        The IllegalArgumentException message is not showing the ClassLoader object from which the class was not visible. It would be useful to know which specific ClassLoader object was the one from which the class was not visible.

        Caused by: java.lang.IllegalArgumentException: package.ClassName referenced from a method is not visible from class loader
        at java.lang.reflect.Proxy$ProxyBuilder.ensureVisible(Proxy.java:858) ~[?:?]
        at java.lang.reflect.Proxy$ProxyBuilder.validateProxyInterfaces(Proxy.java:681) ~[?:?]
        at java.lang.reflect.Proxy$ProxyBuilder.(Proxy.java:627) ~[?:?]
        at java.lang.reflect.Proxy.lambda$getProxyConstructor$1(Proxy.java:426) ~[?:?]
        at jdk.internal.loader.AbstractClassLoaderValue$Memoizer.get(AbstractClassLoaderValue.java:329) ~[?:?]
        at jdk.internal.loader.AbstractClassLoaderValue.computeIfAbsent(AbstractClassLoaderValue.java:205) ~[?:?]
        at java.lang.reflect.Proxy.getProxyConstructor(Proxy.java:424) ~[?:?]
        at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:1006) ~[?:?]

              tsteele Tyler Steele
              tsteele Tyler Steele
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: