Java Maven; org.picocontainer.injectors.AbstractInjector $ CyclicDependencyException:循环依赖性

时间:2019-09-30 12:49:56

标签: java selenium dependency-injection cucumber picocontainer

当前看到以下异常:

org.picocontainer.injectors.AbstractInjector$CyclicDependencyException: Cyclic dependency: [class pageObjects.accounts.login.ForgotPassword_PO, class pageObjects.tutors.Tutors_PO, class pageObjects.accounts.login.Login_PO, class pageObjects.accounts.login.ForgotPassword_PO, class stepDefinitions.accounts.SignUp_Steps]
    at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:265)
    at org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
    at org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
    at org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
    at org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
    at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)

我已经检查了与问题相关的推荐区域(类),但是找不到任何重复的注入类等: 循环依赖性:

[class pageObjects.accounts.login.ForgotPassword_PO, class pageObjects.tutors.Tutors_PO, class pageObjects.accounts.login.Login_PO, class pageObjects.accounts.login.ForgotPassword_PO, class stepDefinitions.accounts.SignUp_Steps]

有什么想法吗?

0 个答案:

没有答案