Project

General

Profile

bug #8377

TypeDesignationsEditors: Delete must not be allowe before the workingset is saved

Added by Andreas Kohlbecker 4 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Highest
Category:
cdm-vaadin
Target version:
Start date:
07/17/2019
Due date:
% Done:

100%

Severity:
normal
Found in Version:
Tags:

Description

this affects both:

  • NameTypeDesignationEditor
  • SpecimenTypeDesignationWorkingsetEditor

Im RegistrationWorklingsetEditor existierenden Namen eingelesen, SpecimenType aufgerufen und ohne Eingabe versucht durch Delete zu löschen:

Caused by: com.vaadin.event.ListenerMethod$MethodException: Invocation of method buttonClick in eu.etaxonomy.vaadin.mvp.AbstractPopupEditor$$Lambda$119/755247681 failed.
            at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:533)
            at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:200)
            at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:163)
            at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1015)
            at com.vaadin.ui.Button.fireClick(Button.java:377)
            at com.vaadin.ui.Button$1.click(Button.java:54)
            ... 70 more
Caused by: java.lang.NullPointerException
            at eu.etaxonomy.cdm.api.service.OccurrenceServiceImpl.delete(OccurrenceServiceImpl.java:1286)
            at eu.etaxonomy.cdm.api.service.OccurrenceServiceImpl.delete(OccurrenceServiceImpl.java:1277)
            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.$Proxy630.delete(Unknown Source)
            at eu.etaxonomy.cdm.service.SpecimenTypeDesignationWorkingSetServiceImpl.delete(SpecimenTypeDesignationWorkingSetServiceImpl.java:319)
            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.$Proxy736.delete(Unknown Source)
            at eu.etaxonomy.cdm.vaadin.view.name.SpecimenTypeDesignationWorkingsetEditorPresenter.deleteBean(SpecimenTypeDesignationWorkingsetEditorPresenter.java:284)
            at eu.etaxonomy.cdm.vaadin.view.name.SpecimenTypeDesignationWorkingsetEditorPresenter.deleteBean(SpecimenTypeDesignationWorkingsetEditorPresenter.java:76)
            at eu.etaxonomy.vaadin.mvp.AbstractEditorPresenter.onEditorDeleteEvent(AbstractEditorPresenter.java:118)
            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.delete(AbstractPopupEditor.java:428)
            at eu.etaxonomy.vaadin.mvp.AbstractPopupEditor.lambda$new$fad408e6$3(AbstractPopupEditor.java:184)
            at sun.reflect.GeneratedMethodAccessor2942.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
            ... 75 more

Related issues

Related to Edit - task #8201: test all delete functionality in the RegistrationUI New 03/22/2019

Associated revisions

Revision 66af3161 (diff)
Added by Andreas Kohlbecker 3 months ago

fix #8377 disabling delete buttons in editors for new type designations and fixing bug in button state handling

History

#1 Updated by Andreas Kohlbecker 4 months ago

  • Related to task #8201: test all delete functionality in the RegistrationUI added

#2 Updated by Andreas Kohlbecker 4 months ago

  • Target version changed from Release 5.10 to Release 5.9

#3 Updated by Andreas Kohlbecker 3 months ago

  • Target version changed from Release 5.9 to Release 5.10

#4 Updated by Andreas Kohlbecker 3 months ago

  • Subject changed from SpecimenTypeDesignationsEditor: Delete must not be allowe before the workingset is saved to TypeDesignationsEditors: Delete must not be allowe before the workingset is saved
  • Description updated (diff)
  • Status changed from New to In Progress

#5 Updated by Andreas Kohlbecker 3 months ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 50

#6 Updated by Andreas Kohlbecker 3 months ago

  • Assignee changed from Andreas Kohlbecker to Wolf-Henning Kusber

please review

#7 Updated by Wolf-Henning Kusber 2 months ago

  • Assignee changed from Wolf-Henning Kusber to Andreas Kohlbecker
  • % Done changed from 50 to 100

no problems with name types and specimen types to not save erroneously opened editors or close editors with information that should not be saved.

Ticket can be closed.

#8 Updated by Andreas Kohlbecker 2 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)