I am getting the below error when I try to connect to mongodb using hibernate-ogm-mongodb-5.4.0.Final.jar but I am able to connect to mongodb if I use hibernate-ogm-mongodb-5.0.0.Final.jar.
Error Details Initial EntityManagerFactory creation failed.org.hibernate.service.spi.ServiceException: OGM000071: Unable to start datastore provider Exception in thread “main” java.lang.NullPointerException
<persistence-unit name="mongodbtest" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ogm.jpa.HibernateOgmPersistence</provider>
<properties>
<property name="hibernate.ogm.datastore.provider" value="MONGODB"/>
<property name="hibernate.ogm.datastore.database" value="test" />
<property name="hibernate.ogm.datastore.host" value="localhost" />
<property name="hibernate.ogm.datastore.create_database" value="true" />
<property name="hibernate.ogm.datastore.username" value="****" />
<property name="hibernate.ogm.datastore.password" value="****" />
</properties>
</persistence-unit>
</persistence>