I have just completed migration of a large CUBA based project to platform version 7 but unfortunately it is not running and found the following exception originating from Dashboard add-on:
00:01:21.442 INFO c.h.c.w.s.r.WebRemoteProxyBeanCreator - Configuring proxy beans for local service invocations: [emailtemplates_OutboundTemplateService, emailtemplates_TemplateParametersExtractorService, emailtemplates_TemplateConverterService]
00:01:21.442 INFO c.h.c.w.s.r.WebRemoteProxyBeanCreator - Configuring proxy beans for local service invocations: [erp_AccountsService, erp_ProcurementService, erp_MaterialsManagementService, erp_SalesService, erp_ProductionPlanService, erp_NumberGenerationService, erp_DistributionService, erp_SupplyChainService, erp_AssetService, erp_InteaccUtilService, erp_HrisService, erp_QualityManagementService, erp_AccountsPayableService, erp_InteaccScheduledJobService, erp_AccountsReceivableService, erp_InteaccMasterDataService, erp_InteaccImapService, erp_RealEstateService, erp_BpmProfileService, erp_BpmnXmlParsingService, erp_ProcessNotificationService]
00:01:22.569 INFO c.h.c.c.s.CubaThreadPoolTaskScheduler - Initializing ExecutorService 'scheduler'
00:01:22.636 WARN c.h.c.c.s.CubaClassPathXmlApplicationContext- Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dashboard_uiComponentsFactory': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.haulmont.addon.dashboard.web.dashboard.tools.componentfactory.CanvasUiComponentsFactory] from ClassLoader [ParallelWebappClassLoader
context: inteaccERP
delegate: false
----------> Parent Classloader:
java.net.URLClassLoader@18e7d655
]
00:01:22.637 INFO c.h.c.c.s.CubaThreadPoolTaskScheduler - Shutting down ExecutorService 'scheduler'
00:01:22.647 ERROR c.h.c.c.s.AbstractWebAppContextLoader - Error initializing application
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dashboard_uiComponentsFactory': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.haulmont.addon.dashboard.web.dashboard.tools.componentfactory.CanvasUiComponentsFactory] from ClassLoader [ParallelWebappClassLoader
context: inteaccERP
delegate: false
----------> Parent Classloader:
java.net.URLClassLoader@18e7d655
]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:265) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1269) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1184) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
May 03, 2019 12:01:22 AM org.apache.catalina.core.StandardContext listenerStart
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
SEVERE: Exception sending context initialized event to listener instance of class [com.haulmont.cuba.web.sys.WebAppContextLoader]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dashboard_uiComponentsFactory': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.haulmont.addon.dashboard.web.dashboard.tools.componentfactory.CanvasUiComponentsFactory] from ClassLoader [ParallelWebappClassLoader
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.6.RELEASE.jar context: inteaccERP
:5.1.6.RELEASE]
delegate: false
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
----------> Parent Classloader:
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
java.net.URLClassLoader@18e7d655
]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:265)
Note that the dependency is correct;y mapped to the latest version of dashboard component (
appComponent(“com.haulmont.addon.dashboard:dashboard-global:2.0.1”)
). Thanks in advance CUBA team to help me out!