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 | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

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

    Oracle Community | 10 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 12 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