javax.persistence.PersistenceException: Exception [EclipseLink-4002] > (Eclipse > Persistence Services - 2.3.0.v20110604-r9504): > org.eclipse.persistence.exceptions.DatabaseException Internal Exception: > java.sql.SQLException: Error in allocating a connection. Cause: > java.lang.IllegalStateException: Local transaction already has 1 non-XA > Resource: cannot add more resources. Error Code: 0 at > org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:501) > > at > org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188) > > at > org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277) > > at > org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:290) > > at > org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:275) > > at > com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:208) > > at > com.sun.enterprise.container.common.impl.EntityManagerWrapper.createNamedQuery(EntityManagerWrapper.java:532) > > at > com.mycomp.myapp.ejb.ApplicationBean.postContructInitialization(ApplicationBean.java:102) > >

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by groverblue, 1 year ago
: > java.lang.IllegalStateException: Local transaction already has 1 non-XA > Resource: cannot add more resources. Error Code: 0 at > org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:501) > > at
via GitHub by pp23
, 2 years ago
No Persistence provider for EntityManager named Service at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:61) at de.devboost.quamo.metricprocessor.data.dao.QuamoDAOBase.configure(QuamoDAOBase.java:118
via Google Groups by Joe Greenawalt, 2 years ago
failed to get entity f33605bb-d748-447f-946c-10929753ce4d at com.netflix.astyanax.entitystore.DefaultEntityManager.get(DefaultEntityManager.java:227)
via Stack Overflow by Roalt
, 2 years ago
Unable to configure EntityManagerFactory: Exception in thread "main" java.lang.reflect.InvocationTargetException
javax.persistence.PersistenceException: Exception [EclipseLink-4002] > (Eclipse > Persistence Services - 2.3.0.v20110604-r9504): > org.eclipse.persistence.exceptions.DatabaseException Internal Exception: > java.sql.SQLException: Error in allocating a connection. Cause: > java.lang.IllegalStateException: Local transaction already has 1 non-XA > Resource: cannot add more resources. Error Code: 0 at > org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:501) > > at > org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:188) > > at > org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:277) > > at > org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:290) > > at > org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:275) > > at > com.sun.enterprise.container.common.impl.EntityManagerWrapper._getDelegate(EntityManagerWrapper.java:208) > > at > com.sun.enterprise.container.common.impl.EntityManagerWrapper.createNamedQuery(EntityManagerWrapper.java:532) > > at > com.mycomp.myapp.ejb.ApplicationBean.postContructInitialization(ApplicationBean.java:102) > >
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.lang.reflect.Method.invoke(Method.java:597)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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