question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Start Fail - Spring boot

See original GitHub issue

Hello.

I’m trying starts the app but I’m getting this erros

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderActionsControler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.salesmanager.core.business.services.order.OrderService com.salesmanager.shop.admin.controller.orders.OrderActionsControler.orderService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.salesmanager.core.business.services.shipping.ShippingService com.salesmanager.core.business.services.order.OrderServiceImpl.shippingService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingModules': Cannot resolve reference to bean 'customShippingPriceModule' while setting bean property 'sourceMap' with key [TypedStringValue: value [customQuotesRules], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customShippingPriceModule' defined in class path resource [spring/shopizer-core-rules.xml]: Cannot resolve reference to bean 'shippingPriceRule' while setting bean property 'shippingPriceRule'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceRule': Cannot resolve reference to bean 'shippingPriceDecisionBase' while setting bean property 'kbase'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_15']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_16']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_17']


2017-11-26 13:07:31.587  INFO 1709 --- [           main] o.s.c.ehcache.EhCacheManagerFactoryBean  : Shutting down EhCache CacheManager
2017-11-26 13:07:31.666  INFO 1709 --- [           main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2017-11-26 13:07:31.677  INFO 1709 --- [           main] o.apache.catalina.core.StandardService   : Stopping service Tomcat
2017-11-26 13:07:31.691  WARN 1709 --- [ost-startStop-2] o.a.c.loader.WebappClassLoaderBase       : The web application [ROOT] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
 com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)
2017-11-26 13:07:31.707 ERROR 1709 --- [           main] o.s.boot.SpringApplication               : Application startup failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderActionsControler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.salesmanager.core.business.services.order.OrderService com.salesmanager.shop.admin.controller.orders.OrderActionsControler.orderService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.salesmanager.core.business.services.shipping.ShippingService com.salesmanager.core.business.services.order.OrderServiceImpl.shippingService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingModules': Cannot resolve reference to bean 'customShippingPriceModule' while setting bean property 'sourceMap' with key [TypedStringValue: value [customQuotesRules], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customShippingPriceModule' defined in class path resource [spring/shopizer-core-rules.xml]: Cannot resolve reference to bean 'shippingPriceRule' while setting bean property 'shippingPriceRule'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceRule': Cannot resolve reference to bean 'shippingPriceDecisionBase' while setting bean property 'kbase'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_15']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_16']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_17']


	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
	at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
	at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
	at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
	at com.salesmanager.shop.application.ShopApplication.main(ShopApplication.java:11) [classes/:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.salesmanager.core.business.services.order.OrderService com.salesmanager.shop.admin.controller.orders.OrderActionsControler.orderService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.salesmanager.core.business.services.shipping.ShippingService com.salesmanager.core.business.services.order.OrderServiceImpl.shippingService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingModules': Cannot resolve reference to bean 'customShippingPriceModule' while setting bean property 'sourceMap' with key [TypedStringValue: value [customQuotesRules], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customShippingPriceModule' defined in class path resource [spring/shopizer-core-rules.xml]: Cannot resolve reference to bean 'shippingPriceRule' while setting bean property 'shippingPriceRule'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceRule': Cannot resolve reference to bean 'shippingPriceDecisionBase' while setting bean property 'kbase'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_15']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_16']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_17']


	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	... 17 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.salesmanager.core.business.services.shipping.ShippingService com.salesmanager.core.business.services.order.OrderServiceImpl.shippingService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingModules': Cannot resolve reference to bean 'customShippingPriceModule' while setting bean property 'sourceMap' with key [TypedStringValue: value [customQuotesRules], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customShippingPriceModule' defined in class path resource [spring/shopizer-core-rules.xml]: Cannot resolve reference to bean 'shippingPriceRule' while setting bean property 'shippingPriceRule'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceRule': Cannot resolve reference to bean 'shippingPriceDecisionBase' while setting bean property 'kbase'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_15']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_16']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_17']


	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	... 19 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.salesmanager.core.business.services.shipping.ShippingService com.salesmanager.core.business.services.order.OrderServiceImpl.shippingService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingModules': Cannot resolve reference to bean 'customShippingPriceModule' while setting bean property 'sourceMap' with key [TypedStringValue: value [customQuotesRules], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customShippingPriceModule' defined in class path resource [spring/shopizer-core-rules.xml]: Cannot resolve reference to bean 'shippingPriceRule' while setting bean property 'shippingPriceRule'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceRule': Cannot resolve reference to bean 'shippingPriceDecisionBase' while setting bean property 'kbase'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_15']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_16']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_17']


	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	... 30 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingModules': Cannot resolve reference to bean 'customShippingPriceModule' while setting bean property 'sourceMap' with key [TypedStringValue: value [customQuotesRules], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customShippingPriceModule' defined in class path resource [spring/shopizer-core-rules.xml]: Cannot resolve reference to bean 'shippingPriceRule' while setting bean property 'shippingPriceRule'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceRule': Cannot resolve reference to bean 'shippingPriceDecisionBase' while setting bean property 'kbase'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_15']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_16']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_17']


	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:311) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1116) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	... 32 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingModules': Cannot resolve reference to bean 'customShippingPriceModule' while setting bean property 'sourceMap' with key [TypedStringValue: value [customQuotesRules], target type [class java.lang.String]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customShippingPriceModule' defined in class path resource [spring/shopizer-core-rules.xml]: Cannot resolve reference to bean 'shippingPriceRule' while setting bean property 'shippingPriceRule'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceRule': Cannot resolve reference to bean 'shippingPriceDecisionBase' while setting bean property 'kbase'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_15']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_16']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_17']


	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:407) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:165) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:512) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:486) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:615) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308) ~[spring-context-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	... 43 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customShippingPriceModule' defined in class path resource [spring/shopizer-core-rules.xml]: Cannot resolve reference to bean 'shippingPriceRule' while setting bean property 'shippingPriceRule'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceRule': Cannot resolve reference to bean 'shippingPriceDecisionBase' while setting bean property 'kbase'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_15']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_16']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_17']


	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	... 60 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceRule': Cannot resolve reference to bean 'shippingPriceDecisionBase' while setting bean property 'kbase'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_15']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_16']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_17']


	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	... 70 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shippingPriceDecisionBase': Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_15']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_16']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_17']


	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	... 80 common frames omitted
