Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1241

Mail Attributes retrieved as String even though set as Boolean

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-M2
    • Fix Version/s: 3.0-beta3
    • Component/s: Queue
    • Labels:
      None

      Description

      I set a boolean attribute to a Mail:

      boolean smartHostSSL = false;
      mail.setAttribute(SMARTHOSTSSL, smartHostSSL);

      and then I retireve it in another method:
      boolean smartHostSSL = (Boolean)mail.getAttribute(SMARTHOSTSSL);

      and there's an exception on this very line:
      java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean

        Attachments

          Activity

            People

            • Assignee:
              norman Norman Maurer
              Reporter:
              arusin Andrzej Rusin

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment