NPE in org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.getStatus
------------------------------------------------------------------------------
Key: HHH-7109
URL:
https://hibernate.onjira.com/browse/HHH-7109
Project: Hibernate ORM
Issue Type: Bug
Components: core
Affects Versions: 4.1.0
Environment: hibernate-jpa-2.0-api:1.0.1-Final; hibernate-core:4.1.0.Final;
hibernate-entitymanager:4.1.0.Final
Reporter: Michael Nascimento Santos
Priority: Minor
When using JPA with Hibernate as the persistence provider and a vanilla persistence.xml,
the following exception is produced:
java.lang.NullPointerException
at
org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.getStatus(JtaStatusHelper.java:73)
at
org.hibernate.engine.transaction.internal.jta.JtaStatusHelper.isActive(JtaStatusHelper.java:115)
at
org.hibernate.engine.transaction.internal.jta.CMTTransaction.join(CMTTransaction.java:149)
at
org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1208)
at
org.hibernate.ejb.AbstractEntityManagerImpl.postInit(AbstractEntityManagerImpl.java:177)
at org.hibernate.ejb.EntityManagerImpl.<init>(EntityManagerImpl.java:89)
at
org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:132)
at
org.hibernate.ejb.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:127)
This is due to the fact the new, undocumented property, hibernate.transaction.jta.platform
hasn't been set. However, since a NPE is thrown, the user has no way of figuring out
what needs to be done to solve this.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira