Project

General

Profile

bug #8427

LazyInitializationException in NameController.doGetTaggedFullTitle()

Added by Andreas Kohlbecker about 1 year ago. Updated 6 months ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib-remote
Target version:
Start date:
07/30/2019
Due date:
% Done:

100%

Severity:
normal
Found in Version:

Description

found in production server log:

  • /cichorieae/name/ddf9cc53-cdfc-45d5-98f9-1e5ef9a8e4df/taggedFullTitle
  • /cichorieae/name/0cdfee83-aa6a-4a22-a8dc-368781e7ddf2/taggedFullTitle
[cichorieae] 2019-07-30 15:30:42,111 INFO [qtp532445947-4971] [eu.etaxonomy.cdm.remote.controller.NameController] - doGetTaggedFullTitle() - GET: /cichorieae/name/0cdfee83-aa6a-4a22-a8dc-368781e7ddf2/taggedFullTitle
2019-07-30 15:30:42,140 WARN [qtp532445947-4971] [org.eclipse.jetty.servlet.ServletHandler] - 
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.hibernate.LazyInitializationException: could not initialize proxy - no Session
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:981)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:860)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)

...

Caused by: org.hibernate.LazyInitializationException: could not initialize proxy - no Session
        at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:148)
        at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:266)
        at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:68)
        at eu.etaxonomy.cdm.model.agent.TeamOrPersonBase_$$_jvst8bd_63.getNomenclaturalTitle(TeamOrPersonBase_$$_jvst8bd_63.java)
        at eu.etaxonomy.cdm.strategy.cache.reference.DefaultReferenceCacheStrategy.getInRefAuthorPart(DefaultReferenceCacheStrategy.java:744)
        at eu.etaxonomy.cdm.strategy.cache.reference.DefaultReferenceCacheStrategy.getTokenizedNomenclaturalTitelInRef(DefaultReferenceCacheStrategy.java:696)
        at eu.etaxonomy.cdm.strategy.cache.reference.DefaultReferenceCacheStrategy.getTokenizedNomenclaturalTitel(DefaultReferenceCacheStrategy.java:651)
        at eu.etaxonomy.cdm.strategy.cache.reference.DefaultReferenceCacheStrategy.getNomenclaturalCitation(DefaultReferenceCacheStrategy.java:597)
        at eu.etaxonomy.cdm.model.reference.Reference.getNomenclaturalCitation(Reference.java:989)
        at eu.etaxonomy.cdm.strategy.cache.name.TaxonNameDefaultCacheStrategy.getTaggedFullTitle(TaxonNameDefaultCacheStrategy.java:310)
        at eu.etaxonomy.cdm.model.name.TaxonName.getTaggedFullTitle(TaxonName.java:1484)
        at eu.etaxonomy.cdm.remote.controller.NameController.doGetTaggedFullTitle(NameController.java:183)
        at sun.reflect.GeneratedMethodAccessor8495.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222)
        at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
        at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:814)
        at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:737)
        at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:969)
        ... 61 more

Associated revisions

Revision 098b423f (diff)
Added by Andreas Kohlbecker 6 months ago

fix #8427 fixing init strategy for references and authorship

History

#1 Updated by Andreas Kohlbecker about 1 year ago

  • Description updated (diff)

#2 Updated by Andreas Kohlbecker about 1 year ago

  • Target version changed from Release 5.10 to Release 5.11

#3 Updated by Andreas Kohlbecker 11 months ago

  • Target version changed from Release 5.11 to Release 5.12

#4 Updated by Andreas Kohlbecker 8 months ago

  • Target version changed from Release 5.12 to Release 5.13

#5 Updated by Andreas Kohlbecker 6 months ago

  • Description updated (diff)

#7 Updated by Andreas Kohlbecker 6 months ago

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

#8 Updated by Andreas Kohlbecker 6 months ago

  • Status changed from Resolved to Closed
  • % Done changed from 50 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)