bug #8684
closed
ITaxonService.findTaxaByName misses initStrategy Parameter
Added by Andreas Kohlbecker over 4 years ago.
Updated about 4 years ago.
Description
ITaxonService.findTaxaByName misses initStrategy Parameter causing unsolvable LIEs when using via the portal service
once implemented, pass an initStrategy from the portal controller
- Priority changed from New to Highest
- Related to bug #8676: TaxonDaoHibernateImpl.countTaxaByName misses parameter authorship added
- Related to task #8683: TaxonDaoHibernateImpl.countTaxaByName rename parameter authorship authorshipCache added
- Status changed from New to Resolved
- % Done changed from 0 to 50
- Status changed from Resolved to In Progress
testing the web service (locally with the caryophlalles_spp database):
http :8081/portal/taxon/doFindByNameParts.json genusOrUninomial==Selenicereus infragenericEpithet=='*' infraspecificEpithet=='*' specificEpithet=='*' authorshipCache=='*'
causes an exception:
Caused by:
java.lang.RuntimeException: Collection no longer expected in 'initializeNodeWildcard()'. Therefore an exception is thrown.
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initializeNodeWildcard(AdvancedBeanInitializer.java:140)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initializeNode(AdvancedBeanInitializer.java:123)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initializeNodeRecursive(AdvancedBeanInitializer.java:105)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initializeNodeRecursive(AdvancedBeanInitializer.java:107)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initializeAll(AdvancedBeanInitializer.java:85)
at eu.etaxonomy.cdm.persistence.dao.initializer.AdvancedBeanInitializer.initialize(AdvancedBeanInitializer.java:57)
at eu.etaxonomy.cdm.persistence.dao.hibernate.taxon.TaxonDaoHibernateImpl.findTaxaByName(TaxonDaoHibernateImpl.java:995)
at eu.etaxonomy.cdm.api.service.TaxonServiceImpl.findTaxaByName(TaxonServiceImpl.java:514)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
- Status changed from In Progress to Resolved
- % Done changed from 50 to 90
the webservice is now working, tested with:
http :8081/portal/taxon/doFindByNameParts.json genusOrUninomial==Selenicereus infragenericEpithet=='*' infraspecificEpithet=='macdonaldeae' specificEpithet=='pteranthus' authorshipCache=='*'
also tested on t edit-test and confirmed that the service is working now
http http://test.e-taxonomy.eu/cdmserver/caryo_spp/portal/taxon/doFindByNameParts.json genusOrUninomial==Selenicereus infragenericEpithet=='*' infraspecificEpithet=='macdonaldeae' specificEpithet=='pteranthus' authorshipCache=='*'
- Status changed from Resolved to Closed
- % Done changed from 90 to 100
Also available in: Atom
PDF