org.kuali.student.r2.common.exceptions.OperationFailedException: Failed to update State


Solutions on the web

Solution icon of kuali
via Kuali JIRA by Mike Riley, 1 year ago
Failed to update State

Solution icon of kuali
via Kuali JIRA by Mike Riley, 1 year ago
Failed to update State

Stack trace

org.kuali.student.r2.common.exceptions.OperationFailedException: Failed to update State
	at org.kuali.student.enrollment.class2.courseoffering.service.impl.CourseOfferingServiceImpl.changeActivityOfferingState(CourseOfferingServiceImpl.java:3284)
	at sun.reflect.GeneratedMethodAccessor1162.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at com.sun.proxy.$Proxy321.changeActivityOfferingState(Unknown Source)
	at org.kuali.student.enrollment.class2.courseoffering.service.decorators.CourseOfferingServiceDecorator.changeActivityOfferingState(CourseOfferingServiceDecorator.java:610)
	at org.kuali.student.enrollment.class1.state.impl.AOStateHelperImpl.updateState(AOStateHelperImpl.java:38)
	at org.kuali.student.r2.core.class1.state.service.impl.StateTransitionsHelperImpl.processStatePropagations(StateTransitionsHelperImpl.java:218)
	at org.kuali.student.enrollment.class2.courseofferingset.service.impl.CourseOfferingSetServiceImpl.changeSocState(CourseOfferingSetServiceImpl.java:793)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at com.sun.proxy.$Proxy318.changeSocState(Unknown Source)
	at org.kuali.student.enrollment.class2.courseofferingset.service.decorators.CourseOfferingSetServiceDecorator.changeSocState(CourseOfferingSetServiceDecorator.java:358)
	at org.kuali.student.enrollment.class2.courseofferingset.service.decorators.CourseOfferingSetServiceDecorator.changeSocState(CourseOfferingSetServiceDecorator.java:358)
	at org.kuali.student.enrollment.class2.courseofferingset.service.impl.CourseOfferingSetPublishingHelper$SocMassPublishingRunner.doMpe(CourseOfferingSetPublishingHelper.java:143)
	at org.kuali.student.enrollment.class2.courseofferingset.service.impl.CourseOfferingSetPublishingHelper$SocMassPublishingRunner.run(CourseOfferingSetPublishingHelper.java:115)
	at java.lang.Thread.run(Thread.java:724)
Caused by: javax.persistence.TransactionRequiredException: no transaction is in progress
	at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:957)
	at sun.reflect.GeneratedMethodAccessor828.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:366)
	at com.sun.proxy.$Proxy277.flush(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor828.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:241)
	at com.sun.proxy.$Proxy277.flush(Unknown Source)
	at org.kuali.student.enrollment.class1.lui.service.impl.LuiServiceImpl.updateLui(LuiServiceImpl.java:361)
	at sun.reflect.GeneratedMethodAccessor888.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
	at com.sun.proxy.$Proxy313.updateLui(Unknown Source)
	at org.kuali.student.enrollment.class1.lui.service.decorators.LuiServiceCacheDecorator.updateLui(LuiServiceCacheDecorator.java:73)
	at org.kuali.student.enrollment.class1.lui.service.decorators.LuiServiceValidationDecorator.updateLui(LuiServiceValidationDecorator.java:95)
	at org.kuali.student.enrollment.class2.courseoffering.service.impl.CourseOfferingServiceImpl.changeActivityOfferingState(CourseOfferingServiceImpl.java:3282)
	... 34 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
20 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago