This content has been marked as final. Show 2 replies
From the Javadoc for IllegalAccessException:1 person found this helpful
'An IllegalAccessException is thrown when an application tries to reflectively create an instance (other than an array), set or get a field, or invoke a method, but the currently executing method does not have access to the definition of the specified class, field, method or constructor.'
The customized class loader needs to have access to that interface, typically by using the current context class loader as its parent.
Thanks a lot for that. I figured, after some fiddling, that the files within the package were being loaded by the current context class loader, and as such, were only publicly accessible to my dynamically generated classes which were being loaded by my custom class loader. All i had to do was make the methods and interfaces i needed public-though this broke some of my design models (i had a neat work around for this though).
Thanks once again.