Project

General

Profile

bug #9635

Updated by Andreas Kohlbecker almost 3 years ago

http://api.cybertaxonomy.org/euromed/portal/taxon/find.json?doTaxaByCommonNames=1&doMisappliedNames=1&doSynonyms=1&doTaxa=1&pageNumber=0&pageSize=25&query=Ruscus+hy%2A&tree=314a68f9-8449-495a-91c2-92fde8bcf344 

 ~~~ 
 Caused by: net.sf.json.JSONException: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: eu.etaxonomy.cdm.model.agent.Team.teamMembers, could not initialize proxy - no Session 
         at net.sf.json.JSONObject._fromBean(JSONObject.java:692) 
         at net.sf.json.JSONObject.fromObject(JSONObject.java:172) 
         at eu.etaxonomy.cdm.remote.json.processor.bean.HibernateProxyBeanProcessor.processBean(HibernateProxyBeanProcessor.java:28) 
         at net.sf.json.JSONObject._fromBean(JSONObject.java:676) 
         at net.sf.json.JSONObject.fromObject(JSONObject.java:172) 
         at net.sf.json.AbstractJSON._processValue(AbstractJSON.java:274) 
         at net.sf.json.JSONObject._processValue(JSONObject.java:2655) 
         at net.sf.json.JSONObject.processValue(JSONObject.java:2721) 
         at net.sf.json.JSONObject.element(JSONObject.java:1786) 
         at eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor.processBean(AbstractBeanProcessor.java:149) 
         at net.sf.json.JSONObject._fromBean(JSONObject.java:676) 
         at net.sf.json.JSONObject.fromObject(JSONObject.java:172) 
         at eu.etaxonomy.cdm.remote.json.processor.bean.HibernateProxyBeanProcessor.processBean(HibernateProxyBeanProcessor.java:28) 
         at net.sf.json.JSONObject._fromBean(JSONObject.java:676) 
         at net.sf.json.JSONObject.fromObject(JSONObject.java:172) 
         at net.sf.json.AbstractJSON._processValue(AbstractJSON.java:274) 
         at net.sf.json.JSONObject._processValue(JSONObject.java:2655) 
         at net.sf.json.JSONObject.processValue(JSONObject.java:2721) 
         at net.sf.json.JSONObject.setInternal(JSONObject.java:2736) 
         at net.sf.json.JSONObject.setValue(JSONObject.java:1424) 
         at net.sf.json.JSONObject.defaultBeanProcessing(JSONObject.java:765) 
         at net.sf.json.JSONObject._fromBean(JSONObject.java:699) 
         at net.sf.json.JSONObject.fromObject(JSONObject.java:172) 
         at net.sf.json.AbstractJSON._processValue(AbstractJSON.java:274) 
         at net.sf.json.JSONObject._processValue(JSONObject.java:2655) 
         at net.sf.json.JSONObject.processValue(JSONObject.java:2721) 
         at net.sf.json.JSONObject.element(JSONObject.java:1786) 
         at eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor.processBean(AbstractBeanProcessor.java:149) 
         at net.sf.json.JSONObject._fromBean(JSONObject.java:676) 
         at net.sf.json.JSONObject.fromObject(JSONObject.java:172) 
         at eu.etaxonomy.cdm.remote.view.JsonView.render(JsonView.java:146) 
         at eu.etaxonomy.cdm.remote.view.JsonView.render(JsonView.java:206) 
         at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1286) 
         at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1041) 
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:984) 
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) 
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) 
         ... 80 common frames omitted 
 Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: eu.etaxonomy.cdm.model.agent.Team.teamMembers, could not initialize proxy - no Session 
         at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:584) 
         at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:201) 
         at org.hibernate.collection.internal.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:145) 
         at org.hibernate.collection.internal.PersistentList.size(PersistentList.java:113) 
         at eu.etaxonomy.cdm.strategy.cache.agent.TeamDefaultCacheStrategy.getCache(TeamDefaultCacheStrategy.java:168) 
         at eu.etaxonomy.cdm.strategy.cache.agent.TeamDefaultCacheStrategy.getTitleCache(TeamDefaultCacheStrategy.java:146) 
         at eu.etaxonomy.cdm.strategy.cache.agent.TeamDefaultCacheStrategy.getTitleCache(TeamDefaultCacheStrategy.java:1) 
         at eu.etaxonomy.cdm.model.common.IdentifiableEntity.generateTitle(IdentifiableEntity.java:682) 
         at eu.etaxonomy.cdm.model.agent.Team.getTitleCache(Team.java:314) 
         at eu.etaxonomy.cdm.remote.json.processor.bean.TeamOrPersonBaseBeanProcessor.processBeanSecondStep(TeamOrPersonBaseBeanProcessor.java:34) 
         at eu.etaxonomy.cdm.remote.json.processor.bean.TeamOrPersonBaseBeanProcessor.processBeanSecondStep(TeamOrPersonBaseBeanProcessor.java:22) 
         at eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor.processBean(AbstractBeanProcessor.java:167) 
         at net.sf.json.JSONObject._fromBean(JSONObject.java:676) 
         ... 116 common frames omitted 
 ~~~ 

 Review by testing these searches  

 * E+M: this search http://www.europlusmed.org/cdm_dataportal/search/results/taxon?ws=portal/taxon/find&query=Ruscus%20hy%2A&form_build_id=form-IeXZl7cAPCN0g2GYKoTM75OoiE_fJKenaQ3ZO9aCn18&form_token=gO0Zw8fzX0rbOMquovODi4ch2mjwE689VM5UuHgMYF8&form_id=cdm_dataportal_search_taxon_form&search%5BdoTaxaByCommonNames%5D=1&search%5BdoMisappliedNames%5D=1&search%5BdoSynonyms%5D=1&search%5BdoTaxa%5D=1&search%5BpageNumber%5D=0&search%5BpageSize%5D=25 
 * Cichorieae: Search for "Pilosella acut*" 

Back