AutoProxyするとApplicationContextAwareできないゾ
何でだろう???
SpringでApplicationContextAwareをimplementsしたクラスをBeanNameAutoProxyCreatorでAOPしてるとTypeMismatchExceptionが出て、インスタンスが生成できない。別途インタフェースを持たないロジッククラスだからCGLIBでProxy作るときにApplicationContextAware拾っちゃうのかな????
org.springframework.beans.TypeMismatchException:
Failed to convert property value of type [$Proxy0] to required type
-------省略
しょうがないから呼び出し元をApplicationContextAwareにして手動でセット。orz
#トラックバック先のURLでも書いてあるけどSpringClickServletで、わざわざ自分で設定している(超不思議)のと関係あるのかな?
↑いやいや関係ないから・・・・→俺
http://d.hatena.ne.jp/kvasir/20051208/1133997009
SpringでApplicationContextAwareをimplementsしたクラスをBeanNameAutoProxyCreatorでAOPしてるとTypeMismatchExceptionが出て、インスタンスが生成できない。別途インタフェースを持たないロジッククラスだからCGLIBでProxy作るときにApplicationContextAware拾っちゃうのかな????
org.springframework.beans.TypeMismatchException:
Failed to convert property value of type [$Proxy0] to required type
-------省略
しょうがないから呼び出し元をApplicationContextAwareにして手動でセット。orz
#トラックバック先のURLでも書いてあるけどSpringClickServletで、わざわざ自分で設定している(超不思議)のと関係あるのかな?
↑いやいや関係ないから・・・・→俺
http://d.hatena.ne.jp/kvasir/20051208/1133997009



Comments
Good and usefull info. Thank you for your job here.
Very helpfull information. Thanks.
Nice analitic. Very organic and logic. Bravo!
Very useful information. All loud and clear. That's what I want.
I'm always happy to find some great source of information like this site. Thank you for your job here.
I'm always happy to find some great source of information like this site. Thank you for your job here.
Excellent idea, now I'm not alone in their arguments and can even refer to someone))
This man is really not afraid of anything)) in turn want to offer great topic for discussion
Brilliant idea for share
Congrats, you are a genius, man!
Very usefull and interesting info. Thanks for share.
Hey, have been looking for opinions of people who have tried this out first hand, and after hunting through bing
Add Comment