CFMAIL stopped working after CF21 Update 21
July 10, 2025
CFMAIL stopped working after CF21 Update 21
July 10, 2025
Newbie 2 posts
Followers: 1 people

CFMAIL has been working up until update 21 and now I receive this error when an email is trying to be sent. I have updated the JVM to the latest version supported for CF21 as well to see if that resolved the issue, but it doesn’t. This is CF21 Update 21 running on Server 2019. 

Any thoughts or suggestions would be greatly appreciated.

Jul 10, 2025 9:23:27 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [CfmServlet] in context with path [] threw exception [Servlet execution threw an exception] with root cause
java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    coldfusion/mail/MailImpl.signMail(Ljavax/mail/internet/MimeMessage;Ljavax/mail/Session;)Ljavax/mail/internet/MimeMessage; @238: invokevirtual
  Reason:
    Type ‘org/bouncycastle/asn1/smime/SMIMEEncryptionKeyPreferenceAttribute’ (current frame, stack[1]) is not assignable to ‘org/bouncycastle/asn1/ASN1Encodable’
  Current Frame:
    bci: @238
    flags: { }
    locals: { ‘coldfusion/mail/MailImpl’, ‘javax/mail/internet/MimeMessage’, ‘javax/mail/Session’, ‘java/security/KeyStore’, ‘[Ljava/security/cert/Certificate;’, ‘java/security/PrivateKey’, ‘org/bouncycastle/asn1/ASN1EncodableVector’, ‘java/security/cert/X509Certificate’, ‘java/lang/String’, ‘org/bouncycastle/asn1/cms/IssuerAndSerialNumber’ }
    stack: { ‘org/bouncycastle/asn1/ASN1EncodableVector’, ‘org/bouncycastle/asn1/smime/SMIMEEncryptionKeyPreferenceAttribute’ }
  Bytecode:
    0000000: 2ab4 0028 c600 212a b400 28b6 009e b600
    0000010: 5e99 0014 bb00 e159 2ab4 0028 b700 e2b6
    0000020: 00e3 9a00 0fbb 00e4 592a b400 28b7 00e5
    0000030: bf2a b400 2bc7 000b 2a2a b400 2ab5 002b
    0000040: 2a2a b400 282a b400 2ab7 00e6 4e2a b400
    0000050: 29c6 0010 2ab4 0029 b600 9eb6 005e 9a00
    0000060: 0c2a 2a2d b700 e7b5 0029 2d2a b400 29b6
    0000070: 00e8 3a04 1904 c600 0919 04be 9a00 0fbb
    0000080: 00e9 592a b400 29b7 00ea bf2d 2ab4 0029
    0000090: 2ab4 002b b600 ebb6 00ec c000 ed3a 05a7
    00000a0: 000f 3a06 bb00 ef59 1906 b700 f0bf bb00
    00000b0: f159 b700 f23a 0619 0403 32c0 00de 3a07
    00000c0: 1907 b600 f3b9 00f4 0100 3a08 bb00 f559
    00000d0: bb00 f659 1908 b700 f719 07b6 00f8 b700
    00000e0: f93a 0919 06bb 00fa 5919 09b7 00fb b600
    00000f0: fc19 06bb 00fd 59b2 00fe b700 ffb6 00fc
    0000100: bb01 0059 b701 013a 0a13 0102 1905 b901
    0000110: 0301 00b6 0104 9900 09b2 0105 a700 0613
    0000120: 0106 3a0b bb01 0759 b701 0812 b5b6 0109
    0000130: bb01 0a59 1906 b701 0bb6 010c 190b 1905
    0000140: 1907 b601 0d3a 0c19 0a19 0cb6 010e bb00
    0000150: 1959 b700 1a3a 0d19 0d19 0403 32b9 008d
    0000160: 0200 5719 0abb 010f 5919 0db7 0110 b601
    0000170: 1119 0a2b b601 123a 0ebb 00bd 592c b701
    0000180: 133a 0f2b b601 143a 1019 10b9 0115 0100
    0000190: 9900 1519 0f19 10b9 0116 0100 c001 17b6
    00001a0: 0118 a7ff e719 0f19 0eb6 0099 190f b600
    00001b0: a519 0fb0 3a04 1904 bf3a 04bb 0119 5919
    00001c0: 04b7 011a bf                           
  Exception Handler Table:
    bci [139, 159] => handler: 162
    bci [77, 435] => handler: 436
    bci [77, 435] => handler: 441
  Stackmap Table:
    same_frame(@37)
    same_frame(@49)
    same_frame(@64)
    append_frame(@97,Object[#679])
    same_frame(@106)
    append_frame(@127,Object[#680])
    same_frame(@139)
    same_locals_1_stack_item_frame(@162,Object[#681])
    append_frame(@174,Object[#682])
    full_frame(@287,{Object[#455],Object[#603],Object[#606],Object[#679],Object[#680],Object[#682],Object[#683],Object[#652],Object[#453],Object[#684],Object[#685]},{})
    same_locals_1_stack_item_frame(@290,Object[#453])
    full_frame(@393,{Object[#455],Object[#603],Object[#606],Object[#679],Object[#680],Object[#682],Object[#683],Object[#652],Object[#453],Object[#684],Object[#685],Object[#453],Object[#686],Object[#608],Object[#607],Object[#603],Object[#687]},{})
    same_frame(@421)
    full_frame(@436,{Object[#455],Object[#603],Object[#606],Object[#679]},{Object[#632]})
    same_locals_1_stack_item_frame(@441,Object[#612])

All Comments
Sort by:  Most Recent
2025-07-15 04:56:42
2025-07-15 04:56:42

Hi There,

Try clear the felix cache?

  1. Stop ColdFusion Service
  2. Navigate to ColdFusion2021/cfusion/bin/felix-cache
  3. Delete all the bundle files
  4. Start the ColdFusion Service again

Good luck!

Like
()
(1)
2025-09-04 13:48:14
2025-09-04 13:48:14
>
ari_404
's comment

Replying to @ari_404ari_404:  Folks reading this should not interpret step 3 as referring to deleting the bundles folder (at the root of cf). Ari meant delete the files IN the felix-cache. But technically one can simply delete the felix-cache folder (while cf is stopped). It will be recreated on cf startup. 

Like
()
2025-07-14 14:08:08
2025-07-14 14:08:08

I’m getting this error too so you’re not alone!

Like
()
2025-07-13 15:16:20
2025-07-13 15:16:20

We experienced a similar problem after installing ColdFusion 2023 Update 15.

This is a known issue, see https://helpx.adobe.com/coldfusion/kb/coldfusion-2023-update-15.html

The suggested workaround worked:

Stop Coldfusion
Delete the Felix cache (cfusion/bin/felix-cache)
Restart Coldfusion

 

Like
()
2025-07-11 14:20:42
2025-07-11 14:20:42

We had a similar issue with CF 23 and newest security patch. Not sure of fix but we are pretty sure it is due to bouncy castle libarary

Like
()
2025-07-11 01:14:16
2025-07-11 01:14:16

Yep. See the technote for the technote for update 21. There’s a new “known issue” bullet that was added today, showing that this problem is solved by stopping cf and deleting the felix-cache folder, in cfusion/bin.

(Note that if you’re running multiple instances, it would be [instancename]/bin.)

Let us know if it works for you.

Like
()