java - IllegalAccess Error JPA -


hey take illegalaccess error, entitymanager

    caused by: java.lang.illegalaccesserror: sessionbean/accounts 

the client starts methode on

public static void main(string args[]) {    sessionbean.connect();   sessionbean.create();   } 

the sessionbean

@override public void create() {     em.persist(new accounts("test", "test")); } 

thrown if application attempts access or modify field, or call method not have access to. normally, error caught compiler; error can occur @ run time if definition of class has incompatibly changed.

you have old copy of accounts.class floating around, or it's defined differently in more 1 jar on runtime classpath.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -