Skip to main content
Participant
Jul 11, 2025 5:41 PM UTC
Answered

CF 2023 Update 15 cfmail error

CFMail will throw error after update 15 applied. Java version: 17.0.15+9-LTS-24

 

"Error","ajp-nio-127.0.0.1-8022-exec-3","07/11/25","13:24:45","","Bad type on operand stack
Exception Details:
Location:
coldfusion/mail/mod/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/mod/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
... The specific sequence of files included or processed is:

    BKBK
    BKBKCorrect answer
    Community Expert
    Jul 11, 2025 7:04 PM UTC

    Key message:

    Reason:
    Type 'org/bouncycastle/asn1/smime/SMIMEEncryptionKeyPreferenceAttribute' (current frame, stack[1]) is not assignable to 'org/bouncycastle/asn1/ASN1Encodable'

    The message suggests that, after the installation of Update 15, ColdFusion mistakenly uses an incompatible version of the Bouncy Castle library.

     

    A solution that has often worked for such update-installation issues is to delete the Felix cache. The procedure is as follows:

    1. stop ColdFusion;
    2. open the directory \cfusion\bin\felix-cache and delete everything from it, then
    3. restart ColdFusion.

     

    16 replies

    Inspiring
    Sep 22, 2025 4:57 PM UTC

    I encountered this cfmail related issue after the update to cf2023u15. I was very suprised when I saw the error. But, thankfully, Adobe have resolved this issue in their latest update (cf2023u16). 

    Translate
    Charlie Arehart
    Community Expert
    Community Expert
    Sep 23, 2025 12:06 AM UTC

    Actually, no, that update earlier this month addressed only a single security issue--no bug fixes. At least that's what the update technotes said.

     

    But when they had said about that mail issue that "the next" update would address it, they meant the next bugfix update. Again this one had none, as it was released urgently. That's my understanding at least.

     

    As for why you may have had no mail problem this time, there are various factors that influence experiencing it. Just chalk it up as fortunate. 🙂 

    Translate
    /Charlie (troubleshooter, carehart. org)
    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    Jul 11, 2025 7:04 PM UTC

    Key message:

    Reason:
    Type 'org/bouncycastle/asn1/smime/SMIMEEncryptionKeyPreferenceAttribute' (current frame, stack[1]) is not assignable to 'org/bouncycastle/asn1/ASN1Encodable'

    The message suggests that, after the installation of Update 15, ColdFusion mistakenly uses an incompatible version of the Bouncy Castle library.

     

    A solution that has often worked for such update-installation issues is to delete the Felix cache. The procedure is as follows:

    1. stop ColdFusion;
    2. open the directory \cfusion\bin\felix-cache and delete everything from it, then
    3. restart ColdFusion.

     

    Translate
    WolfShade
    Legend
    Aug 18, 2025 4:16 PM UTC

    Will Adobe ever get this fixed?  Seems like the new stock response is to stop CF, delete Felix cache, restart.

     

    WolfShade

    Translate
    Adobe Employee
    Aug 21, 2025 5:55 PM UTC

    Hello WolfShade,

     

    Please send an email to cfinstal@adobe.com. We have a fix available

     

    Thanks & Regards

    Ravi

    Translate