nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframewo
2015-04-20 17:25
225 查看
:WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@5e8d7d{/mm,WebContent}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mmdao' defined in file [E:\eclipse\job\mm\build\classes\config\applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException:
Failed to convert property value of type 'org.springframework.jdbc.core.JdbcTemplate' to required type 'org.springframework.jdbc.core.JdbcTemplate' for property 'jTemplate'; nested exception is java.lang.IllegalStateException: Cannot convert value of type
[org.springframework.jdbc.core.JdbcTemplate] to required type [org.springframework.jdbc.core.JdbcTemplate] for property 'jTemplate': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
-------采用jetty服务器测试项目,报bug. 如果不采用jetty,直接url测试项目就不报bug了。这是为啥呢?
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mmdao' defined in file [E:\eclipse\job\mm\build\classes\config\applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException:
Failed to convert property value of type 'org.springframework.jdbc.core.JdbcTemplate' to required type 'org.springframework.jdbc.core.JdbcTemplate' for property 'jTemplate'; nested exception is java.lang.IllegalStateException: Cannot convert value of type
[org.springframework.jdbc.core.JdbcTemplate] to required type [org.springframework.jdbc.core.JdbcTemplate] for property 'jTemplate': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:530)
-------采用jetty服务器测试项目,报bug. 如果不采用jetty,直接url测试项目就不报bug了。这是为啥呢?
相关文章推荐
- Spring 整合 Flex (BlazeDS)无法从as对象 到 Java对象转换的异常:org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'java.util.Date' to required type 'java.sql.Timestamp' for property 'wfsj'; nested exception is java.lang.Ill
- Request processing failed; nested exception is java.lang.IllegalArgumentException: No converter found for return value of type: class cn.e3mall.pojo.TbItem
- java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy7 implem
- java.lang.IllegalArgumentException: Cannot convert value of type [] to required type [] for property
- java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy0 implementing (解决)
- nested exception is java.lang.IllegalStateException: Cannot forward after response has been committed
- IDEA报错: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'spring.datasource.url' in value "${spring.datasource.url}"
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSONArra
- nested exception is java.lang.IncompatibleClassChangeError: class org.springframework.core.type.clas
- org.json.JSONException: Value java.net.UnknownHostException of type java.lang.String cannot be conv
- 在使用hibernate 和spring 构架的框架中如果出现Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm
- Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener. ...nested exception is java.lang.NoSuchMethodError:
- org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.la
- org.json.JSONException: Value ok of type java.lang.String cannot be converted to JSONObject:
- nested exception is java.lang.IllegalStateException: Ambiguous mapping. Cannot map ***
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSON
- springboot错误 java.lang.IllegalArgumentException:No converter found for return value of type
- org.json.JSONException: Value of type java.lang.String cannot be converted to JSON
- 配置Spring Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource]
- new JSONObject(str)无法解析 报错:org.json.JSONException: Value of type java.lang.String cannot be converted to JSONObject