Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

IllegalAccessError while accessing sessionContext object.

$
0
0

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.


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>