An attempted but failed Lucee update from 6.2.1.122 to 7.0.0.202 has somehow broken Lucee’s SMTP capability. I have since successfully replaced the 6.2.1.122 jar with the 6.2.2.90-RC jar just to make sure it would update properly, but that obviously did not solve the email problem.
I use the cfmail tag/function in my code, and my SMTP server is Microsoft Outlook SMTP Relay, *.mail.protection.outlook.com.
What is really odd is that the initial message fails but I can still go in to the “Services - Tasks” screen in Lucee Administrator afterwards, select the failed message, click the Execute button and that succeeds with no error.
Could someone please help me or point me in the right direction with the error message I’ve pasted below?
If possible, I’d like to avoid a full Lucee reinstallation, but I’m completely lost here.
Please let me know if I need to provide further details and I’ll do my best.
“ERROR”,“Thread-192681”,“07/30/2025”,“07:03:46”,“remote-client”,"failed to execute: Technology Assistance Request - STUDENT STATUS CHANGES;com/sun/mail/util/SocketConnectException;com/sun/mail/util/SocketConnectException;com.sun.mail.util.SocketConnectException not found by javax.mail [124];lucee.runtime.exp.NativeException: com/sun/mail/util/SocketConnectException
at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)
at java.base/java.lang.Class.getConstructor0(Class.java:3342)
at java.base/java.lang.Class.getConstructor(Class.java:2151)
at javax.mail.Session.getService(Session.java:799)
at javax.mail.Session.getTransport(Session.java:728)
at javax.mail.Session.getTransport(Session.java:668)
at javax.mail.Session.getTransport(Session.java:648)
at lucee.runtime.net.smtp.SMTPConnectionPool$SessionAndTransport.(SMTPConnectionPool.java:171)
at lucee.runtime.net.smtp.SMTPConnectionPool.getSessionAndTransport(SMTPConnectionPool.java:57)
at lucee.runtime.net.smtp.SMTPClient.createMimeMessage(SMTPClient.java:492)
at lucee.runtime.net.smtp.SMTPClient._send(SMTPClient.java:859)
at lucee.runtime.spooler.mail.MailSpoolerTask.execute(MailSpoolerTask.java:139)
at lucee.runtime.spooler.SpoolerTaskSupport._execute(SpoolerTaskSupport.java:107)
at lucee.runtime.spooler.SpoolerEngineImpl.execute(SpoolerEngineImpl.java:619)
at lucee.runtime.spooler.SpoolerEngineImpl.execute(SpoolerEngineImpl.java:612)
at lucee.runtime.spooler.SpoolerEngineImpl$TaskThread.run(SpoolerEngineImpl.java:548)
Caused by: java.lang.NoClassDefFoundError: com/sun/mail/util/SocketConnectException
… 17 more
Caused by: java.lang.ClassNotFoundException: com.sun.mail.util.SocketConnectException not found by javax.mail [124]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1591)
at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1976)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)
at org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1358)
at org.apache.felix.framework.BundleWiringImpl.searchImports(BundleWiringImpl.java:1612)
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1528)
at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1976)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)
… 17 more
"
Don’t forget to tell us about your stack!
OS: Ubuntu 20.04.6 LTS
Java Version: 11.0.27 (Ubuntu) 64bit
Tomcat Version: Apache Tomcat/9.0.71
Lucee Version: Lucee 6.2.2.90-RC