wood burning stoves 2.0*
The moose likes Web Services and the fly likes Getting java.lang.IllegalAccessException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Getting java.lang.IllegalAccessException:" Watch "Getting java.lang.IllegalAccessException:" New topic
Author

Getting java.lang.IllegalAccessException:

Raja Mirrah
Greenhorn

Joined: Jun 23, 2009
Posts: 26
Hi All,

When i tried to get Calendar object from one package and set it as Calendar object to another package i get this below exception.

java.lang.IllegalAccessException: Class com.att.ctp.webSvcs.TestResultsService.server.GetTestResultsTranslator can not access a member of class java.util.Calendar with modifiers "protected">
java.lang.IllegalAccessException: Class com.att.ctp.webSvcs.TestResultsService.server.GetTestResultsTranslator can not access a member of class java.util.Calendar with modifiers "protected"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.Class.newInstance0(Class.java:349)
at java.lang.Class.newInstance(Class.java:308)


Can anyone please help what could be the issue???

Thanks and Regards,


Warm Regards,
Raj
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
If you want some help with this problem, I am afraid that you will have to show us some code.
It is not easy (at least not for me) to guess what could cause the problem.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting java.lang.IllegalAccessException:
 
Similar Threads
Set JavaBean property with set action
accessing protected methods from non-derived classes
Reflection access rules
Instantiate a class from the value of a string
How to set conf file file