[ 
https://issues.apache.org/jira/browse/SHIRO-362?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jason.huewk updated SHIRO-362:
------------------------------

    Comment: was deleted

(was: Hi Les, 

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 ? 

init-method.txt attachment 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 you provide me some advice / suggestion . Thanks .

Jason Hue 

)
    
> UnavailableSecurityManagerException
> -----------------------------------
>
>                 Key: SHIRO-362
>                 URL: https://issues.apache.org/jira/browse/SHIRO-362
>             Project: Shiro
>          Issue Type: Question
>          Components: Configuration, Integration: Spring, Subject, Web
>            Reporter: jason.huewk
>
> i struggle for the error quite long already, i call to init() via spring's
> init-method for DAO call.
> The error missing if remove the spring's init-method or remove the DAO call. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to