Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-4397

RS: lazy loading issue in group task

    XMLWordPrintable

    Details

      Description

      Unwanted lazy loading issue where the cache send a NullPointerException instead of the LazyLoadingException. Probably dependency of the version of Infinispan and Hibernate.

      ERROR  OLATRuntimeException  org.olat.core.logging.OLATRuntimeException  **RedScreen**
      
      <dispatchinfo>
      	<componentinfo>
      		<compname>link_0</compname>
      		<compclass>org.olat.core.gui.components.link.Link</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&gt;org.olat.core.gui.control.Event</class&gt;
      			<command>link_0</command>
      			<tostring>com:link_0,org.olat.core.gui.control.Event@be46a54a</tostring>
      		</event>
      	</componentinfo>
      		<controllerinfo>
      			<controllername>org.olat.core.gui.control.generic.modal.DialogBoxController</controllername>
      			<controllername>org.olat.course.nodes.gta.ui.GTAParticipantController</controllername>
      			<controllername>org.olat.course.nodes.gta.ui.GTARunController</controllername>
      			<controllername>org.olat.course.run.RunMainController</controllername>
      			<controllername>org.olat.course.run.CourseRuntimeController</controllername>
      			<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      		</controllerinfo>
      	</dispatchinfo>
      	
      	org.olat.core.logging.OLATRuntimeException 
               org.olat.core.gui.exception.ExceptionWindowController.<init>(ExceptionWindowController.java:120) 
               org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:57) 
               org.olat.core.gui.exception.MsgFactory.createMessageChiefController(MsgFactory.java:46) 
               org.olat.core.gui.components.Window.dispatchRequest(Window.java:586) 
               org.olat.core.gui.components.Window.doDispatchRequest(Window.java:282) 
               org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193) 
               org.olat.dispatcher.AuthenticatedDispatcher.processValidDispatchURI(AuthenticatedDispatcher.java:263) 
               org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:184) 
               org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:269) 
               org.olat.core.servlets.OpenOLATServlet.doPost(OpenOLATServlet.java:216) 
               javax.servlet.http.HttpServlet.service(HttpServlet.java:660) 
               org.olat.core.servlets.OpenOLATServlet.service(OpenOLATServlet.java:160) 
               javax.servlet.http.HttpServlet.service(HttpServlet.java:741) 
               org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) 
               org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
               org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) 
               org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
               org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
               org.olat.core.servlets.HeadersFilter.doFilter(HeadersFilter.java:95) 
               org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) 
               org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) 
               org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) 
               org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) 
               org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493) 
               org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) 
               org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) 
               org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) 
               org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) 
               org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:476) 
               org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) 
               org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:808) 
               org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498) 
               org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) 
               java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) 
               java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) 
               org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) 
               java.lang.Thread.run(Thread.java:748)
         Caused by:
               java.lang.NullPointerException 
               java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1645) 
               org.hibernate.stat.internal.StatisticsImpl.getEntityStatistics(StatisticsImpl.java:229) 
               org.hibernate.stat.internal.StatisticsImpl.fetchEntity(StatisticsImpl.java:274) 
               org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:488) 
               org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:450) 
               org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:201) 
               org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:98) 
               org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:71) 
               org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1286) 
               org.hibernate.internal.SessionImpl.immediateLoad(SessionImpl.java:1118) 
               org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:178) 
               org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:309) 
               org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor.intercept(ByteBuddyInterceptor.java:45) 
               org.hibernate.proxy.ProxyConfiguration$InterceptorDispatcher.intercept(ProxyConfiguration.java:95) 
               org.olat.repository.model.RepositoryEntryLifecycle$HibernateProxy$UHafTlDs.getValidTo(Unknown Source) 
               org.olat.course.run.scoring.ScoreAccounting$AssessableTreeVisitor.getRepositoryEntryLifecycle(ScoreAccounting.java:313) 
               org.olat.course.run.scoring.ScoreAccounting$AssessableTreeVisitor.calculateScoreEvaluation(ScoreAccounting.java:232) 
               org.olat.course.run.scoring.ScoreAccounting$AssessableTreeVisitor.evalCourseNode(ScoreAccounting.java:173) 
               org.olat.course.run.scoring.ScoreAccounting$AssessableTreeVisitor.visit(ScoreAccounting.java:147) 
               org.olat.core.util.tree.TreeVisitor.doVisit(TreeVisitor.java:72) 
               org.olat.core.util.tree.TreeVisitor.doVisit(TreeVisitor.java:68) 
               org.olat.core.util.tree.TreeVisitor.visitAll(TreeVisitor.java:57) 
               org.olat.course.run.scoring.ScoreAccounting.evaluateAll(ScoreAccounting.java:113) 
               org.olat.course.assessment.manager.CourseAssessmentManagerImpl.updateLastModifications(CourseAssessmentManagerImpl.java:384) 
               org.olat.course.nodes.GTACourseNode.updateLastModifications(GTACourseNode.java:1065) 
               org.olat.course.nodes.gta.manager.GTAManagerImpl.syncAssessmentEntry(GTAManagerImpl.java:1705) 
               org.olat.course.nodes.gta.manager.GTAManagerImpl.updateTask(GTAManagerImpl.java:1589) 
               org.olat.course.nodes.gta.manager.GTAManagerImpl.submitTask(GTAManagerImpl.java:1527) 
               org.olat.course.nodes.gta.ui.GTAParticipantController.doSubmitDocuments(GTAParticipantController.java:379) 
               org.olat.course.nodes.gta.ui.GTAParticipantController.event(GTAParticipantController.java:852) 
               org.olat.core.gui.control.DefaultController$1.run(DefaultController.java:250) 
               org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108) 
               org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:247) 
               org.olat.core.gui.control.DefaultController.fireEvent(DefaultController.java:194) 
               org.olat.core.gui.control.generic.modal.DialogBoxController.event(DialogBoxController.java:222) 
               org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:206) 
               org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240) 
               org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108) 
               org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:238) 
               org.olat.core.gui.components.link.Link.dispatch(Link.java:205) 
               org.olat.core.gui.components.link.Link.doDispatchRequest(Link.java:192) 
               org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193) 
               org.olat.core.gui.components.Window.doDispatchToComponent(Window.java:1202) 
               org.olat.core.gui.components.Window.dispatchRequest(Window.java:398)  ... 33 more
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            srosse Stéphane Rossé
            Tester:
            Mandy Menzel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: