java.lang.ClassCastException: envCtx.lookup(Mailer.url).class = javax.mail.Session

Coderanch | Garrett Smith | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ClassCastException

    Coderanch | 1 decade ago | Garrett Smith
    java.lang.ClassCastException: envCtx.lookup(Mailer.url).class = javax.mail.Session

    Root Cause Analysis

    1. java.lang.ClassCastException

      envCtx.lookup(Mailer.url).class = javax.mail.Session

      at com.dhtmlkitchen.reg.mail.Mailer.sendMail()
    2. com.dhtmlkitchen.reg
      ChangeAccount.doPost
      1. com.dhtmlkitchen.reg.mail.Mailer.sendMail(Mailer.java:110)
      2. com.dhtmlkitchen.reg.mail.Mailer.sendReminder(Mailer.java:72)
      3. com.dhtmlkitchen.reg.ChangeAccount.doPost(ChangeAccount.java:68)
      3 frames