Tag Archives: Technical Summary

exception is java.lang.LinkageError: loader constraint violation: loader

Service startup reported this error:

Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobile.jstx.auditBudgetDAO' defined in class path resource [mobile-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'dao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'dao': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'dao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'dao': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'dao': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more
Exception in thread "ProductApplicationContextLoadThread-Thread" Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'signDaoImpl' defined in class path resource [resource/spring/server-core-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDao': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDao': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDao': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more
Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobile.reportLoginDao' defined in class path resource [gdsg_login-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobile.reportMobileDao' defined in class path resource [gdsg-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more
Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mobile.fapDao' defined in class path resource [fap-mobile.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more
Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'plan.planRightELECache' defined in class path resource [plan-comcontext.xml]: Cannot create inner bean 'gov.gfmis.pay.plan.bs.PlanRightELECache#17138f4' of type [gov.gfmis.pay.plan.bs.PlanRightELECache] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanRightELECache#17138f4' defined in class path resource [plan-comcontext.xml]: Cannot resolve reference to bean 'plan.planNormalBusiness' while setting bean property 'planNormalBusiness'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'plan.planNormalBusiness' defined in class path resource [plan-context.xml]: Cannot create inner bean 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' of type [gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' defined in class path resource [plan-context.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "gov/gfmis/fap/rule/FVoucherDTO"
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanRightELECache#17138f4' defined in class path resource [plan-comcontext.xml]: Cannot resolve reference to bean 'plan.planNormalBusiness' while setting bean property 'planNormalBusiness'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'plan.planNormalBusiness' defined in class path resource [plan-context.xml]: Cannot create inner bean 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' of type [gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' defined in class path resource [plan-context.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "gov/gfmis/fap/rule/FVoucherDTO"
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
	... 17 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'plan.planNormalBusiness' defined in class path resource [plan-context.xml]: Cannot create inner bean 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' of type [gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' defined in class path resource [plan-context.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "gov/gfmis/fap/rule/FVoucherDTO"
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
	... 25 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gov.gfmis.pay.plan.bs.PlanNormalBusinessImpl#8ae431' defined in class path resource [plan-context.xml]: Initialization of bean failed; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "gov/gfmis/fap/rule/FVoucherDTO"
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
	... 38 more
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "gov/gfmis/fap/rule/FVoucherDTO"
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.getDeclaredMethods(Unknown Source)
	at java.beans.Introspector$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)
	at java.beans.Introspector.getTargetMethodInfo(Unknown Source)
	at java.beans.Introspector.getBeanInfo(Unknown Source)
	at java.beans.Introspector.getBeanInfo(Unknown Source)
	at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:220)
	at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:144)
	at org.springframework.beans.BeanWrapperImpl.getCachedIntrospectionResults(BeanWrapperImpl.java:252)
	at org.springframework.beans.BeanWrapperImpl.getPropertyDescriptorInternal(BeanWrapperImpl.java:282)
	at org.springframework.beans.BeanWrapperImpl.isWritableProperty(BeanWrapperImpl.java:333)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1247)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 42 more
Exception in thread "ProductApplicationContextLoadThread-Thread" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'report.serverReportCommonLogic' defined in class path resource [fap_report-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
	at gov.gfmis.fap.context.DefaultBundleApplicationContext.refresh(Unknown Source)
	at gov.gfmis.osgi.internal.ProductAppCtxLoadThread.run(Unknown Source)
Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:391)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
	... 13 more
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] to required type [gov.gfmis.fap.util.dao.springdao.GeneralDAO] for property 'generalDAO': no matching editors or conversion strategy found
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
	... 17 more

key line error:
Exception is Java.lang.LinkageError: Loader constraint cheesecake factory: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name “gov/gfmis/fap/rule/FVoucherDTO”
So osgi loads a different FVoucherDTO which means that both bundles have this class: FVoucherDTO bundle conflicts.

Regarding [java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Boolean], combined with examples

Description:
I use the Groovy language, but it is quite Java compatible, except that it is a weakly typed language relative to Java
Situation:
If a string is null, no unit will be added. The screenshot is shown below, and the data after “Distance (m) :” should be intercepted

Original script:

 if( !distance.endsWith(")") && !distance.endsWith("m") && distance != null && distance.length() != 0) {
    distance = distance + 'm';
}

Error: Collection exception. Exception information [Java. Lang. ClassCastException: Java. Lang. Integer always be cast to Java. Lang. Boolean]
Later changed the script:

if(!distance.endsWith(")") && !distance.endsWith("m") && distance != null && distance.toString().length() != 0) {
    distance = distance + 'm';
}

Exception resolution. Integer is int the wrapper class, there is no length () this method, the specific introduction, see this post:
https://blog.csdn.net/andyzhaojianhui/article/details/84324466

Resolve git clone error fatal: http request failed

problem background:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

problem phenomenon:

error after execution:

1. error while processing: https://github.com/VundleVim/Vundle.vim.git/info/refs

2. fatal: HTTP request failed

problem search:

your browser requests directly https://github.com/VundleVim/Vundle.vim.git/info/refs, the browser returns:

 
  1. Please upgrade your git client.
  2. GitHub.com no longer supports git over dumb-http: https://github.com/blog/809-git-dumb-http-transport-to-be-turned-off-in-90-days

problem cause:

To sum up, it is because git version is too low that

is caused

problem solved:

upgrade git client version

 
  1. yum安装curl
  2. yum安装curl-devel
  3. yum安装zlib-devel
  4. yum安装openssl-devel
  5. 0

  6. 1 yum安装cpio
  7. 3 yum安装expout -devel

    4

  8. 5 yum安装gettext-devel
  9. 6

    7

     
    1. wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.xz
    2. xz -d git-latest.tar.xz
    3. tar xvf git-latest.tar
    4. cd git-xxxx-xx-xx
    5. autoconf
    6. ./configure
    7. make && make install