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

Environment

JDK11,

Activity

Show:
Sanne Grinovero
February 11, 2020, 9:58 PM

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

 

pether sorling
February 11, 2020, 10:21 PM

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, 11: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 12, 2020, 5:27 AM

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

Sanne Grinovero
February 12, 2020, 7:24 PM

Thanks for checking and confirming!

Fixed

Assignee

Sanne Grinovero

Reporter

pether sorling

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.4.10

Components

Affects versions

Priority

Critical