[hibernate-issues] [JIRA] (HHH-14136) Hibernate 6.00 alpha5 NPE during entitymanager factory init

Aleksei M (JIRA) jira at hibernate.atlassian.net
Mon Aug 3 06:59:51 EDT 2020


Aleksei M ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f27df8db7a35e002a8c5fbd ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNzFhMDgwODVmMzk1NGM5ODk5ZGZlNmU3MWQ4YzM5MzUiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-14136?atlOrigin=eyJpIjoiNzFhMDgwODVmMzk1NGM5ODk5ZGZlNmU3MWQ4YzM5MzUiLCJwIjoiaiJ9 ) HHH-14136 ( https://hibernate.atlassian.net/browse/HHH-14136?atlOrigin=eyJpIjoiNzFhMDgwODVmMzk1NGM5ODk5ZGZlNmU3MWQ4YzM5MzUiLCJwIjoiaiJ9 ) Hibernate 6.00 alpha5 NPE during entitymanager factory init ( https://hibernate.atlassian.net/browse/HHH-14136?atlOrigin=eyJpIjoiNzFhMDgwODVmMzk1NGM5ODk5ZGZlNmU3MWQ4YzM5MzUiLCJwIjoiaiJ9 )

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=5f27df8db7a35e002a8c5fbd )

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-entitimanagerfactory-creation

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-entitimanagerfactory-creation/63228164#63228164

( https://hibernate.atlassian.net/browse/HHH-14136#add-comment?atlOrigin=eyJpIjoiNzFhMDgwODVmMzk1NGM5ODk5ZGZlNmU3MWQ4YzM5MzUiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14136#add-comment?atlOrigin=eyJpIjoiNzFhMDgwODVmMzk1NGM5ODk5ZGZlNmU3MWQ4YzM5MzUiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100141- sha1:e1d49c9 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200803/10ff2dc9/attachment.html 


More information about the hibernate-issues mailing list