java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()

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 jpasecurity by nurquiza
, 1 year ago
A JTA EntityManager cannot use getTransaction()
via com.br by Unknown author, 2 years ago
A JTA EntityManager cannot use getTransaction()
via com.br by Unknown author, 1 year ago
A JTA EntityManager cannot use getTransaction()
via com.br by Unknown author, 2 years ago
via Coderanch by Dave Alvarado, 1 year ago
JTA EntityManager cannot access a transactions
via Stack Overflow by Andreas_D
, 2 years ago
A JTA EntityManager cannot use getTransaction()
java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()
at org.hibernate.ejb.AbstractEntityManagerImpl.getTransaction(AbstractEntityManagerImpl.java:814)
at net.sf.jpasecurity.persistence.compiler.EntityManagerEvaluator.evaluate(EntityManagerEvaluator.java:105)
at net.sf.jpasecurity.jpql.compiler.QueryEvaluator.visit(QueryEvaluator.java:866)
at net.sf.jpasecurity.jpql.compiler.QueryEvaluator.visit(QueryEvaluator.java:98)
at net.sf.jpasecurity.jpql.parser.JpqlSubselect.jjtAccept(JpqlSubselect.java:18)
at net.sf.jpasecurity.jpql.parser.SimpleNode.visit(SimpleNode.java:113)
at net.sf.jpasecurity.jpql.compiler.QueryEvaluator.visit(QueryEvaluator.java:294)
at net.sf.jpasecurity.jpql.compiler.QueryEvaluator.visit(QueryEvaluator.java:98)
at net.sf.jpasecurity.jpql.parser.JpqlIn.jjtAccept(JpqlIn.java:18)
at net.sf.jpasecurity.jpql.parser.SimpleNode.visit(SimpleNode.java:113)
at net.sf.jpasecurity.jpql.compiler.QueryEvaluator.visit(QueryEvaluator.java:754)
at net.sf.jpasecurity.jpql.compiler.QueryEvaluator.visit(QueryEvaluator.java:98)
at net.sf.jpasecurity.jpql.parser.JpqlBrackets.jjtAccept(JpqlBrackets.java:18)
at net.sf.jpasecurity.jpql.parser.SimpleNode.visit(SimpleNode.java:113)
at net.sf.jpasecurity.jpql.compiler.QueryEvaluator.visit(QueryEvaluator.java:197)
at net.sf.jpasecurity.jpql.compiler.QueryEvaluator.visit(QueryEvaluator.java:98)
at net.sf.jpasecurity.jpql.parser.JpqlOr.jjtAccept(JpqlOr.java:18)
at net.sf.jpasecurity.jpql.parser.SimpleNode.visit(SimpleNode.java:113)
at net.sf.jpasecurity.jpql.compiler.QueryEvaluator.visit(QueryEvaluator.java:754)
at net.sf.jpasecurity.jpql.compiler.QueryEvaluator.visit(QueryEvaluator.java:98)
at net.sf.jpasecurity.jpql.parser.JpqlBrackets.jjtAccept(JpqlBrackets.java:18)
at net.sf.jpasecurity.jpql.parser.SimpleNode.visit(SimpleNode.java:113)
at net.sf.jpasecurity.jpql.compiler.QueryEvaluator.evaluate(QueryEvaluator.java:134)
at net.sf.jpasecurity.security.EntityFilter.isAccessible(EntityFilter.java:108)
at net.sf.jpasecurity.persistence.DefaultSecureEntityManager.isAccessible(DefaultSecureEntityManager.java:281)
at net.sf.jpasecurity.entity.SecureEntityDecorator.refresh(SecureEntityDecorator.java:101)
at net.sf.jpasecurity.entity.SecureEntityDecorator.refresh(SecureEntityDecorator.java:90)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at net.sf.jpasecurity.proxy.CgLibSecureEntityProxyFactory$CgLibSecureEntityMethod.invoke(CgLibSecureEntityProxyFactory.java:134)
at net.sf.jpasecurity.entity.SecureEntityInterceptor.intercept(SecureEntityInterceptor.java:70)
at net.sf.jpasecurity.proxy.CgLibSecureEntityProxyFactory$CgLibMethodInterceptor.intercept(CgLibSecureEntityProxyFactory.java:102)
at com.nestorurquiza.model.Client$$EnhancerByCGLIB$$e6ceed17.refresh()
at net.sf.jpasecurity.entity.SecureEntityInterceptor.intercept(SecureEntityInterceptor.java:68)
at net.sf.jpasecurity.proxy.CgLibSecureEntityProxyFactory$CgLibMethodInterceptor.intercept(CgLibSecureEntityProxyFactory.java:102)
at com.nestorurquiza.model.Client$$EnhancerByCGLIB$$e6ceed17.getName()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)

Users with the same issue

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.