Errors in file shopizer-core-rules.xml and Shopizer cannot start

59 views
Skip to first unread message

Глеб Канунников

unread,
Jul 5, 2017, 11:09:07 AM7/5/17
to Shopizer

And when I am trying to start ShopApplication spring shows me these erorrs 


2017-07-05 18:08:22.545  WARN 11596 --- [           main] ationConfigEmbeddedWebApplicationContext : 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: [43,55]: [ERR 101] Line 43:55 no viable alternative at input ''
[52,55]: [ERR 101] Line 52:55 no viable alternative at input ''
[61,55]: [ERR 101] Line 61:55 no viable alternative at input ''
[43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15"
[52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16"
[61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17"
[0,0]: Parser returned a null Package

2017-07-05 18:08:22.563  INFO 11596 --- [           main] o.s.c.ehcache.EhCacheManagerFactoryBean  : Shutting down EhCache CacheManager
2017-07-05 18:08:22.576  INFO 11596 --- [           main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2017-07-05 18:08:22.582  INFO 11596 --- [           main] o.apache.catalina.core.StandardService   : Stopping service Tomcat
2017-07-05 18:08:22.589  WARN 11596 --- [ost-startStop-1] 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-07-05 18:08:22.602 ERROR 11596 --- [           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: [43,55]: [ERR 101] Line 43:55 no viable alternative at input ''
[52,55]: [ERR 101] Line 52:55 no viable alternative at input ''
[61,55]: [ERR 101] Line 61:55 no viable alternative at input ''
[43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15"
[52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16"
[61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17"
[0,0]: Parser returned a null Package

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: [43,55]: [ERR 101] Line 43:55 no viable alternative at input ''
[52,55]: [ERR 101] Line 52:55 no viable alternative at input ''
[61,55]: [ERR 101] Line 61:55 no viable alternative at input ''
[43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15"
[52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16"
[61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17"
[0,0]: Parser returned a null Package

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: [43,55]: [ERR 101] Line 43:55 no viable alternative at input ''
[52,55]: [ERR 101] Line 52:55 no viable alternative at input ''
[61,55]: [ERR 101] Line 61:55 no viable alternative at input ''
[43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15"
[52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16"
[61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17"
[0,0]: Parser returned a null Package

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: [43,55]: [ERR 101] Line 43:55 no viable alternative at input ''
[52,55]: [ERR 101] Line 52:55 no viable alternative at input ''
[61,55]: [ERR 101] Line 61:55 no viable alternative at input ''
[43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15"
[52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16"
[61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17"
[0,0]: Parser returned a null Package

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: [43,55]: [ERR 101] Line 43:55 no viable alternative at input ''
[52,55]: [ERR 101] Line 52:55 no viable alternative at input ''
[61,55]: [ERR 101] Line 61:55 no viable alternative at input ''
[43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15"
[52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16"
[61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17"
[0,0]: Parser returned a null Package

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: [43,55]: [ERR 101] Line 43:55 no viable alternative at input ''
[52,55]: [ERR 101] Line 52:55 no viable alternative at input ''
[61,55]: [ERR 101] Line 61:55 no viable alternative at input ''
[43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15"
[52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16"
[61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17"
[0,0]: Parser returned a null Package

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: [43,55]: [ERR 101] Line 43:55 no viable alternative at input ''
[52,55]: [ERR 101] Line 52:55 no viable alternative at input ''
[61,55]: [ERR 101] Line 61:55 no viable alternative at input ''
[43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15"
[52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16"
[61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17"
[0,0]: Parser returned a null Package

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: [43,55]: [ERR 101] Line 43:55 no viable alternative at input ''
[52,55]: [ERR 101] Line 52:55 no viable alternative at input ''
[61,55]: [ERR 101] Line 61:55 no viable alternative at input ''
[43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15"
[52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16"
[61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17"
[0,0]: Parser returned a null Package

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: [43,55]: [ERR 101] Line 43:55 no viable alternative at input ''
[52,55]: [ERR 101] Line 52:55 no viable alternative at input ''
[61,55]: [ERR 101] Line 61:55 no viable alternative at input ''
[43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15"
[52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16"
[61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17"
[0,0]: Parser returned a null Package

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: [43,55]: [ERR 101] Line 43:55 no viable alternative at input ''
[52,55]: [ERR 101] Line 52:55 no viable alternative at input ''
[61,55]: [ERR 101] Line 61:55 no viable alternative at input ''
[43,56]: [ERR 101] Line 43:56 no viable alternative at input '100' in rule "Shipping quote_15"
[52,56]: [ERR 101] Line 52:56 no viable alternative at input '100' in rule "Shipping quote_16"
[61,56]: [ERR 101] Line 61:56 no viable alternative at input '100' in rule "Shipping quote_17"
[0,0]: Parser returned a null Package

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

2017-07-05 18:08:22.605  INFO 11596 --- [           main] .b.l.ClasspathLoggingApplicationListener : App

Umesh Awasthi

unread,
Jul 5, 2017, 12:13:00 PM7/5/17
to shop...@googlegroups.com
are you using 2.0.5 and JDk 1.8? I retested it and it seems to be working for me

--
You received this message because you are subscribed to the Google Groups "Shopizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shopizer+unsubscribe@googlegroups.com.
To post to this group, send email to shop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shopizer/222ee83e-4611-49e1-9a08-4ee4decdfefc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
With Regards
Umesh Awasthi
http://www.travellingrants.com/

   

Глеб Канунников

unread,
Jul 5, 2017, 4:02:40 PM7/5/17
to Shopizer

Yes, I am using 2.0.5 and JDK 1.8. I tried to solve problem, i googled a lot but nothing works.
среда, 5 июля 2017 г., 19:13:00 UTC+3 пользователь Umesh Awasthi написал:
To unsubscribe from this group and stop receiving emails from it, send an email to shopizer+u...@googlegroups.com.

To post to this group, send email to shop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shopizer/222ee83e-4611-49e1-9a08-4ee4decdfefc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages