Has anyone else seen the following error in their ...
# adobe
b
Has anyone else seen the following error in their console logs when CF 2021 is starting up?
Copy code
java.lang.NoClassDefFoundError: javax/activation/DataSource
What's really interesting is that class comes from an internal jar bundled with ColdFusion so I'm not sure why it wouldn't be found. Full error in the thread.
Here's the full stack trace and some context from the logs
I don't see this in every server. I'm specifically seeing it in a Docker image for a client app I'm working on. The error seems to be coming from deep within the PDF service startup, and doesn't appear to affect the rest of the server operation.
Once CF is up, I can load that class just fine and the JVM reports that the class comes from the following jar.
Copy code
/usr/local/lib/serverHome/WEB-INF/cfusion/lib/activation-1.1.1.jar
Here's how to see what JAR a class came from in case anyone is curious how I got that
Copy code
writeDump( createObject( 'java', 'javax.activation.DataSource' ).getClass().getProtectionDomain().getCodeSource().getLocation().toURI().getSchemeSpecificPart() )
@priyank_adobe I can put a ticket in the bug tracker for this if you'd like, but I wasn't sure if it was related to my local setup or if there were any troubleshooting steps the engineers may want me to take which would be easier to do over Slack than in the tracker UI.
p
@bdw429s
b
Yes?
p
You can log a ticket and I will discuss this with development team
b
Will do 👍
p
I think I saw this error however not bother to resolve it.
b
Good to know
I assume it's sort of classloading issue
but without knowing how and when CF loads
activation-1.1.1.jar
, it's hard to say
p
Could be, let's track it through a bug and will get back to you after discussing this.
👍 1
b
I'm dealing with another classloading issue right now on the same site related to event gateways not able to find classes from
cfusion.jar
, but I'm still working on seeing if I can get a repro case before entering a ticket
p
Sure
b
I also put in this related ticket yesterday https://tracker.adobe.com/#/view/CF-4213121 as some poor error handling in CF wasted a good portion of my time on the aforementioned eventgateway classloading error
p
will share this with relevant dev to look into this.
👍 1
b
@priyank_adobe here is the ticket for the original error https://tracker.adobe.com/#/view/CF-4213156
👍 1