java.util.concurrent.ExecutionException: java.lang.IllegalStateException: The DAO Method that calls createNaturalIdQuery must be annotated with @OpenEntityManager or @Transactional

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via jasig.org by Unknown author, 2 years ago
java.lang.IllegalStateException: The DAO Method that calls createNaturalIdQuery must be annotated with @OpenEntityManager or @Transactional
via Apereo Issues by Drew Wills, 1 year ago
java.lang.IllegalStateException: The DAO Method that calls createNaturalIdQuery must be annotated with @OpenEntityManager or @Transactional
via Apereo Issues by Drew Wills, 1 year ago
java.lang.IllegalStateException: The DAO Method that calls createNaturalIdQuery must be annotated with @OpenEntityManager or @Transactional
via Oracle Community by 2655038, 1 year ago
com.sybase.jdbc4.jdbc.SybSQLException: RAISERROR executed: Valid table types: TABLE, BASE, SYSTEM, VIEW, GLOBAL TEMPORARY or null
via GitHub by GeneralLuzi
, 7 months ago
java.lang.IllegalStateException: Could not update status, because callback is missing
via GitHub by lloonngg
, 1 year ago
org.openrdf.query.MalformedQueryException: Encountered " "with" "WITH "" at line 8, column 1. Was expecting one of: "base" ... "prefix" ... "select" ... "construct" ... "describe" ... "ask" ...
java.lang.IllegalStateException: No transactional EntityManager available
at com.sun.proxy.$Proxy259.unwrap(Unknown Source)
at org.jasig.portal.jpa.BaseJpaDao.createNaturalIdQuery(BaseJpaDao.java:149)
at org.jasig.portal.permission.dao.jpa.JpaPermissionOwnerDao.getPermissionOwner(JpaPermissionOwnerDao.java:96)
at org.jasig.portal.permission.dao.jpa.JpaPermissionOwnerDao.getPermissionActivity(JpaPermissionOwnerDao.java:133)
at sun.reflect.GeneratedMethodAccessor179.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.aop.aspectj.AspectJAfterThrowingAdvice.invoke(AspectJAfterThrowingAdvice.java:55)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at com.sun.proxy.$Proxy268.getPermissionActivity(Unknown Source)
at org.jasig.portal.security.provider.AuthorizationImpl.doesPrincipalHavePermission(AuthorizationImpl.java:542)
at org.jasig.portal.security.provider.AuthorizationImpl.doesPrincipalHavePermission(AuthorizationImpl.java:497)
at org.jasig.portal.security.provider.AuthorizationPrincipalImpl.hasPermission(AuthorizationPrincipalImpl.java:235)
at org.jasig.portal.portlets.lookup.PersonLookupHelperImpl.getVisiblePerson(PersonLookupHelperImpl.java:442)
at org.jasig.portal.portlets.lookup.PersonLookupHelperImpl$GetVisiblePerson.call(PersonLookupHelperImpl.java:338)
at org.jasig.portal.portlets.lookup.PersonLookupHelperImpl$GetVisiblePerson.call(PersonLookupHelperImpl.java:314)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 6 months ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.