java.lang.IllegalAccessException: Class com.cc.applet.util.ServiceConfiguration can not access a member of class com.cc.util.error.codes.SendMessageErrorCodes with modifiers "public static final"

Oracle Community | 843798 | 9 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

    trying to acces the value of a public static final int using reflection

    Oracle Community | 9 years ago | 843798
    java.lang.IllegalAccessException: Class com.cc.applet.util.ServiceConfiguration can not access a member of class com.cc.util.error.codes.SendMessageErrorCodes with modifiers "public static final"

  1. dmitry 1 times, last 9 months ago

Root Cause Analysis

  1. java.lang.IllegalAccessException

    Class com.cc.applet.util.ServiceConfiguration can not access a member of class com.cc.util.error.codes.SendMessageErrorCodes with modifiers "public static final"

    at sun.reflect.Reflection.ensureMemberAccess()
  2. Java RT
    Field.getInt
    1. sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
    2. java.lang.reflect.Field.doSecurityCheck(Unknown Source)
    3. java.lang.reflect.Field.getFieldAccessor(Unknown Source)
    4. java.lang.reflect.Field.getInt(Unknown Source)
    4 frames