Project

General

Profile

bug #7381

LIE (LazyInitializationException) when saving SpecimenTypeDesignationWorkingsetEditor for Registration with existing name

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

Status:
Closed
Priority:
Highest
Category:
cdm-vaadin
Target version:
Start date:
04/27/2018
Due date:
% Done:

100%

Severity:
critical
Found in Version:
Tags:

Description

Den Fehler hatten wir schon mal.

http://test.e-taxonomy.eu/cdmserver/phycobank/app/registration#!workingset/d1884df9-be4e-495d-a409-5a5c57a96204
Neue Referenz angelegt,
Dann neues Type specimen angelegt, Collector ausgewählt
Fehler beim Speichern

Viele Grüße,
Henning

Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: eu.etaxonomy.cdm.model.name.TaxonName.typeDesignations, 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.PersistentSet.add(PersistentSet.java:185)
                    at eu.etaxonomy.cdm.model.name.TaxonName.addTypeDesignation(TaxonName.java:2509)
                    at eu.etaxonomy.cdm.service.SpecimenTypeDesignationWorkingSetServiceImpl.save(SpecimenTypeDesignationWorkingSetServiceImpl.java:173)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    at java.lang.reflect.Method.invoke(Method.java:498)
                    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
                    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
                    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
                    at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
                    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281)
                    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
                    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
                    at com.sun.proxy.$Proxy861.save(Unknown Source)
                    at eu.etaxonomy.cdm.vaadin.view.name.SpecimenTypeDesignationWorkingsetEditorPresenter.saveBean(SpecimenTypeDesignationWorkingsetEditorPresenter.java:255)
                    at eu.etaxonomy.cdm.vaadin.view.name.SpecimenTypeDesignationWorkingsetEditorPresenter.saveBean(SpecimenTypeDesignationWorkingsetEditorPresenter.java:66)
                    at eu.etaxonomy.vaadin.mvp.AbstractEditorPresenter.onEditorSaveEvent(AbstractEditorPresenter.java:69)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    at java.lang.reflect.Method.invoke(Method.java:498)
                    at org.vaadin.spring.events.internal.MethodListenerWrapper.publish(MethodListenerWrapper.java:78)
                    at org.vaadin.spring.events.internal.ListenerCollection.publish(ListenerCollection.java:167)
                    at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:116)
                    at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:109)
                    at eu.etaxonomy.vaadin.mvp.AbstractPopupEditor$SaveHandler.postCommit(AbstractPopupEditor.java:265)
                    ... 83 more

Associated revisions

Revision e9c6f795 (diff)
Added by Andreas Kohlbecker 8 months ago

fix #7381 invalid initstrategy was causing LIEs on saving SpecimenTypeDesignationEditor

History

#1 Updated by Andreas Kohlbecker 8 months ago

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

#2 Updated by Andreas Kohlbecker 8 months ago

  • Assignee changed from Andreas Kohlbecker to Wolf-Henning Kusber

The problems on saving the SpecimenTypeDesignationWorkingsetEditor should be fixed now. Please review.

#3 Updated by Andreas Kohlbecker 8 months ago

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

Prima, der Fehler ist jetzt weg, Danke!!!
Viele Grüße,
Henning

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)