NPE on scanning for entities in a project having module-info.class resources

Activity

Show:

Sanne Grinovero February 12, 2020 at 8:24 AM

Thanks for checking and confirming!

pether sorling February 11, 2020 at 6:27 PM

Updated to use 5.4.12-SNAPSHOT and now everything works again, thanks for the quick fix.

Sanne Grinovero February 11, 2020 at 12:26 PM

The NPE is caused by the module-info class. Looks like the way Jandex deals with module info’s is to return null - which is a case we didn’t expect.

I’ll have a fix soon, thanks!

 

pether sorling February 11, 2020 at 11:21 AM

Tried to reproduce the error using https://github.com/pethers/hibernate-test-case-templates/tree/master/orm/hibernate-orm-5, but worked as expected even when I changed it to use 5.4.11 and Java 11. But will try to create a standalone example using model.external.worldbank.countries.impl in a separate git repo the next few days.

Only major difference I could detect from the test-case-templates
<exclude-unlisted-classes>false</exclude-unlisted-classes> and <property name="hibernate.archive.autodetection" value="class, hbm"/>, I specify all classes I use directly in the persistence.xml.

 

Sanne Grinovero February 11, 2020 at 10:58 AM

Many thanks ! Checking out your reproducer .. interesting project!

 

Fixed

Details

Assignee

Reporter

Worked in

Components

Fix versions

Affects versions

Priority

Created February 10, 2020 at 10:41 PM
Updated February 13, 2020 at 5:41 PM
Resolved February 11, 2020 at 4:25 PM