imageOverlay error with java 17

Description

class javax.media.jai.RasterAccessor (in unnamed module @0xcdb1576) cannot access class sun.awt.image.BytePackedRaster (in module java.desktop) because module java.desktop does not export sun.awt.image to unnamed module @0xcdb1576

  • /test/functions/imageOverlay.cfc:16 branch

  • /test/_testRunner.cfc:275 branch

  • /test/run-tests.cfm:260 branch

    lucee.runtime.exp.NativeException: class javax.media.jai.RasterAccessor (in unnamed module @0xcdb1576) cannot access class sun.awt.image.BytePackedRaster (in module java.desktop) because module java.desktop does not export sun.awt.image to unnamed module @0xcdb1576
    at javax.media.jai.RasterAccessor.(RasterAccessor.java:811)
    at com.sun.media.jai.opimage.OverlayOpImage.computeRect(OverlayOpImage.java:203)
    at com.sun.media.jai.opimage.OverlayOpImage.computeTile(OverlayOpImage.java:139)
    at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:912)
    at javax.media.jai.OpImage.getTile(OpImage.java:1139)
    at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2356)
    at javax.media.jai.RenderedOp.copyData(RenderedOp.java:2310)
    at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2538)
    at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2559)
    at org.lucee.extension.image.Image.overlay(Image.java:805)
    at org.lucee.extension.image.functions.ImageOverlay.call(ImageOverlay.java:29)
    at org.lucee.extension.image.functions.ImageOverlay.invoke(ImageOverlay.java:35)
    at lucee.runtime.functions.FunctionHandlerPool.invoke(FunctionHandlerPool.java:40)
    at functions.imageoverlay_cfc$cf.udfCall(/test/functions/imageOverlay.cfc:16)

Environment

None

Activity

Show:

Pothys - MitrahSoft 24 May 2024 at 15:17
Edited

I checked this ticket with Lucee version 6.1.0.158-SNAPSHOT.Now imageOverlay() works fine with java 17.

Pothys - MitrahSoft 6 June 2023 at 06:11

I've checked this issue and confirmed the issue happened on the lucee version 6.0.0.425-SNAPSHOT. imageOverlay() with java 17, it throws error like "class javax.media.jai.RasterAccessor (in unnamed module @0x3235c680) cannot access class sun.awt.image.BytePackedRaster (in module java.desktop) because module java.desktop does not export sun.awt.image to unnamed module @0x3235c680"

Fixed

Details

Assignee

Reporter

Priority

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Created 2 June 2023 at 17:14
Updated 24 May 2024 at 15:18
Resolved 24 May 2024 at 15:17

Flag notifications