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

RS: survey as resource

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14.1.3
    • Component/s: None
    • Labels:
      None

      Description

      To reproduce

      1. Set a survey learning resource to "published" and add some participants
      2. Fill out the survey as participant
      3. Press ENTER
      2019-09-16 13:50:31.868 [ajp-nio2-8032-exec-46] ERROR  EvaluationFormExecutionController ^%^ I943769-J171252 
      org.olat.modules.forms.ui.EvaluationFormExecutionController
      https://olat.xyz.ch/auth/RepositoryEntry/564723745
      Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
      Saving evaluation form response failed! javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value : org.olat.modules.forms.model.jpa.EvaluationFormResponseImpl.session
      at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:154) 
      at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181) 
      at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188) 
      at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:795)
      at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:773)
      at org.olat.modules.forms.manager.EvaluationFormResponseDAO.createResponse(EvaluationFormResponseDAO.java:60)
      at org.olat.modules.forms.manager.EvaluationFormManagerImpl.createStringResponse(EvaluationFormManagerImpl.java:351)
      at org.olat.modules.forms.ui.SingleChoiceController.saveResponse(SingleChoiceController.java:139)
      at org.olat.modules.forms.ui.model.EvaluationFormResponseControllerElement.saveResponse(EvaluationFormResponseControllerElement.java:86)
      at org.olat.modules.forms.ui.model.ExecutionFragment.save(ExecutionFragment.java:64)
      at org.olat.modules.forms.ui.EvaluationFormExecutionController.doSaveResponses(EvaluationFormExecutionController.java:324)
      at org.olat.modules.forms.ui.EvaluationFormExecutionController.formOK(EvaluationFormExecutionController.java:292)
      at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:389)
      at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:206)
      at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240)
      at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
      at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:238)
      at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.fireValidation(FormWrapperContainer.java:119)
      at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:441)
      at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:428)
      at org.olat.core.gui.components.form.flexible.impl.elements.FormSubmit.dispatchFormRequest(FormSubmit.java:71)
      at org.olat.core.gui.components.form.flexible.impl.FormItemImpl.doDispatchFormRequest(FormItemImpl.java:561)
      at org.olat.core.gui.components.form.flexible.impl.Form.evalFormRequest(Form.java:296)
      at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.doDispatchRequest(FormWrapperContainer.java:100)
      at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
      at org.olat.core.gui.components.Window.doDispatchToComponent(Window.java:1201)
      at org.olat.core.gui.components.Window.dispatchRequest(Window.java:398)
      at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:282)
      at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
      at org.olat.dispatcher.AuthenticatedDispatcher.processValidDispatchURI(AuthenticatedDispatcher.java:263)
      at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:184)
      at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:269)
      at org.olat.core.servlets.OpenOLATServlet.doPost(OpenOLATServlet.java:216)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
      at org.olat.core.servlets.OpenOLATServlet.service(OpenOLATServlet.java:160)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.olat.core.servlets.HeadersFilter.doFilter(HeadersFilter.java:95)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
      at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:479)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
      at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1699)
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1050)
      at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$4.completed(Nio2Endpoint.java:630)
      at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$4.completed(Nio2Endpoint.java:608)
      at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
      at sun.nio.ch.Invoker$2.run(Invoker.java:218)
      at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:748) Caused by: org.hibernate.PropertyValueException: not-null property references a null or transient value : org.olat.modules.forms.model.jpa.EvaluationFormResponseImpl.session
      at org.hibernate.engine.internal.Nullability.checkNullability(Nullability.java:111)
      at org.hibernate.engine.internal.Nullability.checkNullability(Nullability.java:55)
      at org.hibernate.action.internal.AbstractEntityInsertAction.nullifyTransientReferencesIfNotAlready(AbstractEntityInsertAction.java:116)
      at org.hibernate.action.internal.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:72)
      at org.hibernate.engine.spi.ActionQueue.execute(ActionQueue.java:645)
      at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:282)
      at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:263)
      at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:317)
      at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:335)
      at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:292)
      at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:198)
      at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:128)
      at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:192)
      at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:135)
      at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:62)
      at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:788)
      ... 62 more
      

      And after

      2019-09-16 13:50:31.875 [ajp-nio2-8032-exec-46] ERROR  DBRuntimeException ^%^ I943769-J171259 ^%^ org.olat.core.logging.DBRuntimeException
      https://olat.xyz.ch/auth/RepositoryEntry/564723745 ^%^ Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0
      **RedScreen** commit failed, rollback transaction
      
      <dispatchinfo>
      	<componentinfo>
      		<compname>ffo_main_execute</compname>
      		<compclass>org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer</compclass>
      		<extendedinfo>n/a</extendedinfo>
      		<event>
      			<class&amp;gt;org.olat.core.gui.control.Event</class&amp;gt;
      			<command>validation ok</command>
      			<tostring>com:validation ok,org.olat.core.gui.control.Event@d62b3f02</tostring>
      		</event>
      	</componentinfo> 
      	<controllerinfo>
      		<controllername>org.olat.modules.forms.ui.EvaluationFormExecutionController</controllername>
      		<controllername>org.olat.modules.forms.ui.EvaluationFormRuntimeController</controllername>
      		<controllername>org.olat.core.commons.fullWebApp.BaseFullWebappController</controllername>
      	</controllerinfo>
      </dispatchinfo>
      
      org.olat.core.logging.DBRuntimeException: commit failed, rollback transaction
       at org.olat.core.commons.persistence.DBImpl.commit(DBImpl.java:573)
       at org.olat.modules.forms.ui.EvaluationFormExecutionController.doSaveResponses(EvaluationFormExecutionController.java:330)
       at org.olat.modules.forms.ui.EvaluationFormExecutionController.formOK(EvaluationFormExecutionController.java:292)
       at org.olat.core.gui.components.form.flexible.impl.FormBasicController.event(FormBasicController.java:389)
       at org.olat.core.gui.control.DefaultController.dispatchEvent(DefaultController.java:206)
       at org.olat.core.gui.components.AbstractComponent$1.run(AbstractComponent.java:240)
       at org.olat.core.logging.activity.ThreadLocalUserActivityLoggerInstaller.runWithUserActivityLogger(ThreadLocalUserActivityLoggerInstaller.java:108)
       at org.olat.core.gui.components.AbstractComponent.fireEvent(AbstractComponent.java:238)
       at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.fireValidation(FormWrapperContainer.java:119)
       at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:441)
       at org.olat.core.gui.components.form.flexible.impl.Form.submit(Form.java:428)
       at org.olat.core.gui.components.form.flexible.impl.elements.FormSubmit.dispatchFormRequest(FormSubmit.java:71)
       at org.olat.core.gui.components.form.flexible.impl.FormItemImpl.doDispatchFormRequest(FormItemImpl.java:561)
       at org.olat.core.gui.components.form.flexible.impl.Form.evalFormRequest(Form.java:296)
       at org.olat.core.gui.components.form.flexible.impl.FormWrapperContainer.doDispatchRequest(FormWrapperContainer.java:100)
       at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
       at org.olat.core.gui.components.Window.doDispatchToComponent(Window.java:1201)
       at org.olat.core.gui.components.Window.dispatchRequest(Window.java:398)
       at org.olat.core.gui.components.Window.doDispatchRequest(Window.java:282)
       at org.olat.core.gui.components.AbstractComponent.dispatchRequest(AbstractComponent.java:193)
      at org.olat.dispatcher.AuthenticatedDispatcher.processValidDispatchURI(AuthenticatedDispatcher.java:263)
       at org.olat.dispatcher.AuthenticatedDispatcher.execute(AuthenticatedDispatcher.java:184)
      at org.olat.core.servlets.OpenOLATServlet.executeUserRequest(OpenOLATServlet.java:269)
       at org.olat.core.servlets.OpenOLATServlet.doPost(OpenOLATServlet.java:216)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
      at org.olat.core.servlets.OpenOLATServlet.service(OpenOLATServlet.java:160)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.olat.core.servlets.HeadersFilter.doFilter(HeadersFilter.java:95)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
      at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:479)
      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:800)
      at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1699)
      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
      at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1050)
      at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$4.completed(Nio2Endpoint.java:630)
      at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$4.completed(Nio2Endpoint.java:608)
      at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
      at sun.nio.ch.Invoker$2.run(Invoker.java:218)
      at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:748) Caused by: org.olat.core.logging.DBRuntimeException: Try to commit a transaction in error status
      at org.olat.core.commons.persistence.DBImpl.commit(DBImpl.java:537)
      ... 56 more Caused by: java.lang.Exception: olat_rtexception_stackgenerator
      at org.olat.core.logging.OLATRuntimeException.<init>(OLATRuntimeException.java:57)
      at org.olat.core.logging.OLATRuntimeException.<init>(OLATRuntimeException.java:79)
      at org.olat.core.logging.DBRuntimeException.<init>(DBRuntimeException.java:44)
      ... 57 more
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m