Aleksei M (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f27df8...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNzFhMDgwODVm...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14136?atlOrigin=eyJpIjoiNzFhMD...
) HHH-14136 (
https://hibernate.atlassian.net/browse/HHH-14136?atlOrigin=eyJpIjoiNzFhMD...
) Hibernate 6.00 alpha5 NPE during entitymanager factory init (
https://hibernate.atlassian.net/browse/HHH-14136?atlOrigin=eyJpIjoiNzFhMD...
)
Issue Type: Bug Assignee: Unassigned Created: 03/Aug/2020 03:59 AM Priority: Major
Reporter: Aleksei M (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f27df8...
)
Adding jpa with hibernate as peovider to my simple project (without Spring or any other DI
containers)
and H2 database got stuck with NPE. See description here :
https://stackoverflow.com/questions/63202449/npe-during-entitimanagerfact...
Steps to reproduce:
1. Adding dependencies to maven project:
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.200</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>6.0.0.Alpha5</version>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.2.Final</version>
</dependency>
2)Standart jpa configuration.
3) Instantiating enitiymanager factory , instantiate entity manager, begin transaction.
Expected result: console loggs and successful application execution.
Actual result: null pointer exception during EMF initialisation.
Full stack trace here:
https://stackoverflow.com/questions/63202449/npe-during-entitimanagerfact...
(
https://hibernate.atlassian.net/browse/HHH-14136#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14136#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100141- sha1:e1d49c9 )