cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new Content Dialog causes IllegalAccessError

lieu2
Champ in-the-making
Champ in-the-making
Can someone tell me why I cannot access the Dictionary Service when my DmiAddContentDialog extends org.alfresco.web.bean.content.AddContentDialog.
So the hierarchy looks like:
java.lang.Object
  extended by org.alfresco.web.bean.dialog.BaseDialogBean
      extended by org.alfresco.web.bean.wizard.BaseWizardBean
          extended by org.alfresco.web.bean.content.BaseContentWizard
              extended by org.alfresco.web.bean.content.AddContentDialog
All Implemented Interfaces:
    java.io.Serializable, IDialogBean, IWizardBean


Caused by: java.lang.IllegalAccessError: tried to access field org.alfresco.web.bean.dialog.BaseDialogBean.dictionaryService from class com.mycompany.alfresco.web.bean.content.custom.DmiAddContentDialog
at
com.mycompany.alfresco.web.bean.content.custom.DmiAddContentDialog.getReferences(DmiAddContentDialog.java:85)
… 94 more
1 REPLY 1

amitabhandari1
Champ in-the-making
Champ in-the-making
Hi lieu2,

Can you please attache the code of  defining your bean.  Also ,  put the complete code of "DmiAddContentDialog " bean , I want to check how you are accessig dictionaryService object.
Try defining DictionaryService in your  custom bean.

Thanks,