java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • SpringBean doesn't support Generics?
    via by RedCarpet,
  • NINAN / Mailing Lists
    via by Unknown author,
  • NINAN / Mailing Lists
    via by Unknown author,
  • NINAN / Mailing Lists
    via by Unknown author,
  • Limiting available beans via Maven
    via Stack Overflow by M4ks
    ,
    • java.lang.IllegalStateException: More than one bean of type [ProductDao] found, you have to specify the name of the bean (@SpringBean(name="foo")) or (@Named("foo") if using @javax.inject classes) in order to resolve this conflict. Matched beans: carProductDao,phoneProductDao at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getBeanNameOfClass(AnnotProxyFieldValueFactory.java:289)[AnnotProxyFieldValueFactory.class:6.18.0] at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getBeanName(AnnotProxyFieldValueFactory.java:198)[AnnotProxyFieldValueFactory.class:6.18.0] at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue(AnnotProxyFieldValueFactory.java:130)[AnnotProxyFieldValueFactory.class:6.18.0] at org.apache.wicket.injection.Injector.inject(Injector.java:111)[Injector.class:6.18.0] at org.apache.wicket.spring.injection.annot.SpringComponentInjector.inject(SpringComponentInjector.java:124)[SpringComponentInjector.class:6.18.0] at ProductModel.<init>(ProductModel.java:20)[ProductModel.class:na] at ProductPage$15.populateItem(ProductPage.java:742)[ProductPage$15.class:na]
    No Bugmate found.