Project

General

Profile

Actions

bug #8377

closed

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

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

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

100%

Estimated time:
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 RegistrationUINewWolf-Henning Kusber

Actions
Actions #1

Updated by Andreas Kohlbecker over 3 years ago

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

Updated by Andreas Kohlbecker over 3 years ago

  • Target version changed from Release 5.10 to Release 5.9
Actions #3

Updated by Andreas Kohlbecker over 3 years ago

  • Target version changed from Release 5.9 to Release 5.10
Actions #4

Updated by Andreas Kohlbecker over 3 years 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
Actions #5

Updated by Andreas Kohlbecker over 3 years ago

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

Updated by Andreas Kohlbecker over 3 years ago

  • Assignee changed from Andreas Kohlbecker to Wolf-Henning Kusber

please review

Actions #7

Updated by Wolf-Henning Kusber over 3 years 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.

Actions #8

Updated by Andreas Kohlbecker over 3 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF