{"id":451,"date":"2016-04-01T15:14:49","date_gmt":"2016-04-01T13:14:49","guid":{"rendered":"http:\/\/www.ume.li\/blog\/?p=451"},"modified":"2016-04-01T15:16:14","modified_gmt":"2016-04-01T13:16:14","slug":"session-as-signer-note-to-myself","status":"publish","type":"post","link":"https:\/\/www.ume.li\/blog\/2016\/04\/01\/session-as-signer-note-to-myself\/","title":{"rendered":"Session As Signer &#8211; Note to myself"},"content":{"rendered":"<p>If this code returns Null<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\npublic static Session getSessionAsSigner() {\r\n Session sessionAsSigner = null;\r\n try {\r\n  FacesContext context = JSFUtil.getFacesContext();\r\n  sessionAsSigner = (Session) context.getApplication().getVariableResolver().resolveVariable(context,&quot;sessionAsSigner&quot;);\r\n } catch (Exception e) {\r\n Util.logError(e);\r\n }\r\n return sessionAsSigner;\r\n } \r\n<\/pre>\n<p>Then your code might have been signed by different user \/ servers.. Just sign it with your user ID and try again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If this code returns Null public static Session getSessionAsSigner() { Session sessionAsSigner = null; try { FacesContext context = JSFUtil.getFacesContext();<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-451","post","type-post","status-publish","format-standard","hentry","category-domino"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/comments?post=451"}],"version-history":[{"count":4,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/451\/revisions"}],"predecessor-version":[{"id":455,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/451\/revisions\/455"}],"wp:attachment":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/media?parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/categories?post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/tags?post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}