cancel
Showing results for 
Search instead for 
Did you mean: 

IllegalAccessError

vincent-kali
Star Contributor
Star Contributor
Hi all,

I'm developping an alresco module using two different packages, let say package A and B.
I'm using Spring injection to make use of methods from A in B package.
Alfresco starts successfully, and class are correctly loaded.
But when calling a method in package A from B, i get following
error:
java.lang.IllegalAccessError: tried to access method….
Method and class are scoped as public.

Could somebody help ?
Sorry for this dummy question….

Vincent




2 REPLIES 2

krutik_jayswal
Elite Collaborator
Elite Collaborator
can you please share your code?

Regards,
Krutik Jayswal
Alfresco Developer

For information , I moved all classes in the same package and problem is fixed.
Is there any limitation/constraints to consider when calling a call method from an external package ?

Thanks,
Vincent