gpt4 book ai didi

java - 以 Debug模式启动时,jrebel 导致 hybris 出错

转载 作者:行者123 更新时间:2023-12-01 16:14:49 24 4
gpt4 key购买 nike

我已经建立了一些 hybris 项目并在其中使用了 jrebel,但这个项目有点不同。

当我使用 ./hybrisserver.sh debugtomcat.debugjavaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend 运行服务器时=n,它启动正确,我可以调试服务器。

当我使用 ./hybrisserver.sh debugtomcat.debugjavaoptions=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend 运行服务器时=n -agentpath:%JREBEL_HOME%/lib/libjrebel64.dylib,它无法启动,并且出现以下错误。

当我使用 ./hybrisserver.shtomcat.javaoptions=-agentpath:%JREBEL_HOME%/lib/libjrebel64.dylib (不是调试选项)运行服务器时!),它正常启动并且 jrebel 出现在日志中。

ERROR [localhost-startStop-4] [HybrisContextFactory] Error initializing global application context!
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'defaultInterceptorRegistry' defined in class path resource [interceptor-spring.xml]: Unsatisfied dependency expressed through bean property 'interceptorMappings'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'classAttributeAssignmentUniqueClassificationItemValidatorMapping' defined in class path resource [catalog-spring.xml]: Cannot resolve reference to bean 'uniqueClassificationItemValidator' while setting bean property 'interceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uniqueClassificationItemValidator' defined in class path resource [catalog-spring.xml]: Cannot resolve reference to bean 'categoryService' while setting bean property 'categoryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lerbsCategoryService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'lerbsB2BUnitService' while setting bean property 'lerbsB2BUnitService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultLerbsB2BUnitService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'b2bCommerceUnitService' while setting bean property 'b2BCommerceUnitService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultLerbsB2BCommerceUnitService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'emailService' while setting bean property 'emailService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultLerbsEmailService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'b2bCommerceUserService' while setting bean property 'lerbsB2BCommerceUserService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultLerbsB2BCommerceUserService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'productService' while setting bean property 'productService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lerbsProductService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'priceService' while setting bean property 'priceService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'erpPricingCatalogService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'netGrossStrategy' while setting bean property 'netGrossStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commerceNetGrossStrategy' defined in class path resource [commerceservices-spring.xml]: Cannot resolve reference to bean 'cartService' while setting bean property 'cartService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCartServiceForAccelerator' defined in class path resource [acceleratorservices-spring.xml]: Cannot resolve reference to bean 'orderCalculation' while setting bean property 'orderCalculation'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultOrderCalculation' defined in class path resource [order-spring.xml]: Cannot resolve reference to bean 'calculationService' while setting bean property 'calculationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'erpCartCalculationService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'erpPricingCartService' while setting bean property 'erpPricingCartService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'erpPricingCartService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'erpPricing' while setting bean property 'erpPricing'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'erpPricing' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'configurableErpPricingBackend' while setting bean property 'erpPricingBackend'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurableErpPricingBackend' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'legacyErpPricingBackendMongo' while setting bean property 'erpPricingBackendMap' with key [TypedStringValue: value [legacy], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'legacyErpPricingBackendMongo' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'storeSessionFacade' while setting bean property 'storeSessionFacade'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultStoreSessionFacade' defined in class path resource [commercefacades-spring.xml]: Cannot resolve reference to bean 'commerceCartService' while setting bean property 'commerceCartService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lerbsCommerceCartService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'commerceCartCalculationStrategy' while setting bean property 'commerceCartCalculationStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lerbsCommerceCartCalculationStrategy' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'promotionsService' while setting bean property 'promotionsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultPromotionEngineService' defined in class path resource [promotionengineservices-spring.xml]: Cannot resolve reference to bean 'commerceRuleEngineService' while setting bean property 'commerceRuleEngineService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCommerceRuleEngineService' defined in class path resource [droolsruleengineservices-spring.xml]: Cannot resolve reference to bean 'platformRuleEngineService' while setting bean property 'platformRuleEngineService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultPlatformRuleEngineService' defined in class path resource [ruleengine-spring.xml]: Cannot resolve reference to bean 'kieSessionHelper' while setting bean property 'kieSessionHelper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultKieSessionHelper' defined in class path resource [ruleengine-spring.xml]: Cannot resolve reference to bean 'ruleEngineKieModuleSwapper' while setting bean property 'ruleEngineKieModuleSwapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultRuleEngineKieModuleSwapper' defined in class path resource [ruleengine-spring.xml]: Cannot resolve reference to bean 'ruleEngineCacheService' while setting bean property 'ruleEngineCacheService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCommerceRuleEngineCacheService' defined in class path resource [ruleengineservices-spring.xml]: Cannot resolve reference to bean 'ruleEngineCache' while setting bean property 'ruleEngineCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCommerceRuleEngineCache' defined in class path resource [ruleengineservices-spring.xml]: Cannot resolve reference to bean 'commerceRuleEngineRaoCacheCreators' while setting bean property 'raoCacheCreators'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commerceRuleEngineRaoCacheCreators': Cannot resolve reference to bean 'ruleGroupExecutionRRDProvider' while setting bean property 'sourceList' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultRuleGroupExecutionRRDProvider' defined in class path resource [ruleengineservices-spring.xml]: Cannot resolve reference to bean 'ruleGroupExecutionRrdConverter' while setting bean property 'ruleGroupExecutionRrdConverter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultRuleGroupExecutionRrdConverter' defined in class path resource [ruleengineservices-spring.xml]: Cannot resolve reference to bean 'ruleGroupExecutionRrdPopulator' while setting bean property 'ruleGroupExecutionRrdPopulator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultRuleGroupExecutionRrdPopulator' defined in class path resource [ruleengineservices-spring.xml]: Cannot resolve reference to bean 'ruleGroupDao' while setting bean property 'ruleGroupDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultRuleGroupDao' defined in class path resource [ruleengineservices-spring-rule.xml]: Initialization of bean failed; nested exception is java.lang.StackOverflowError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1362) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1254) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.__refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.jrLockAndRefresh(AbstractApplicationContext.java:40002) ~[spring-context-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:41008) ~[spring-context-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at de.hybris.platform.core.HybrisContextFactory.refreshContext(HybrisContextFactory.java:95) ~[coreserver.jar:?]
at de.hybris.platform.core.HybrisContextFactory$ApplicationContextFactory.build(HybrisContextFactory.java:263) ~[coreserver.jar:?]
at de.hybris.platform.core.HybrisContextHolder.getApplicationInstance(HybrisContextHolder.java:87) ~[coreserver.jar:?]
at de.hybris.platform.core.AbstractTenant.createCoreApplicationContext(AbstractTenant.java:713) ~[coreserver.jar:?]
at de.hybris.platform.core.AbstractTenant.doStartupSafe(AbstractTenant.java:752) ~[coreserver.jar:?]
at de.hybris.platform.core.AbstractTenant.doStartUp(AbstractTenant.java:685) ~[coreserver.jar:?]
at de.hybris.platform.core.Registry.assureTenantStarted(Registry.java:658) ~[coreserver.jar:?]
at de.hybris.platform.core.Registry.activateTenant(Registry.java:719) ~[coreserver.jar:?]
at de.hybris.platform.core.Registry.setCurrentTenant(Registry.java:566) ~[coreserver.jar:?]
at de.hybris.platform.core.Registry.activateMasterTenant(Registry.java:626) ~[coreserver.jar:?]
at de.hybris.platform.core.Registry.startup(Registry.java:444) ~[coreserver.jar:?]
at de.hybris.platform.core.ClassLoaderUtils.executeWithWebClassLoaderParentIfNeeded(ClassLoaderUtils.java:42) [coreserver.jar:?]
at de.hybris.platform.spring.HybrisContextLoaderListener.startRegistry(HybrisContextLoaderListener.java:325) [coreserver.jar:?]
at de.hybris.platform.spring.HybrisContextLoaderListener.doInitWebApplicationContext(HybrisContextLoaderListener.java:211) [coreserver.jar:?]
at de.hybris.platform.spring.HybrisContextLoaderListener.initWebApplicationContext(HybrisContextLoaderListener.java:199) [coreserver.jar:?]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107) [spring-web-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at de.hybris.platform.spring.HybrisContextLoaderListener.contextInitialized(HybrisContextLoaderListener.java:95) [coreserver.jar:?]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699) [catalina.jar:8.5.51]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165) [catalina.jar:8.5.51]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:8.5.51]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412) [catalina.jar:8.5.51]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402) [catalina.jar:8.5.51]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_252]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'classAttributeAssignmentUniqueClassificationItemValidatorMapping' defined in class path resource [catalog-spring.xml]: Cannot resolve reference to bean 'uniqueClassificationItemValidator' while setting bean property 'interceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'uniqueClassificationItemValidator' defined in class path resource [catalog-spring.xml]: Cannot resolve reference to bean 'categoryService' while setting bean property 'categoryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lerbsCategoryService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'lerbsB2BUnitService' while setting bean property 'lerbsB2BUnitService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultLerbsB2BUnitService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'b2bCommerceUnitService' while setting bean property 'b2BCommerceUnitService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultLerbsB2BCommerceUnitService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'emailService' while setting bean property 'emailService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultLerbsEmailService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'b2bCommerceUserService' while setting bean property 'lerbsB2BCommerceUserService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultLerbsB2BCommerceUserService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'productService' while setting bean property 'productService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lerbsProductService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'priceService' while setting bean property 'priceService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'erpPricingCatalogService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'netGrossStrategy' while setting bean property 'netGrossStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commerceNetGrossStrategy' defined in class path resource [commerceservices-spring.xml]: Cannot resolve reference to bean 'cartService' while setting bean property 'cartService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCartServiceForAccelerator' defined in class path resource [acceleratorservices-spring.xml]: Cannot resolve reference to bean 'orderCalculation' while setting bean property 'orderCalculation'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultOrderCalculation' defined in class path resource [order-spring.xml]: Cannot resolve reference to bean 'calculationService' while setting bean property 'calculationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'erpCartCalculationService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'erpPricingCartService' while setting bean property 'erpPricingCartService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'erpPricingCartService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'erpPricing' while setting bean property 'erpPricing'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'erpPricing' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'configurableErpPricingBackend' while setting bean property 'erpPricingBackend'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurableErpPricingBackend' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'legacyErpPricingBackendMongo' while setting bean property 'erpPricingBackendMap' with key [TypedStringValue: value [legacy], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'legacyErpPricingBackendMongo' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'storeSessionFacade' while setting bean property 'storeSessionFacade'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultStoreSessionFacade' defined in class path resource [commercefacades-spring.xml]: Cannot resolve reference to bean 'commerceCartService' while setting bean property 'commerceCartService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lerbsCommerceCartService' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'commerceCartCalculationStrategy' while setting bean property 'commerceCartCalculationStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lerbsCommerceCartCalculationStrategy' defined in class path resource [lerbscore-spring.xml]: Cannot resolve reference to bean 'promotionsService' while setting bean property 'promotionsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultPromotionEngineService' defined in class path resource [promotionengineservices-spring.xml]: Cannot resolve reference to bean 'commerceRuleEngineService' while setting bean property 'commerceRuleEngineService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCommerceRuleEngineService' defined in class path resource [droolsruleengineservices-spring.xml]: Cannot resolve reference to bean 'platformRuleEngineService' while setting bean property 'platformRuleEngineService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultPlatformRuleEngineService' defined in class path resource [ruleengine-spring.xml]: Cannot resolve reference to bean 'kieSessionHelper' while setting bean property 'kieSessionHelper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultKieSessionHelper' defined in class path resource [ruleengine-spring.xml]: Cannot resolve reference to bean 'ruleEngineKieModuleSwapper' while setting bean property 'ruleEngineKieModuleSwapper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultRuleEngineKieModuleSwapper' defined in class path resource [ruleengine-spring.xml]: Cannot resolve reference to bean 'ruleEngineCacheService' while setting bean property 'ruleEngineCacheService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCommerceRuleEngineCacheService' defined in class path resource [ruleengineservices-spring.xml]: Cannot resolve reference to bean 'ruleEngineCache' while setting bean property 'ruleEngineCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultCommerceRuleEngineCache' defined in class path resource [ruleengineservices-spring.xml]: Cannot resolve reference to bean 'commerceRuleEngineRaoCacheCreators' while setting bean property 'raoCacheCreators'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'commerceRuleEngineRaoCacheCreators': Cannot resolve reference to bean 'ruleGroupExecutionRRDProvider' while setting bean property 'sourceList' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultRuleGroupExecutionRRDProvider' defined in class path resource [ruleengineservices-spring.xml]: Cannot resolve reference to bean 'ruleGroupExecutionRrdConverter' while setting bean property 'ruleGroupExecutionRrdConverter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultRuleGroupExecutionRrdConverter' defined in class path resource [ruleengineservices-spring.xml]: Cannot resolve reference to bean 'ruleGroupExecutionRrdPopulator' while setting bean property 'ruleGroupExecutionRrdPopulator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultRuleGroupExecutionRrdPopulator' defined in class path resource [ruleengineservices-spring.xml]: Cannot resolve reference to bean 'ruleGroupDao' while setting bean property 'ruleGroupDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultRuleGroupDao' defined in class path resource [ruleengineservices-spring-rule.xml]: Initialization of bean failed; nested exception is java.lang.StackOverflowError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1534) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1281) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1314) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1280) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1178) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1094) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1064) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1347) ~[spring-beans-4.3.21.RELEASE.jar:4.3.21.RELEASE]
... 38 more

现在我有点陷入困境。

最佳答案

以下配置可正确进行开发调试。

 tomcat.javaoptions=-agentpath:"C:/jrebel/lib/jrebel64.dll"
tomcat.debugjavaoptions=-agentpath:"C:/jrebel/lib/jrebel64.dll" -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n -Dfile.encoding=UTF8

相应地更改路径。

关于java - 以 Debug模式启动时,jrebel 导致 hybris 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62431627/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com