Project

General

Profile

Actions

bug #8377

closed

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

Added by Andreas Kohlbecker almost 5 years ago. Updated over 4 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 RegistrationUIIn ProgressAndreas Müller

Actions
Actions

Also available in: Atom PDF