i struggle for the error quite some time already. 

 i use init-method  via spring's bean for DAO call. 
The error missing if remove the spring's init-method or remove the DAO call. 

I have few other spring's bean with init-method but do not encounter the
error UnavailableSecurityManagerException. 
I do have LifecycleBeanPostProcessor configured in applicationContext.xml.
If base on the api ,
http://shiro.apache.org/static/current/apidocs/org/apache/shiro/spring/LifecycleBeanPostProcessor.html
  
It warning not to use the init-method with spring's bean. May i know it's
really matter ? 

Basically what i want to achieve is call to DAO after bean initialization
but somehow it give me the error UnavailableSecurityManagerException. 
The error due to thread taken by initialization ? And the call to DAO is
another thread ? 

http://shiro-user.582556.n2.nabble.com/file/n7566226/init-method.txt
init-method.txt  is the init () method. I try to use
SecurityUtils.getSubject() to get obtain the subject and then tie to the
initialization thread and do a call to DAO but SecurityUtils.getSubject()
return me a null value. I have no idea how to solve the problem. 

It will be much appreciate if some one provide me some advice / suggestion .
Thanks . 

Jason Hue


--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/UnavailableSecurityManagerException-for-spring-s-init-method-DAO-call-tp7566226.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to