05-28-2018 06:15 AM
Hello All,
I am executing the test cases in UNIX but getting the below exception. When I execute the webscripts from the browser URL its working fine but not working when executing in the UNIX environment.
Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ms.alfresco.qalientcore.utils.opencmis.OpenCmisUtility com.ms.alfresco.core.jscript.CommentsScriptObjectTest.openCmis; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'openCmisUtility': Invocation of init method failed; nested exception is org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Found" type="org.springframework.beans.factory.BeanCreationException">org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.ms.alfresco.core.jscript.CommentsScriptObjectTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.ms.alfresco.qalientcore.utils.opencmis.OpenCmisUtility com.ms.alfresco.core.jscript.CommentsScriptObjectTest.openCmis; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'openCmisUtility': Invocation of init method failed; nested exception is org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Found
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:385)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:118)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
05-28-2018 07:13 AM
Hi,
Can you share this class com.ms.alfresco.core.jscript.CommentsScriptObjectTest with bean configuration?
Regards,
Rupesh
EnProwess : Portal | Liferay | ECM | Alfresco | Mobile
Explore our Alfresco products with the links below. Use labels to filter content by product module.