java.lang.IllegalStateException

A JTA EntityManager cannot use getTransaction()

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web9767

  • A JTA EntityManager cannot use getTransaction()
  • A JTA EntityManager cannot use getTransaction()
  • A JTA EntityManager cannot use getTransaction()
  • Stack trace

    • 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(<generated>) 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(<generated>) 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)

    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

    Unknown user
    Once, 1 year ago