Spring启动时报异常:No String constructor found on type [java.lang.reflect.Method]
来源:互联网 发布:创龙传 大众软件 编辑:程序博客网 时间:2024/05/16 23:01
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
- OpenGL 输出中文 英文 数字
- main方法中编写匿名内部类实现空字符串的去除
- android View的布局宽高之LayoutInflater函数详解
- Xcode模拟器存放文件位置
- 读改善java程序的151个建议(3)
- Spring启动时报异常:No String constructor found on type [java.lang.reflect.Method]
- 求整数n的二进制形式
- NYOJ 228 士兵杀敌(五)
- 特效1 闪光字体(适应于启动页)
- Android-设置PullToRefresh下拉刷新样式
- 你以为你是谁?
- 普通程序员的出路在哪里?
- 搭一个银行系统框架
- Collecting Bugs+POJ 2096+概率期望dp