java.lang.UnsupportedOperationException: This method is in the sun.* namespace so it is not a supported, public interface. The 7u40 release notes describe a temporary mechanism to reenable the historical functionality of this method. Update code to function properly and this method will be removed without further warning in a subsequent 7 update release.

QOS.ch JIRA | Gili | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    {{PackagingDataCalculator}} prints the following exception during initialization when running under Java 7 update 40: {code} java.lang.UnsupportedOperationException: This method is in the sun.* namespace so it is not a supported, public interface. The 7u40 release notes describe a temporary mechanism to reenable the historical functionality of this method. Update code to function properly and this method will be removed without further warning in a subsequent 7 update release. at sun.reflect.Reflection.getCallerClass(Reflection.java:71) at ch.qos.logback.classic.spi.PackagingDataCalculator.<clinit>(PackagingDataCalculator.java:42) at ch.qos.logback.classic.spi.ThrowableProxy.getPackagingDataCalculator(ThrowableProxy.java:135) at ch.qos.logback.classic.spi.ThrowableProxy.calculatePackagingData(ThrowableProxy.java:144) at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:127) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:447) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:403) at ch.qos.logback.classic.Logger.debug(Logger.java:526) {code} The exception occurs in the static initializer of {{PackagingDataCalculator}} when trying to determine whether the host JVM supports {{Reflection#getCallerClass()}}. Currently, the initializer prints uncaught exceptions (in this case, {{UnsupportedOperationException}}), but logback continues to function properly. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8014925 for more information about the removal of {{Reflection#getCallerClass()}} from Java.

    QOS.ch JIRA | 4 years ago | Gili
    java.lang.UnsupportedOperationException: This method is in the sun.* namespace so it is not a supported, public interface. The 7u40 release notes describe a temporary mechanism to reenable the historical functionality of this method. Update code to function properly and this method will be removed without further warning in a subsequent 7 update release.
  2. 0

    {{PackagingDataCalculator}} prints the following exception during initialization when running under Java 7 update 40: {code} java.lang.UnsupportedOperationException: This method is in the sun.* namespace so it is not a supported, public interface. The 7u40 release notes describe a temporary mechanism to reenable the historical functionality of this method. Update code to function properly and this method will be removed without further warning in a subsequent 7 update release. at sun.reflect.Reflection.getCallerClass(Reflection.java:71) at ch.qos.logback.classic.spi.PackagingDataCalculator.<clinit>(PackagingDataCalculator.java:42) at ch.qos.logback.classic.spi.ThrowableProxy.getPackagingDataCalculator(ThrowableProxy.java:135) at ch.qos.logback.classic.spi.ThrowableProxy.calculatePackagingData(ThrowableProxy.java:144) at ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:127) at ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:447) at ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:403) at ch.qos.logback.classic.Logger.debug(Logger.java:526) {code} The exception occurs in the static initializer of {{PackagingDataCalculator}} when trying to determine whether the host JVM supports {{Reflection#getCallerClass()}}. Currently, the initializer prints uncaught exceptions (in this case, {{UnsupportedOperationException}}), but logback continues to function properly. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8014925 for more information about the removal of {{Reflection#getCallerClass()}} from Java.

    QOS.ch JIRA | 4 years ago | Gili
    java.lang.UnsupportedOperationException: This method is in the sun.* namespace so it is not a supported, public interface. The 7u40 release notes describe a temporary mechanism to reenable the historical functionality of this method. Update code to function properly and this method will be removed without further warning in a subsequent 7 update release.

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      This method is in the sun.* namespace so it is not a supported, public interface. The 7u40 release notes describe a temporary mechanism to reenable the historical functionality of this method. Update code to function properly and this method will be removed without further warning in a subsequent 7 update release.

      at sun.reflect.Reflection.getCallerClass()
    2. Java RT
      Reflection.getCallerClass
      1. sun.reflect.Reflection.getCallerClass(Reflection.java:71)
      1 frame
    3. Logback Classic Module
      Logger.debug
      1. ch.qos.logback.classic.spi.PackagingDataCalculator.<clinit>(PackagingDataCalculator.java:42)
      2. ch.qos.logback.classic.spi.ThrowableProxy.getPackagingDataCalculator(ThrowableProxy.java:135)
      3. ch.qos.logback.classic.spi.ThrowableProxy.calculatePackagingData(ThrowableProxy.java:144)
      4. ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:127)
      5. ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:447)
      6. ch.qos.logback.classic.Logger.filterAndLog_0_Or3Plus(Logger.java:403)
      7. ch.qos.logback.classic.Logger.debug(Logger.java:526)
      7 frames