org.jboss.logging module needs to access org.hibernate.search.backend.elasticsearch module

Description

I am using java 9 modules in my project and have issues with certain modules not being able to access others.

 

one such example:

 

java.lang.IllegalAccessException: class org.jboss.logging.Messages (in module org.jboss.logging) cannot access class org.hibernate.search.backend.elasticsearch.validation.impl.ElasticsearchValidationMessages_$bundle (in module org.hibernate.search.backend.elasticsearch) because module org.hibernate.search.backend.elasticsearch does not export org.hibernate.search.backend.elasticsearch.validation.impl to module org.jboss.logging
at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
at java.base/java.lang.reflect.Field.checkAccess(Field.java:1102)
at java.base/java.lang.reflect.Field.get(Field.java:423)
at org.jboss.logging@3.4.3.Final/org.jboss.logging.Messages.doGetBundle(Messages.java:101)

 

org.jboss.logging.Messages module tries to access at runtime this other module org.hibernate.search.backend.elasticsearch which is not allowed due to the module-info.java restrictions in this module.

 

Due to this I need to disable my java 9 modules.

Activity

Show:

Yoann Rodière September 16, 2022 at 8:06 AM

This is fixed in 6.1.7.Final, released today.

Yoann Rodière September 14, 2022 at 6:10 AM
Edited

Right, it looks like this particular class was overlooked. I will try to tighten up the checks to detect that kind of things.

Thanks for reporting.

Fixed

Details

Assignee

Reporter

Sprint

Affects versions

Priority

Created September 13, 2022 at 4:09 PM
Updated September 16, 2022 at 8:06 AM
Resolved September 14, 2022 at 2:50 PM