Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: IllegalAccessError while accessing sessionContext object.

$
0
0

Jess, my intention is to check if any valid user is present in session(sessionContext) before accessing Principal to avoid null pointers, PTC told us that the sessionContext field in MethodContext has been made private in 10.2 M010 version, but we can access same by using  public getter method. so instead methodContext.sessionContext we have to access session by calling this methodContext.getSessionContext(). Thanks for your help!


Viewing all articles
Browse latest Browse all 8876

Trending Articles



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