Project

General

Profile

bug #7687

NPE in TypeDesignationSetManager

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

Status:
Closed
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
08/27/2018
Due date:
% Done:

100%

Severity:
critical
Found in Version:
Tags:

Description

Arbeit mit Vaadin http://test.e-taxonomy.eu/cdmserver/phycobank_production/app/registration#!workingset/8295ec6c-d84f-409a-a83c-0e5215a94fe3
Gymnodinium alaskense Moestrup & Calado
Name angelegt als Validierung,
anschließend Specimen Type angelegt, gespeichert.
Noch mal den Namen zum Korrekturlesen geöffnet und speichern geklickt, da nichts passierte auf Abbrechen geklickt und Fehlermeldung bekommen.

Viele Grüße,
Henning

java.lang.NullPointerException
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.stringify(TypeDesignationSetManager.java:522)
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.stringify(TypeDesignationSetManager.java:458)
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.mapTypeDesignation(TypeDesignationSetManager.java:167)
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.lambda$mapAndSort$0(TypeDesignationSetManager.java:146)
                    at java.lang.Iterable.forEach(Iterable.java:75)
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.mapAndSort(TypeDesignationSetManager.java:146)
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.<init>(TypeDesignationSetManager.java:115)
                    at eu.etaxonomy.cdm.api.service.dto.RegistrationDTO.<init>(RegistrationDTO.java:110)
                    at eu.etaxonomy.cdm.api.service.registration.RegistrationWorkingSetService.lambda$makeDTOs$0(RegistrationWorkingSetService.java:351)
                    at java.util.ArrayList.forEach(ArrayList.java:1249)
                    at eu.etaxonomy.cdm.api.service.registration.RegistrationWorkingSetService.makeDTOs(RegistrationWorkingSetService.java:351)
                    at eu.etaxonomy.cdm.api.service.registration.RegistrationWorkingSetService.loadWorkingSetByReferenceUuid(RegistrationWorkingSetService.java:276)
                    at sun.reflect.GeneratedMethodAccessor2320.invoke(Unknown Source)
                    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)

Danach kam ein Internal Error, Escape und Aufruf von “List” mit Suche nach „Gymnodinium“ führte zu folgendem Error:

com.vaadin.server.ServerRpcManager$RpcInvocationException: Unable to invoke method click in com.vaadin.shared.ui.button.ButtonServerRpc
                    at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:162)
                    at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:119)
                    at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:437)
                    at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:402)
....
Caused by: java.lang.NullPointerException
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.stringify(TypeDesignationSetManager.java:522)
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.stringify(TypeDesignationSetManager.java:458)
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.mapTypeDesignation(TypeDesignationSetManager.java:167)
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.lambda$mapAndSort$0(TypeDesignationSetManager.java:146)
                    at java.lang.Iterable.forEach(Iterable.java:75)
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.mapAndSort(TypeDesignationSetManager.java:146)
                    at eu.etaxonomy.cdm.api.service.name.TypeDesignationSetManager.<init>(TypeDesignationSetManager.java:115)
                    at eu.etaxonomy.cdm.api.service.dto.RegistrationDTO.<init>(RegistrationDTO.java:110)
                    at eu.etaxonomy.cdm.api.service.registration.RegistrationWorkingSetService.lambda$makeDTOs$0(RegistrationWorkingSetService.java:351)
                    at java.util.ArrayList.forEach(ArrayList.java:1249)
                    at eu.etaxonomy.cdm.api.service.registration.RegistrationWorkingSetService.makeDTOs(RegistrationWorkingSetService.java:351)
                    at eu.etaxonomy.cdm.api.service.registration.RegistrationWorkingSetService.convertToDTOPager(RegistrationWorkingSetService.java:194)
                    at eu.etaxonomy.cdm.api.service.registration.RegistrationWorkingSetService.pageDTOs(RegistrationWorkingSetService.java:223)
                    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)
...

Associated revisions

Revision 73e4daae (diff)
Added by Andreas Müller 4 months ago

fix NPE in TypeDesignationSetManager.stringify(TypeDesignationSetManager.java:522)

History

#1 Updated by Andreas Kohlbecker 4 months ago

Hallo,

habe ich vorläufig gefixt: 73e4daa. Wird heute Nacht eingespielt.

Andreas K., schaust du nochmal drauf, wenn du zurück bist.

Viele Grüße,
Andreas M.

#2 Updated by Andreas Kohlbecker 4 months ago

  • Status changed from New to Closed
  • Assignee changed from Andreas Kohlbecker to Andreas Müller
  • % Done changed from 0 to 100

Fix looks ok!

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)