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 |