Project

General

Profile

bug #6548

NPE in DeduplicationHelper

Added by Katja Luther almost 2 years ago.

Status:
New
Priority:
Highest
Assignee:
Category:
cdmlib
Target version:
Start date:
04/03/2017
Due date:
% Done:

0%

Severity:
normal
Found in Version:

Description

NPE in DeduplicationHelper.merge(). Probably this comes when an object referenced by its uuid is already deleted. Therefore we need to check whether the object still exists. We should implement this for all calls using the uuid as parameter.

Hallo,
nach dem Deduplizieren mehrerer Referenzen im Bulk Editor gab’s folgende Meldung (nicht rot) beim Speichern. Musste den Editor zumachen, die Änderungen waren nicht vollständig gespeichert (mindestens ein nicht mit Daten verknüpftes zusätzliches Referenzduplikat wurde wohl erzeugt). 
Herzlichen Gruß
Walter

login : w.berendsohn
editor version : 4.6.0
server : api.cybertaxonomy.org (cybertaxonomy.org) / caryo_nepenthaceae
schema version : 4.1.0.0.201607300000
os : Windows 7 6.1 amd64
java : 1.8.0_121
java.lang.NullPointerException
                at eu.etaxonomy.cdm.persistence.dao.hibernate.common.DeduplicationHelper.merge(DeduplicationHelper.java:94)
                at eu.etaxonomy.cdm.persistence.dao.hibernate.common.CdmGenericDaoImpl.merge(CdmGenericDaoImpl.java:493)
                at eu.etaxonomy.cdm.api.service.CommonServiceImpl.merge(CommonServiceImpl.java:244)
                at eu.etaxonomy.cdm.api.service.CommonServiceImpl.merge(CommonServiceImpl.java:276)
                at sun.reflect.GeneratedMethodAccessor40443.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)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
                at com.sun.proxy.$Proxy1675.merge(Unknown Source)
                at sun.reflect.GeneratedMethodAccessor40443.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.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:78)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
                at com.sun.proxy.$Proxy2034.merge(Unknown Source)
                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)

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)