Project

General

Profile

Actions

bug #9193

closed

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

Added by Andreas Kohlbecker over 2 years ago. Updated over 2 years ago.

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

100%

Estimated time:
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)

Actions #1

Updated by Andreas Kohlbecker over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50
Actions #2

Updated by Andreas Kohlbecker over 2 years ago

  • Assignee changed from Andreas Kohlbecker to Andreas Müller
Actions #3

Updated by Andreas Müller over 2 years 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.

Actions #4

Updated by Andreas Kohlbecker over 2 years 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.

Actions #5

Updated by Andreas Kohlbecker over 2 years ago

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

the above problem is solved now

Actions #6

Updated by Andreas Müller over 2 years 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.

Actions #7

Updated by Andreas Kohlbecker over 2 years 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.

Actions #8

Updated by Andreas Müller over 2 years ago

  • Target version changed from Release 5.18 to Release 5.17
Actions

Also available in: Atom PDF