Project

General

Profile

bug #7342

incomplete bean initialization with specific data causes LIEs

Added by Katja Luther over 1 year ago. Updated 9 months ago.

Status:
New
Priority:
Highest
Assignee:
Category:
cdmlib-remote
Start date:
04/04/2018
Due date:
% Done:

0%

Severity:
critical
Found in Version:
Tags:

Description

this has been observed at the salvador portal where a lot of functionality is broken due to LazyInitializationException which happen lately:

potentially a duplicate of #7331 yet unconfirmed

  • does not return data for search
  • opening the taxa returns "Taxon does not exist"
  • expand ANGIOSPERMAE in the taxontree does not work, expand GYMNOSPERMAE works, but the children can not be expanded

affected web service calls with the resulting LazyInitializationException

http://api.cybertaxonomy.org/salvador/portal/taxon/find.json?doTaxaByCommonNames=0&doMisappliedNames=0&doSynonyms=0&doTaxa=1&pageNumber=0&pageSize=25&query=A*

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:83)
    at eu.etaxonomy.cdm.strategy.cache.agent.TeamDefaultCacheStrategy.getNomenclaturalTitle(TeamDefaultCacheStrategy.java:1)
    at eu.etaxonomy.cdm.model.agent.Team.getNomenclaturalTitle(Team.java:261)
    at sun.reflect.GeneratedMethodAccessor7586.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:79)
    at eu.etaxonomy.cdm.model.agent.TeamOrPersonBase_$$_jvst73e_61.getNomenclaturalTitle(TeamOrPersonBase_$$_jvst73e_61.java)
    at eu.etaxonomy.cdm.strategy.cache.name.TaxonNameDefaultCacheStrategy.getAuthorAndExAuthor(TaxonNameDefaultCacheStrategy.java:260)
    at eu.etaxonomy.cdm.strategy.cache.name.TaxonNameDefaultCacheStrategy.getNonCacheAuthorshipCache(TaxonNameDefaultCacheStrategy.java:202)
    at eu.etaxonomy.cdm.strategy.cache.name.TaxonNameDefaultCacheStrategy.getAuthorshipCache(TaxonNameDefaultCacheStrategy.java:176)
    at eu.etaxonomy.cdm.strategy.cache.name.TaxonNameDefaultCacheStrategy.getTaggedTitle(TaxonNameDefaultCacheStrategy.java:413)
    at eu.etaxonomy.cdm.model.name.TaxonName.getTaggedName(TaxonName.java:1427)
    at eu.etaxonomy.cdm.remote.json.processor.bean.TaxonNameBeanProcessor.processBeanSecondStep(TaxonNameBeanProcessor.java:66)
    at eu.etaxonomy.cdm.remote.json.processor.bean.TaxonNameBeanProcessor.processBeanSecondStep(TaxonNameBeanProcessor.java:25)
    at eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor.processBean(AbstractBeanProcessor.java:167)
    at net.sf.json.JSONObject._fromBean(JSONObject.java:676)

http://api.cybertaxonomy.org/salvador/portal/taxon/33b0cde7-a693-4dfd-a67d-b6ac52b78742/taxonNodes.json

Caused by: org.hibernate.LazyInitializationException: could not initialize proxy - no Session
    at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:148)
    at org.hibernate.Hibernate.initialize(Hibernate.java:62)
    at eu.etaxonomy.cdm.hibernate.HibernateProxyHelper.deproxy(HibernateProxyHelper.java:58)
    at eu.etaxonomy.cdm.model.common.CdmBase.deproxy(CdmBase.java:306)
    at eu.etaxonomy.cdm.strategy.cache.taxon.TaxonBaseDefaultCacheStrategy.getNameTags(TaxonBaseDefaultCacheStrategy.java:95)
    at eu.etaxonomy.cdm.strategy.cache.taxon.TaxonBaseDefaultCacheStrategy.getTaggedTitle(TaxonBaseDefaultCacheStrategy.java:65)
    at eu.etaxonomy.cdm.model.taxon.TaxonBase.getTaggedTitle(TaxonBase.java:221)
    at eu.etaxonomy.cdm.remote.json.processor.bean.TaxonBaseBeanProcessor.processBeanSecondStep(TaxonBaseBeanProcessor.java:54)
    at eu.etaxonomy.cdm.remote.json.processor.bean.TaxonBaseBeanProcessor.processBeanSecondStep(TaxonBaseBeanProcessor.java:25)
    at eu.etaxonomy.cdm.remote.json.processor.bean.AbstractBeanProcessor.processBean(AbstractBeanProcessor.java:167)
    at net.sf.json.JSONObject._fromBean(JSONObject.java:676)

salvador_portal_no_data.png View (9.93 KB) Katja Luther, 04/04/2018 02:21 PM


Related issues

Related to Edit - bug #7331: AdvancedBeanInitializer fails to initialize properties of preinitialized beans in the graph in very special situations New 03/27/2018

History

#1 Updated by Katja Luther over 1 year ago

  • Description updated (diff)

#2 Updated by Katja Luther over 1 year ago

for example portal/classification/b010c84d-6049-45f4-9f13-c065101eaa26/childNodesOf/a7d542c5-1ae2-4edd-9f46-445b9b7f6f0c fails with lazyLoadingException - no Session (all clicks for opening a taxon result in LazyInitiolisationExceptions)

clicking on ANGIOSPERMAE results in:

"This concept of the taxon ANGIOSPERMAE sec. Berendsohn & al. 2009-2016 is not contained as an accepted taxon in the currently chosen classification, but in this one: Nova Silva Cuscatlanica" but "Nova Silva Cuscatlanica" is the default classification and there is only one classification.

#3 Updated by Katja Luther over 1 year ago

  • Related to bug #7331: AdvancedBeanInitializer fails to initialize properties of preinitialized beans in the graph in very special situations added

#4 Updated by Andreas Kohlbecker over 1 year ago

  • Tags set to salvador
  • Subject changed from Salvador portal does not return data to incomplete bean initialization with specific data
  • Description updated (diff)
  • Category set to cdmlib-remote

#5 Updated by Andreas Kohlbecker over 1 year ago

  • Description updated (diff)

#6 Updated by Andreas Kohlbecker over 1 year ago

  • Description updated (diff)

#7 Updated by Andreas Kohlbecker over 1 year ago

  • Subject changed from incomplete bean initialization with specific data to incomplete bean initialization with specific data causes LIEs

ich habe den cdm-server heute morgen um 2018-04-05 08:51:14 neu gestartet, weil der swap-space wieder mal sehr stark beansprucht war. Vorher hatte ich noch dieses Ticket um Stacktraces ergänzt. Seit dem ist das Problem anscheinen verschwunden.

Tritt das Problem möglicherweise dann auf, wenn der Server zu stark belastet ist?

#8 Updated by Andreas Müller over 1 year ago

  • Target version changed from Release 5.0 to Release 5.1

#9 Updated by Andreas Müller over 1 year ago

  • Target version changed from Release 5.1 to Release 5.2

#10 Updated by Andreas Müller about 1 year ago

  • Target version changed from Release 5.2 to Release 5.3

#11 Updated by Katja Luther about 1 year ago

  • Target version changed from Release 5.3 to Release 5.4

#12 Updated by Andreas Müller about 1 year ago

  • Target version changed from Release 5.4 to Release 5.5

#13 Updated by Andreas Müller 9 months ago

  • Target version changed from Release 5.5 to Release 5.6

#14 Updated by Andreas Müller 9 months ago

  • Target version changed from Release 5.6 to Reviewed Next Major Release

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)