Project

General

Profile

bug #9387

LazyInitializationException (LIE) in NameController.doGetTypeDesignationsInHomotypicalGroup()

Added by Andreas Kohlbecker 10 months ago. Updated 10 months ago.

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

100%

Severity:
normal
Found in Version:

Description

doGetTypeDesignationsInHomotypicalGroup()GET: /cdmserver/greece_bupleurum_01_with_onthology/name/b0372cc9-cc9e-46c8-a673-5be8ad2206e3/typeDesignationsInHomotypicalGroup.json

Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: eu.etaxonomy.cdm.model.name.TypeDesignationBase.registrations, 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.initialize(AbstractPersistentCollection.java:563)
        at org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:132)
        at org.hibernate.collection.internal.PersistentSet.iterator(PersistentSet.java:163)
        at java.util.AbstractCollection.addAll(AbstractCollection.java:343)
        at eu.etaxonomy.cdm.remote.service.RegistrableEntityFilter.filterPublishedOnly(RegistrableEntityFilter.java:107)
        at eu.etaxonomy.cdm.remote.controller.NameController.doGetTypeDesignationsInHomotypicalGroup(NameController.java:191)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

Associated revisions

Revision f836859b (diff)
Added by Andreas Kohlbecker 10 months ago

fix #9387 extending init strategy

History

#1 Updated by Andreas Kohlbecker 10 months ago

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

#2 Updated by Andreas Kohlbecker 10 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)