Project

General

Profile

Actions

bug #7699

open

NPE in CdmTransientEntityCacher.getCacheElement()

Added by Katja Luther over 5 years ago. Updated 10 months ago.

Status:
In Progress
Priority:
Highest
Category:
taxeditor
Target version:
Start date:
Due date:
% Done:

10%

Estimated time:
Severity:
major
Found in Version:

Description

NPE when searching for specimen (but probably not only then).

#9174 (duplicate) suggests that it happens when the TaxEditor wasn't used longer time.

#note-21 suggests it explicitly happens for bulk editors when closed during an (asynchronous) specimen search. However, it is unlikely that this is the only reason (if at all) as it happens also in other contexts and as the last sentence in #note-21 mentions it leads to a situation where TaxEditor needs to be restarted or at least reconnected, so it is not only the problem of a single session/bulk editor.

login : 
editor version : 5.3.0.201808280657
server :  ()
schema version : 
os : Windows Server 2012 R2 6.3 amd64
java : 1.8.0_121
org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://test.e-taxonomy.eu:80/cdmserver/rem_conf_am/remoting/occurrence.service]; nested exception is java.lang.NullPointerException
                at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:216)
                at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:147)
                at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
                at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
                at com.sun.proxy.$Proxy96.findByTitle(Unknown Source)
                at eu.etaxonomy.taxeditor.store.SearchManager.findOccurrences(SearchManager.java:158)
                at eu.etaxonomy.taxeditor.store.SearchManager.findOccurrences(SearchManager.java:115)
                at eu.etaxonomy.taxeditor.bulkeditor.input.OccurrenceEditorInput.listEntities(OccurrenceEditorInput.java:70)
                at eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput.lambda$0(AbstractBulkEditorInput.java:219)
                at org.eclipse.core.runtime.jobs.Job$2.run(Job.java:186)
                at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.NullPointerException
                at eu.etaxonomy.cdm.cache.CdmTransientEntityCacher.getCacheElement(CdmTransientEntityCacher.java:254)
                at eu.etaxonomy.cdm.cache.CdmTransientEntityCacher.getFromCache(CdmTransientEntityCacher.java:259)
                at eu.etaxonomy.cdm.cache.CdmTransientEntityCacher.put(CdmTransientEntityCacher.java:235)
                at eu.etaxonomy.cdm.cache.CacheLoader.load(CacheLoader.java:273)
                at eu.etaxonomy.cdm.cache.CacheLoader.loadRecursive(CacheLoader.java:298)
                at eu.etaxonomy.cdm.cache.CacheLoader.loadRecursive(CacheLoader.java:87)
                at eu.etaxonomy.cdm.cache.CacheLoader.load(CacheLoader.java:189)
                at eu.etaxonomy.cdm.cache.CacheLoader.load(CacheLoader.java:160)
                at eu.etaxonomy.cdm.cache.CacheLoader.load(CacheLoader.java:72)
                at eu.etaxonomy.cdm.cache.CdmTransientEntityCacher.load(CdmTransientEntityCacher.java:132)
                at eu.etaxonomy.taxeditor.session.CdmEntitySession.load(CdmEntitySession.java:77)
                at eu.etaxonomy.taxeditor.session.CdmEntitySessionManager.load(CdmEntitySessionManager.java:131)
                at eu.etaxonomy.taxeditor.service.CdmServiceRequestExecutor.doExecuteRequest(CdmServiceRequestExecutor.java:75)
                at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:138)
                at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:194)
                at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:176)
                at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:144)
                ... 9 more


Related issues

Related to EDIT - bug #10186: Problems with session handling in taxeditorClosedKatja Luther

Actions
Related to EDIT - bug #10252: Session handling in name bulk editor not correctNewKatja Luther

Actions
Has duplicate EDIT - bug #8626: NullPointerException (NPE) on saving Specimen Editor (list)DuplicateKatja Luther

Actions
Has duplicate EDIT - bug #8923: NullPointerException (NPE) after attempt to save invalid Group name DuplicateKatja Luther

Actions
Has duplicate EDIT - bug #9174: After longer inactivity NPE for cacheDuplicateKatja Luther

Actions
Actions

Also available in: Atom PDF