lucee.commons.io.res.type.compress.CompressResource cannot be cast to java.lang.Comparable

Description

Basically, doing this : in a lucee archive
CreateObject("java", "java.util.Properties");

seems to trigger
RessourceClassLoader.hash();

And here the Arrays.sort(resources); seems to trigger the main bug as it requires all resources to be comparable.

on a side note, i'm not certain what the Array.sort() purpose is.

Environment

Docker image, x64, jre8

Activity

Show:
Xavier De Cock
April 17, 2020, 12:09 PM

Found the culprit,

 

Basically, if the application['javaSettings'] is set with a path relative to a .lar, the system does throw a


resource [zip:///var/www/html/builder/build/target/package_876A9601-4FEB-458A-9B85-E4383C39F01C.lar!/lib/] must be a local file.

 

Obviously, this was masked by the Array.sort()

 

I’ll try to produce a test.

Pothys - MitrahSoft
July 27, 2020, 12:25 PM

, Any update on this issue? If YES means, let here know. It'll more helpful to improve the status of the ticket.

Assignee

Unassigned

Reporter

Xavier De Cock

Priority

New

Labels

None

Fix versions

None

Affects versions

Configure