com.atlassian.jira.web.util.AttachmentException: Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect)

Atlassian JIRA | David Dossot | 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

    [JRA-11204] CreateOrCommentHandler: Attachment with invalid filename causes loop - Atlassian JIRA

    atlassian.com | 2 years ago
    com.atlassian.jira.web.util.AttachmentException: Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect)
  2. 0

    Some emails contain strangely named attachements that causes the CreateOrCommentHandler to fail and retry consuming the email for ever, creating a new entry each time. The following stackfest unveil the drama in its full extent! Cheers, David ---------------------------- 09:58:12,299 INFO [MailUtils] Exception getting the content type of message - probably not of type 'String'javax.mail.internet.MimeMultipart 09:58:12,815 INFO [CreateIssueHandler] Issue SALXE-1272 created 09:58:12,893 WARN [DefaultAttachmentManager] Creating attachment without a file. Aborting 09:58:13,049 ERROR [DefaultAttachmentManager] Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect) java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:62) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachmentOnDisk(DefaultAttachmentManager.java:230) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachment(DefaultAttachmentManager.java:205) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachment(DefaultAttachmentManager.java:214) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageHandler.java:297) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:253) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:202) at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:194) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:117) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 09:58:13,049 ERROR [AbstractMessageHandler] Exception while creating attachment for issue SALXE-1272: com.atlassian.jira.web.util.AttachmentException: Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect) com.atlassian.jira.web.util.AttachmentException: Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachmentOnDisk(DefaultAttachmentManager.java:240) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachment(DefaultAttachmentManager.java:205) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachment(DefaultAttachmentManager.java:214) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageHandler.java:297) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:253) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:202) at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:194) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:117) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 09:58:13,049 ERROR [CreateIssueHandler] Could not create issue! java.io.IOException: Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageHandler.java:312) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:253) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:202) at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:194) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:117) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)

    Atlassian JIRA | 1 decade ago | David Dossot
    com.atlassian.jira.web.util.AttachmentException: Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect)
  3. 0

    Some emails contain strangely named attachements that causes the CreateOrCommentHandler to fail and retry consuming the email for ever, creating a new entry each time. The following stackfest unveil the drama in its full extent! Cheers, David ---------------------------- 09:58:12,299 INFO [MailUtils] Exception getting the content type of message - probably not of type 'String'javax.mail.internet.MimeMultipart 09:58:12,815 INFO [CreateIssueHandler] Issue SALXE-1272 created 09:58:12,893 WARN [DefaultAttachmentManager] Creating attachment without a file. Aborting 09:58:13,049 ERROR [DefaultAttachmentManager] Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect) java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at com.atlassian.core.util.FileUtils.copyFile(FileUtils.java:62) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachmentOnDisk(DefaultAttachmentManager.java:230) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachment(DefaultAttachmentManager.java:205) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachment(DefaultAttachmentManager.java:214) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageHandler.java:297) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:253) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:202) at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:194) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:117) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 09:58:13,049 ERROR [AbstractMessageHandler] Exception while creating attachment for issue SALXE-1272: com.atlassian.jira.web.util.AttachmentException: Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect) com.atlassian.jira.web.util.AttachmentException: Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachmentOnDisk(DefaultAttachmentManager.java:240) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachment(DefaultAttachmentManager.java:205) at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachment(DefaultAttachmentManager.java:214) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageHandler.java:297) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:253) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:202) at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:194) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:117) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 09:58:13,049 ERROR [CreateIssueHandler] Could not create issue! java.io.IOException: Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageHandler.java:312) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:253) at com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:202) at com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:194) at com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:117) at com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)

    Atlassian JIRA | 1 decade ago | David Dossot
    com.atlassian.jira.web.util.AttachmentException: Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.atlassian.jira.web.util.AttachmentException

      Could not move (or copy) attachment from C:\WINDOWS\TEMP\tempattach39525dat to e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0: java.io.FileNotFoundException: e:\jira\data\attachment\SALXE\SALXE-1272\11507_mdsefc?a2125;MATT10CC18881P525527B525530S0 (The filename, directory name, or volume label syntax is incorrect)

      at com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachmentOnDisk()
    2. com.atlassian.jira
      ServiceRunner.execute
      1. com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachmentOnDisk(DefaultAttachmentManager.java:240)
      2. com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachment(DefaultAttachmentManager.java:205)
      3. com.atlassian.jira.issue.managers.DefaultAttachmentManager.createAttachment(DefaultAttachmentManager.java:214)
      4. com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentWithPart(AbstractMessageHandler.java:297)
      5. com.atlassian.jira.service.util.handler.AbstractMessageHandler.handleMultipart(AbstractMessageHandler.java:253)
      6. com.atlassian.jira.service.util.handler.AbstractMessageHandler.createAttachmentsForMessage(AbstractMessageHandler.java:202)
      7. com.atlassian.jira.service.util.handler.CreateIssueHandler.handleMessage(CreateIssueHandler.java:194)
      8. com.atlassian.jira.service.util.handler.CreateOrCommentHandler.handleMessage(CreateOrCommentHandler.java:117)
      9. com.atlassian.jira.service.services.mail.MailFetcherService.run(MailFetcherService.java:184)
      10. com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:67)
      11. com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
      11 frames
    3. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:191)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
      2 frames