I am getting nested exception java.lang.IllegalAccessError: tried to access field wt.method.MethodContext.sessionContext. my code snippet looks like
try {
MethodContextmethodcontext = MethodContext.getContext();
if (methodcontext != null && methodcontext.sessionContext != null
&& methodcontext.sessionContext.toString().contains("authenticationName")){
return SessionHelper.manager.getPrincipal().getName();
} else {
return EMPTY_STRING;
}
} catch (Exception e) {
return EMPTY_STRING;
}
methodcontext.sessionContextgetting an error so couldn't even catch it, it is terminating flow of execution, I check the Apache Conf settings and all looks good. The logged in user is in session just getting an error on sessionContext. Any help around it would be appreciated.