Caused by: java.lang.RuntimeException: Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_15']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_16']

Unable to Analyse Expression distance <= $2:
[Error: unable to resolve method using strict-mode: com.salesmanager.core.business.modules.integration.shipping.impl.ShippingInputParameters.$2()]
[Near : {... distance <= $2 ....}]
                         ^ : [Rule name='Shipping quote_17']


	at org.drools.container.spring.beans.KnowledgeBaseBeanFactory.afterPropertiesSet(KnowledgeBaseBeanFactory.java:121) ~[drools-spring-5.6.0.Final.jar:5.6.0.Final]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ~[spring-beans-4.2.6.RELEASE.jar:4.2.6.RELEASE]
	... 87 common frames omitted

Help me, please

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
RobertoBottinocommented, May 11, 2018

Hello to all, I’m having the same type of exception right now. I have updated the project but no result. Any news regarding this problem?

1reaction
dimeroscommented, Dec 17, 2017

In fact this behaviour is correct. The problem is that the data cells of distances and prices to shipping-decision-rules.xls and shipping-custom-rules.xls are not correct because the second parameter is not recognized.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spring-boot application fails to start - Stack Overflow
You have 2 things to do in your pom.xml. First change the start-class to your application class. Second add the super-cool Spring Boot...
Read more >
Solve the problem that SpringBoot fails to start after updating ...
SpringBoot project has integrated springfox. After updating SpringBoot to 2.6.0 the application fails to start and throws an exception: ...
Read more >
Spring Boot Error ApplicationContextException - Baeldung
The error comes up mainly when Spring Boot fails to start the ServletWebServerApplicationContext. Why? Because the ...
Read more >
23. SpringApplication
If your application fails to start, registered FailureAnalyzers get a chance to provide a dedicated error message and a concrete action to fix...
Read more >
Spring boot Debug problem and Application failed to start ...
In this video we are going to Resolve a debug issue and Application can not Started issue ....So if You like it ,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found