http://coldfusion.com logo
#adobe
Title
# adobe
t

tonyjunkes

04/27/2022, 2:25 PM
CF2021 question... are bundled lib classes included with a package (e.g. spreadsheet) not available for us to create instances in our own code? In our scenario, we have code that uses POI directly. In previous versions of CF, we would just make use of what was already provided. I realize the bundled nature of OSGi in CF2021 changes that to some extent, but I was expecting if I have the relevant package installed, I'd have access to its bundled libs from the classpath. This does not seem to be the case. I assume the alternative going forward would be to include POI with our app and load it via the usual routes for adding JARs/Classes, which is fine, just caught us off guard during some testing.
m

Mark Takata (Adobe)

04/27/2022, 2:53 PM
Tony, this is possibly a bug with ACF2021 right now in how it scopes java classes being loaded. We ran into this when trying to build SDKs for a few Java libraries as integrations. If you could possibly email cfsup@adobe.com and cc me at takata@adobe.com with this question, I'd love to see if we can get things running more smoothly. Try to describe the case which is failing for you so the engineers can repro it easily and I'll bring it up at the next core meeting so we can possibly get a fix in the queue for next update.
t

tonyjunkes

04/27/2022, 3:11 PM
@Mark Takata (Adobe), False alarm 😅. Just did some more digging, and we do have access to POI from our code. The issue we were seeing actually appears to be due to the major version bump from 3.x in CF2018 to 4.x in CF2021, with some breaking changes to a few of its methods. Cheers for getting back to me.
❤️ 1
m

Mark Takata (Adobe)

04/27/2022, 4:35 PM
Tony, that's great to hear! Well, not the breaking changes, but that you got things figured out. :)
2 Views