ssh-SSH整合 前两个service都顺利运行就第三个出错了!为什么

问题描述

SSH整合 前两个service都顺利运行就第三个出错了!为什么

十二月 25, 2014 10:07:48 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'class1Action' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.service.imp.Class1ServiceManage$$EnhancerByCGLIB$$8060316e' to required type 'org.service.Class1Service' for property 'class1Service'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.service.imp.Class1ServiceManage$$EnhancerByCGLIB$$8060316e] to required type [org.service.Class1Service] for property 'class1Service': 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.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4772)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3796)
at org.apache.catalina.startup.HostConfig.reload(HostConfig.java:1304)
at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1287)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1471)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:280)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1142)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1378)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1382)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1350)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.service.imp.Class1ServiceManage$$EnhancerByCGLIB$$8060316e' to required type 'org.service.Class1Service' for property 'class1Service'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.service.imp.Class1ServiceManage$$EnhancerByCGLIB$$8060316e] to required type [org.service.Class1Service] for property 'class1Service': no matching editors or conversion strategy found
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:485)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:516)
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1406)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1365)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
... 26 more
Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.service.imp.Class1ServiceManage$$EnhancerByCGLIB$$8060316e] to required type [org.service.Class1Service] for property 'class1Service': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:241)
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:470)
... 32 more
十二月 25, 2014 10:07:48 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
十二月 25, 2014 10:07:48 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/StuSys_SSH] startup failed due to previous errors
十二月 25, 2014 10:07:48 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
十二月 25, 2014 10:07:48 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
警告: The web application [StuSys_SSH] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
十二月 25, 2014 10:07:48 下午 org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
严重: The web application [StuSys_SSH] created a ThreadLocal with key of type com.microsoft.sqlserver.jdbc.ActivityCorrelator$1 and a value of type com.microsoft.sqlserver.jdbc.ActivityId but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
十二月 25, 2014 10:07:48 下午 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/StuSys_SSH] is completed

前两个service都顺利运行就做第三个service时就出错了!为什么

解决方案

com.microsoft.sqlserver.jdbc.ActivityId
这是要连接sqlserver数据库,是不是缺少Jar包引用

解决方案二:

Cannot convert value of type [org.service.imp.Class1ServiceManage$$EnhancerByCGLIB$$8060316e] to required type [org.service.Class1Service] for property 'class1Service': no matching editors or conversion strategy found、

这边不是说了你类转换不正常了么。。。

解决方案三:

你只贴一段错误代码出来 大家也只能猜测 楼主最好上代码

解决方案四:

appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak.

时间: 2022-11-30

ssh-SSH整合 前两个service都顺利运行就第三个出错了!为什么的相关文章

tomcat启动报错-SSH + Oracle 整合开发 启动服务报错,运行查询操作,没影响

问题描述 SSH + Oracle 整合开发 启动服务报错,运行查询操作,没影响 信息: Initializing Spring root WebApplicationContextlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).log4j:WARN Please initialize the log4j system properly.2013-1

前两月国企主要效益指标增近三成

本报北京3月17日电(记者李丽辉)财政部今天公布了今年前两月全国国有及国有控股企业经济运行情况.1-2月,全国国有及国有控股企业主要效益指标保持较快增长,利润增幅高于营业总收入增幅,企业效益持续好转.国有企业累计实现营业总收入51402.3亿元, 同比增长26.4%:累计实现利润总额3316.5亿元,同比增长29.4%.

SSH的整合

我发表下SSH的整合,为了我能更好地记住. struts2和hibernate的配置我这里就不多说了,先把两个有关的东西说下.一个是所有的包.struts2+hibernate3+spring2.5我包准备放上去给大家下载. http://pan.baidu.com/share/link?shareid=3160001548&uk=3307409781 放在的我百度云盘里面 闲话不说:开始. 先是struts2和hibernate的配置 web.xml: <?xml version=&quo

ssh整合-SSH框架整合 Linux平台转移到windows平台

问题描述 SSH框架整合 Linux平台转移到windows平台 在做SSH框架整合时,所有的包都导入了并且运行正常,但不知道为什移到windows上就报错 : Cannot find class [com.mchange.v2.c3p0.CombopooledDataSource] for bean with name 'dataSource' defined in class path resource [applicationContext-ds.xml]; 注:这个项目是在老师的wind

ssh框架-SSH框架整合的注册登陆例子,hql老是报错。注册可以运行,求大侠解救

问题描述 SSH框架整合的注册登陆例子,hql老是报错.注册可以运行,求大侠解救 这个是登陆源码 public boolean loginObject(User user) throws HibernateException{ System.out.println("6666666666666"); //String hql=("from User u where?u.username=? and u.password=?",user.getUsername(),u

git使用ssh密钥和https两种认证方式汇总(转)

在版本库的SSH方式和HTTPS方式是不同的,具体来说就是url信息的不同,但是,实际的认证机制也是不同的.当建立了本机密钥之后,使用ssh方式实际上是不需要再次认证的,而https则每次需要输入密码 .<Help.GitHub - SSH key passphrases>里也说了用SSH更方便更安全,不需要去输入长长的密码. 我去看了下repo目录下的.git/config,果然,我的url是HTTPS形式. 1 2 3 [remote "origin"] fetch =

我的一个SSH简单整合,启动tomcat时报错,如error文档内容所示,请教指点

问题描述 我的一个SSH简单整合,启动tomcat时报错,如:error文档 内容所示,请教指点,项目源代码及项目结构图都在压缩包中,随时等候佳音,谢谢了-- 解决方案 你的UesrBean.hbm.xml的路径写错了不是<class name="com.bean.UserBean" table="users">而是<class name="com.bean.user.UserBean" table="users&qu

JBPM4.4与SSH框架整合之后,启动Tomcat6.0之后,一直在查询JBPM4_JOB

问题描述 JBPM4.4与SSH框架整合之后,启动Tomcat6.0之后,一直在查询JBPM4_JOB,而且每个5秒查询一次.求各位大侠帮我解决一下.Hibernate:selectjobimpl0_.DBID_asDBID1_3_,jobimpl0_.DBVERSION_asDBVERSION3_3_,jobimpl0_.DUEDATE_asDUEDATE4_3_,jobimpl0_.STATE_asSTATE5_3_,jobimpl0_.ISEXCLUSIVE_asISEXCLUS6_3_,

ssh框架整合实例子1-配置文件

ssh框架整合实例子-配置文件 主要配置文件如下: 1.web.xml: 配置actionservlet类和映射配置Listener,加载spring配置 <?xml version="1.0" encoding="UTF-8"?><web-app version="2.4"  xmlns="http://java.sun.com/xml/ns/j2ee"  xmlns:xsi="http://ww