Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting java.lang.IllegalAccessException:

 
Raja Mirrah
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic