Spring启动时报异常:No String constructor found on type [java.lang.reflect.Method]
来源:互联网 发布:linux下删除ftp用户 编辑:程序博客网 时间:2024/06/06 04:24
原地址:http://blog.csdn.net/cy4ttty/article/details/41317257
spring 配置了一个定时器
<task:scheduled-tasks scheduler="task">
<!--定时查询微信支付失败订单-->
<task:scheduledref="purchase" method="wxDealPayResultTask" cron="0 00/2 * * ?" /><!--0 0 0/2 * * ? -->
</task:scheduled-tasks>
在启动项目时,debug模式的时候报下面的错误,但是不影响功能正常使用,goolge了一下,在stackflow上发先了一个同样的问题,有人回答是这样:
There is noerror. Only a stack trace at debug level where Spring is trying to locate theright constructor for the login success handler (the default has 2 constructorsand only one will match the String provided as an argument, i.e. "/admin/login").You can ignore it or you can switch it off (debug logging at that level is notoften very helpful, and you probably wouldn't want it on in production).希望能给大家帮助
2014-11-20 17:40:43,093 DEBUG[org.springframework.beans.TypeConverterDelegate] - No String constructor foundon type [Java.lang.reflect.Method]
java.lang.NoSuchMethodException:java.lang.reflect.Method.<init>(java.lang.String)
atjava.lang.Class.getConstructor0(Class.java:2810)
atjava.lang.Class.getConstructor(Class.java:1718)
atorg.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:197)
atorg.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:92)
atorg.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:451)
atorg.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:686)
atorg.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
atorg.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
atorg.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
atjava.util.concurrent.FutureTask.run(FutureTask.java:262)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
atjava.lang.Thread.run(Thread.java:744)
2014-11-20 17:40:43,093 DEBUG[org.springframework.beans.TypeConverterDelegate] - Field [wxDealPayResultTask]isn't an enum value
java.lang.NoSuchFieldException: wxDealPayResultTask
atjava.lang.Class.getField(Class.java:1579)
atorg.springframework.beans.TypeConverterDelegate.attemptToConvertStringToEnum(TypeConverterDelegate.java:290)
atorg.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:218)
atorg.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:92)
atorg.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:451)
atorg.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:686)
atorg.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1035)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:939)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
atorg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
atorg.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
atorg.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
atorg.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:670)
atorg.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1839)
atjava.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
atjava.util.concurrent.FutureTask.run(FutureTask.java:262)
atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
atjava.lang.Thread.run(Thread.java:744)
- Spring启动时报异常:No String constructor found on type [java.lang.reflect.Method]
- Spring启动时报异常:No String constructor found on type [java.lang.reflect.Method]
- 异常:Property 'name' not found on type java.lang.String,attribute items does not accept any
- 异常:javax.el.PropertyNotFoundException: Property 'xxx' not found on type java.lang.String
- Spring @Validate 报 :"No validator could be found for type: java.lang.Long" 异常
- No mapping found for dependency [type=java.lang.String, name='struts.objectFactory.spring.autoWire.
- Property 'name' not found on type java.lang.String
- Property 'typeid' not found on type java.lang.String
- Property 'typeid' not found on type java.lang.String
- Property 'XXX' not found on type java.lang.String解决方案
- Property 'XXX' not found on type java.lang.String解决方案
- Property 'id' not found on type java.lang.String问题
- Property 'xx' not found on type java.lang.String问题解决
- Property 'id' not found on type java.lang.String
- Property 'xxx' not found on type java.lang.String
- Property 'XXX' not found on type java.lang.String解决方案
- Property 'id' not found on type java.lang.String
- Property 'pid' not found on type java.lang.String
- yum安装php7.0可以改变yum源
- 单项散列加密
- Debug Assertion Failed! f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\winhand.cpp
- REMOTE_SUBMIX, AUDIO_DEVICE_OUT_REMOTE_SUBMIX, AUDIO_DEVICE_IN_REMOTE_SUBMIX含义
- php变量类型转换
- Spring启动时报异常:No String constructor found on type [java.lang.reflect.Method]
- php借助mcript扩展实现对称加密
- JDBC中的DatabaseMetaData用法
- svn分支管理的使用与经验
- Sencha Touch 和 jQuery Mobile 的比较
- Java中JNI接口
- ruby语言
- PAT乙 1019. 数字黑洞 (20)
- php使用openssl来实现非对称加密