javax.mail.MessagingException: A14 BAD Command Argument Error. 11; nested exception is: com.sun.mail.iap.BadCommandException: A14 BAD Command Argument Error. 11

Atlassian JIRA | Aqqiela Zuhra | 2 years 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

    The message threshold limit needs to be set to 0 in advance configuration (otherwise The BAD Command Argument Error will be thrown in the log: {code} 2015-03-16 14:28:33,076 atlassian-scheduler-quartz1.clustered_Worker-1 ERROR ServiceRunner XXXX-XXX [plugins.mail.internal.DefaultMailLoopDetectionService] Unable to set flags javax.mail.MessagingException: A14 BAD Command Argument Error. 11; nested exception is: com.sun.mail.iap.BadCommandException: A14 BAD Command Argument Error. 11 at com.sun.mail.imap.IMAPMessage.setFlags(IMAPMessage.java:905) at com.atlassian.jira.plugins.mail.internal.DefaultMailLoopDetectionService.isPotentialMessageLoop(DefaultMailLoopDetectionService.java:57) at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.canHandleMessage(AbstractMessageHandler.java:437) at com.atlassian.jira.plugins.mail.handlers.AbstractCommentHandler.handleMessage(AbstractCommentHandler.java:108) at com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:98) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:438) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:304) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:426) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:263) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:66) at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:75) at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:53) at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:36) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:135) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80) at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32) at org.quartz.core.JobRunShell.run(JobRunShell.java:223) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: com.sun.mail.iap.BadCommandException: A14 BAD Command Argument Error. 11 at com.sun.mail.iap.Protocol.handleResult(Protocol.java:353) at com.sun.mail.imap.protocol.IMAPProtocol.storeFlags(IMAPProtocol.java:1589) at com.sun.mail.imap.protocol.IMAPProtocol.storeFlags(IMAPProtocol.java:1574) at com.sun.mail.imap.IMAPMessage.setFlags(IMAPMessage.java:901) ... 18 more {code} This is related to [BAD Command Argument Error when creating issue via email with Microsoft Exchange|https://confluence.atlassian.com/display/JIRAKB/BAD+Command+Argument+Error+when+creating+issue+via+email+with+Microsoft+Exchange].

    Atlassian JIRA | 2 years ago | Aqqiela Zuhra
    javax.mail.MessagingException: A14 BAD Command Argument Error. 11; nested exception is: com.sun.mail.iap.BadCommandException: A14 BAD Command Argument Error. 11

    Root Cause Analysis

    1. com.sun.mail.iap.BadCommandException

      A14 BAD Command Argument Error. 11

      at com.sun.mail.iap.Protocol.handleResult()
    2. JavaMail API (compat)
      IMAPMessage.setFlags
      1. com.sun.mail.iap.Protocol.handleResult(Protocol.java:353)
      2. com.sun.mail.imap.protocol.IMAPProtocol.storeFlags(IMAPProtocol.java:1589)
      3. com.sun.mail.imap.protocol.IMAPProtocol.storeFlags(IMAPProtocol.java:1574)
      4. com.sun.mail.imap.IMAPMessage.setFlags(IMAPMessage.java:901)
      4 frames
    3. com.atlassian.jira
      ServiceRunner.runJob
      1. com.atlassian.jira.plugins.mail.internal.DefaultMailLoopDetectionService.isPotentialMessageLoop(DefaultMailLoopDetectionService.java:57)
      2. com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.canHandleMessage(AbstractMessageHandler.java:437)
      3. com.atlassian.jira.plugins.mail.handlers.AbstractCommentHandler.handleMessage(AbstractCommentHandler.java:108)
      4. com.atlassian.jira.plugins.mail.handlers.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:98)
      5. com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:438)
      6. com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:304)
      7. com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:426)
      8. com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:263)
      9. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:66)
      10. com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:75)
      11. com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:53)
      12. com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:36)
      12 frames
    4. com.atlassian.scheduler
      Quartz1Job.execute
      1. com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:135)
      2. com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101)
      3. com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80)
      4. com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32)
      4 frames
    5. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:223)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      2 frames