java.lang.IllegalStateException

A JTA EntityManager can not use the EntityTransaction API. See JPA 1.0 section 5.5

Samebug tips0

We couldn't find tips for this exception.

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

Solutions on the web6

  • via Unknown by Manuel Blechschmidt,
  • via Unknown by Unknown author,
  • Stack trace

    • java.lang.IllegalStateException: A JTA EntityManager can not use the EntityTransaction API. See JPA 1.0 section 5.5 at org.apache.openejb.persistence.JtaEntityManager.getTransaction(JtaEntityManager.java:349) at org.apache.olingo.odata2.jpa.processor.core.ODataJPATransactionLocalDefault.<init>(ODataJPATransactionLocalDefault.java:31) at org.apache.olingo.odata2.jpa.processor.core.ODataJPAContextImpl.getODataJPATransaction(ODataJPAContextImpl.java:178) at org.apache.olingo.odata2.jpa.processor.core.access.data.JPAProcessorImpl.setTransaction(JPAProcessorImpl.java:451) at org.apache.olingo.odata2.jpa.processor.core.access.data.JPAProcessorImpl.processCreate(JPAProcessorImpl.java:335) at org.apache.olingo.odata2.jpa.processor.core.access.data.JPAProcessorImpl.process(JPAProcessorImpl.java:223) at org.apache.olingo.odata2.jpa.processor.core.ODataJPAProcessorDefault.createEntity(ODataJPAProcessorDefault.java:122) at org.apache.olingo.odata2.core.Dispatcher.dispatch(Dispatcher.java:79) at org.apache.olingo.odata2.core.ODataRequestHandler.handle(ODataRequestHandler.java:130) at org.apache.olingo.odata2.core.rest.ODataSubLocator.handle(ODataSubLocator.java:164) at org.apache.olingo.odata2.core.rest.ODataSubLocator.handlePost(ODataSubLocator.java:86)

    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

    We couldn't find other users who have seen this exception.