Cannot resolve reference to bean 'captchaEngineEx' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'captchaEngineEx' defined in class path resource [com/jeecms/core/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.ponyjava.common.checkcode.CaptchaEngineEx]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'captchaEngineEx' defined in class path resource [com/jeecms/core/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.ponyjava.common.checkcode.CaptchaEngineEx]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException
Caused by: java.lang.IllegalArgumentException
at java.nio.Buffer.position(Buffer.java:218) [na:1.5.0_16]
at sun.font.TrueTypeFont.lookupName(TrueTypeFont.java:817) [na:1.5.0_16]
at sun.font.TrueTypeFont.getFontName(TrueTypeFont.java:869) [na:1.5.0_16]
at java.awt.Font.getFontName(Font.java:1032) [na:1.5.0_16]
at java.awt.Font.getFontName(Font.java:1014) [na:1.5.0_16]
at com.octo.captcha.component.image.fontgenerator.RandomFontGenerator.generateFontArray(RandomFontGenerator.java:120) [jcaptcha-all-1.0-RC6.jar:na]
at com.octo.captcha.component.image.fontgenerator.RandomFontGenerator.<init>(RandomFontGenerator.java:68) [jcaptcha-all-1.0-RC6.jar:na]
at com.ponyjava.common.checkcode.CaptchaEngineEx.buildInitialFactories(CaptchaEngineEx.java:86) [CaptchaEngineEx.class:na]
at com.octo.captcha.engine.image.ListImageCaptchaEngine.<init>(ListImageCaptchaEngine.java:47) [jcaptcha-all-1.0-RC6.jar:na]
at com.ponyjava.common.checkcode.CaptchaEngineEx.<init>(CaptchaEngineEx.java:56) [CaptchaEngineEx.class:na]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.5.0_16]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) [na:1.5.0_16]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) [na:1.5.0_16]
at java.lang.reflect.Constructor.newInstance(Constructor.java:494) [na:1.5.0_16]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) [spring-beans-2.5.6.jar:2.5.6]
... 57 common frames omitted |
|