Project

General

Profile

bug #9193

LazyInitializationException (LIE) in portal/taxon/{uuid} web service

Added by Andreas Kohlbecker about 1 month ago. Updated 30 days ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib-remote
Target version:
Start date:
08/17/2020
Due date:
% Done:

100%

Severity:
normal
Found in Version:
Tags:

Description

13:46:48.411 [euromed] [qtp527446182-30437] INFO  e.e.c.r.controller.BaseController - doGet() /euromed/portal/taxon/9eb63511-3261-4892-adad-574a551857f9.json

...

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:567)
        at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:205)
        at org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:546)
        at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:133)
        at org.hibernate.collection.internal.PersistentList.iterator(PersistentList.java:132)
        at eu.etaxonomy.cdm.strategy.cache.agent.TeamDefaultCacheStrategy.getNomenclaturalTitle(TeamDefaultCacheStrategy.java:82)
        at eu.etaxonomy.cdm.strategy.cache.agent.TeamDefaultCacheStrategy.getNomenclaturalTitle(TeamDefaultCacheStrategy.java:1)
        at eu.etaxonomy.cdm.model.agent.Team.getNomenclaturalTitle(Team.java:270)
        at eu.etaxonomy.cdm.remote.json.processor.bean.TeamOrPersonBaseBeanProcessor.processBeanSecondStep(TeamOrPersonBaseBeanProcessor.java:35)
        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)

Associated revisions

Revision 3e7265a1 (diff)
Added by Andreas Kohlbecker about 1 month ago

fix #9193 extending init strategy to avoid LIE in authorship

Revision 73f4ae84 (diff)
Added by Andreas Kohlbecker about 1 month ago

ref #9193 fixing/extending init strategy in TaxonPortalListController

History

#1 Updated by Andreas Kohlbecker about 1 month ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50

#2 Updated by Andreas Kohlbecker about 1 month ago

  • Assignee changed from Andreas Kohlbecker to Andreas Müller

#3 Updated by Andreas Müller about 1 month ago

  • Status changed from Resolved to Feedback
  • Assignee changed from Andreas Müller to Andreas Kohlbecker

I tested https://test.e-taxonomy.eu/dataportal/preview/euromed/cdm_dataportal/taxon/fcc59c03-f8fd-4a7a-8567-60ed199dca10 and https://test.e-taxonomy.eu/dataportal/preview/euromed/cdm_dataportal/taxon/9eb63511-3261-4892-adad-574a551857f9 and the portals sites show up.

However, http://test.e-taxonomy.eu/cdmserver/euromed/portal/taxon.json?limit=1&start=101471 and http://test.e-taxonomy.eu/cdmserver/euromed/portal/taxon.json?limit=1&start=105803 still do return only an empty page so the problem seems not to be fully solved yet.

Also the portal search for "Echium sabulicola" and "Myosotis lingulata race stolonifera" do not return a result yet on test dataportal even if the Misapplied Name flag is set to true.

#4 Updated by Andreas Kohlbecker about 1 month ago

Andreas Müller wrote:

However, http://test.e-taxonomy.eu/cdmserver/euromed/portal/taxon.json?limit=1&start=101471 and http://test.e-taxonomy.eu/cdmserver/euromed/portal/taxon.json?limit=1&start=105803 still do return only an empty page so the problem seems not to be fully solved yet.

I don't have any problems with these requests locally. I will update the data base to the latest production state and test again.

#5 Updated by Andreas Kohlbecker about 1 month ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Andreas Kohlbecker to Andreas Müller

the above problem is solved now

#6 Updated by Andreas Müller about 1 month ago

  • Status changed from Resolved to Closed
  • Assignee changed from Andreas Müller to Andreas Kohlbecker
  • % Done changed from 50 to 100

The failing links work now. For some reason the MAN search works now so we can fully close this ticket.

#7 Updated by Andreas Kohlbecker 30 days ago

Andreas Müller wrote:

The failing links work now. For some reason the MAN search works now so we can fully close this ticket.

It was the same cause for both symptoms.

#8 Updated by Andreas Müller 30 days ago

  • Target version changed from Release 5.18 to Release 5.17

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)