May 28, 2012

javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'XXXXXXX'


I have got an exception some thing like,

javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: cannot instantiate class 'XXXXXXXXXXXXXXXXXXXXXX'
……………………………………………………………………………..
Caused by: java.lang.IllegalAccessException: Class oracle.adfinternal.controller.beans.ManagedBeanFactory can not access a member of class 'XXXXXXXXXXXXXXXXXXXXXX' with modifiers ""


Solution: 


Check the access modifier of the constructor of your class. The access modifier should be “public”, as the class is being instantiated from out of the package.

3 comments:

  1. even when class has public access modifier, error still appear

    ReplyDelete
  2. It should have an public empty constructor

    ReplyDelete
    Replies
    1. Thanks for the hint , it helped me .

      Delete