Problem creating java obj in Lucee 6.2.2.35 and later

I have a blank site with just an index.cfm and the Bcrypt jar (jbcrypt.jar). In 6.2.2.34 and earlier, this works:

bcrypt = createObject( "java", "org.mindrot.jbcrypt.BCrypt", "c:/dev/apps/aaa/jbcrypt.jar" );

In 6.2.2.35 and later, I get:

Illegal char <:> at index 154: C:\Users\user\.CommandBox\server\1EAF9299F3CEF302DB4C8A7AC5B4EEAB-aaa\lucee-6.2.2-SNAPSHOT.18\WEB-INF\lucee-server\context\cfclasses\RPC\1ag39poswhvk7:1rvc0gxs1rirp

Should I file a bug?

Don’t forget to tell us about your stack!

OS: Windows 11 Pro
Java Version: 21.0.6
Tomcat Version: ???
Lucee Version: Commandbox 6.3.0-alpha+00832

I too am having problems creating objects from local jar files. I thought is was because I was using a subclass, but apparently not.

@Leftbower , I have investigated this topic with Lucee version 6.2.2.43-RC and faced the same issue. Yes, it is a regression from 6.2.2.35-SNAPSHOT.
The issue occurs due to these changes: Lucee/core/src/main/java/lucee/commons/lang/PhysicalClassLoader.java at 6.2 · lucee/Lucee · GitHub

2 Likes

@Leftbower , @martin , I have created a ticket for this issue.
https://luceeserver.atlassian.net/browse/LDEV-5620

3 Likes

Same issue here. A workaround that has been working for me (maybe just randomly?) is described at Datadog throws "unable to load class path" on Lucee, not on CF2018 - #3 by psarin .