You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am trying to use dcm4che in a modularized app based on Java 17. To modularize the dcm4che packages I used the moditect-maven-plugin. So far this works fine.
Now I try to use the decompressor class and get the following error:
java.lang.RuntimeException: Failed to load Image Reader Factory configuration from: org/dcm4che3/imageio/codec/ImageReaderFactory.properties
at dcm4che.imageio@5.31.0/org.dcm4che3.imageio.codec.ImageReaderFactory.initDefault(Unknown Source)
at dcm4che.imageio@5.31.0/org.dcm4che3.imageio.codec.ImageReaderFactory.getDefault(Unknown Source)
at dcm4che.imageio@5.31.0/org.dcm4che3.imageio.codec.ImageReaderFactory.getImageReaderParam(Unknown Source)
at dcm4che.imageio@5.31.0/org.dcm4che3.imageio.codec.Decompressor.(Unknown Source)
at dcm4che.imageio@5.31.0/org.dcm4che3.imageio.codec.Decompressor.decompress(Unknown Source)
In the dcm4che source code I can see that the resource ImageReaderFactory.properties is not loaded directly by the ImageReaderFactory class, but indirectly via class ResourceLocator.
The ResourceLocator class is located in the org.dcm4che3.util module and tries to access the ImageReaderFactory.properties resource from the org.dcm4che3.imageio.codec module.
As far as I understand it, it is no longer possible to access resources of another module when using the Java Module System.
Is that correct? Is there a suggestion for a workaround?
To Reproduce
Steps to reproduce the behavior:
Modularize dcm4che packages
Use Decompressor class
The text was updated successfully, but these errors were encountered:
Describe the bug
I am trying to use dcm4che in a modularized app based on Java 17. To modularize the dcm4che packages I used the moditect-maven-plugin. So far this works fine.
Now I try to use the decompressor class and get the following error:
java.lang.RuntimeException: Failed to load Image Reader Factory configuration from: org/dcm4che3/imageio/codec/ImageReaderFactory.properties
at dcm4che.imageio@5.31.0/org.dcm4che3.imageio.codec.ImageReaderFactory.initDefault(Unknown Source)
at dcm4che.imageio@5.31.0/org.dcm4che3.imageio.codec.ImageReaderFactory.getDefault(Unknown Source)
at dcm4che.imageio@5.31.0/org.dcm4che3.imageio.codec.ImageReaderFactory.getImageReaderParam(Unknown Source)
at dcm4che.imageio@5.31.0/org.dcm4che3.imageio.codec.Decompressor.(Unknown Source)
at dcm4che.imageio@5.31.0/org.dcm4che3.imageio.codec.Decompressor.decompress(Unknown Source)
In the dcm4che source code I can see that the resource ImageReaderFactory.properties is not loaded directly by the ImageReaderFactory class, but indirectly via class ResourceLocator.
The ResourceLocator class is located in the org.dcm4che3.util module and tries to access the ImageReaderFactory.properties resource from the org.dcm4che3.imageio.codec module.
As far as I understand it, it is no longer possible to access resources of another module when using the Java Module System.
Is that correct? Is there a suggestion for a workaround?
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: