Actions
bug #9635
closedLazyInitializationException (LIE) in TaxonPortalContoller
Status:
Closed
Priority:
Highest
Assignee:
Category:
cdmlib-remote
Target version:
Start date:
Due date:
% Done:
100%
Estimated time:
Severity:
normal
Found in Version:
Description
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:
- edit-prod: 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
- edit-test: not reproducible with above URL, different data?
Cichorieae: Search for "Pilosella acut*" : http://test.e-taxonomy.eu/cdmserver/cichorieae/portal/taxon/find.json?doTaxaByCommonNames=1&doMisappliedNames=1&doSynonyms=1&doTaxa=1&pageSize=25&pageNumber=0&query=Pilosella+acut*&tree=534e190f-3339-49ba-95d9-fa27d5493e3e <--- to be used for review !!!
Related issues
Updated by Andreas Kohlbecker over 2 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 50
Applied in changeset cdmlib|1502b93925149b7602fbc039d141ea2faf234af1.
Updated by Andreas Kohlbecker over 2 years ago
- Status changed from Resolved to Closed
- % Done changed from 50 to 100
Updated by Andreas Müller over 2 years ago
- Target version changed from Release 5.25 to Release 5.24
Updated by Andreas Müller over 2 years ago
- Related to feature request #9433: Improve titleCache generation for misapplications added
Actions