• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.el.ELException: java.lang.IllegalAccessError  RSS feed

 
Arash Babak
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When i change this:

To this:

I get this error:

javax.el.ELException: java.lang.IllegalAccessError: tried to access class User.UserExistsException from class com.sun.proxy.$Proxy108
Appreciate in advance.

This is register method of RegistrationBacking class:

And registerUser method of UserManager class (implements UserManagerLocal interface)



Web Server: Apache TomEE Web Profile 1.7.0
Framework: JSF
Libraries: PrimeFaces 5.0, Eclipselink 2.5, Myfaces 2.2.4
Platform : JDK 1.8
IDE: Netbeans 8.0




There are questions similar to this here, but didn't helped me. Can anybody tells me why i get this error?

Appreciate in advance.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably because you didn't declare UserException class as "public".

Note: package names should not contain uppercase characters. Some tools might be offended.
 
Arash Babak
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much.
I'm sorry, my blunder again. (Actually, I should blame Netbeans; It made UserException class. :) ) I think, i'm getting old. :(
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!