java.lang.UnsupportedOperationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • {{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.
    via by Gili,
  • {{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.
    via by 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. 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)
    No Bugmate found.