Yasin Koyuncu (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
) *created* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiM2JkNDM1...
) / Bug (
https://hibernate.atlassian.net/browse/HSEARCH-4701?atlOrigin=eyJpIjoiM2J...
) HSEARCH-4701 (
https://hibernate.atlassian.net/browse/HSEARCH-4701?atlOrigin=eyJpIjoiM2J...
) [org.jboss.logging.Messages] module needs to access
[org.hibernate.search.backend.elasticsearch] module (
https://hibernate.atlassian.net/browse/HSEARCH-4701?atlOrigin=eyJpIjoiM2J...
)
Issue Type: Bug Affects Versions: 6.1.6.Final Assignee: Unassigned Created: 13/Sep/2022
09:09 AM Priority: Major Reporter: Yasin Koyuncu (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=70121%3...
)
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.
(
https://hibernate.atlassian.net/browse/HSEARCH-4701#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-4701#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100206- sha1:821f494 )