com.atlassian.confluence.pages.AttachmentDataNotFoundException: Problem while getting attachment stream (Attachment: office10.jpg v.1 (22)) from file system

Atlassian JIRA | Paul Curren | 9 years ago
  1. 0

    I realise that we state in CAC that you should set a confluence.home directory without spaces, however customers still regularly trip up over this and really we should try to support directories with spaces in the path. This particular instance is a failure to import a site backup. You'll see errors like - {noformat} 2008-04-03 15:00:00,020 ERROR [Importing data task] [persistence.dao.hibernate.AbstractHibernateAttachmentDao$IntraHibernateAttachmentCopier] copy There was a problem retrieving attachment 'Attachment: office10.jpg v.1 (22)' from the data store. Skipping. -- url: /confluence/admin/restore.action | userName: admin | action: restore com.atlassian.confluence.pages.AttachmentDataNotFoundException: Problem while getting attachment stream (Attachment: office10.jpg v.1 (22)) from file system at com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.getDataForAttachment(FileSystemAttachmentDataDao.java:75) at com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao$IntraHibernateAttachmentCopier.copy(AbstractHibernateAttachmentDao.java:466) at com.atlassian.confluence.importexport.impl.FileBackupImporter.importAttachments(FileBackupImporter.java:320) at com.atlassian.confluence.importexport.impl.FileBackupImporter.importEverything(FileBackupImporter.java:103) at com.atlassian.confluence.importexport.impl.BackupImporter.doImport(BackupImporter.java:100) at com.atlassian.confluence.importexport.impl.FileBackupImporter.doImport(FileBackupImporter.java:41) at com.atlassian.confluence.importexport.DefaultImportExportManager.importAs(DefaultImportExportManager.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy58.importAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:42) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Unknown Source) Caused by: java.io.FileNotFoundException: C:\confhome\temp\import_04032008_145955\attachments-new\8\22 (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.getDataForAttachment(FileSystemAttachmentDataDao.java:71) ... 20 more {noformat}

    Atlassian JIRA | 9 years ago | Paul Curren
    com.atlassian.confluence.pages.AttachmentDataNotFoundException: Problem while getting attachment stream (Attachment: office10.jpg v.1 (22)) from file system
  2. 0

    I realise that we state in CAC that you should set a confluence.home directory without spaces, however customers still regularly trip up over this and really we should try to support directories with spaces in the path. This particular instance is a failure to import a site backup. You'll see errors like - {noformat} 2008-04-03 15:00:00,020 ERROR [Importing data task] [persistence.dao.hibernate.AbstractHibernateAttachmentDao$IntraHibernateAttachmentCopier] copy There was a problem retrieving attachment 'Attachment: office10.jpg v.1 (22)' from the data store. Skipping. -- url: /confluence/admin/restore.action | userName: admin | action: restore com.atlassian.confluence.pages.AttachmentDataNotFoundException: Problem while getting attachment stream (Attachment: office10.jpg v.1 (22)) from file system at com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.getDataForAttachment(FileSystemAttachmentDataDao.java:75) at com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao$IntraHibernateAttachmentCopier.copy(AbstractHibernateAttachmentDao.java:466) at com.atlassian.confluence.importexport.impl.FileBackupImporter.importAttachments(FileBackupImporter.java:320) at com.atlassian.confluence.importexport.impl.FileBackupImporter.importEverything(FileBackupImporter.java:103) at com.atlassian.confluence.importexport.impl.BackupImporter.doImport(BackupImporter.java:100) at com.atlassian.confluence.importexport.impl.FileBackupImporter.doImport(FileBackupImporter.java:41) at com.atlassian.confluence.importexport.DefaultImportExportManager.importAs(DefaultImportExportManager.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy58.importAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:42) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Unknown Source) Caused by: java.io.FileNotFoundException: C:\confhome\temp\import_04032008_145955\attachments-new\8\22 (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.getDataForAttachment(FileSystemAttachmentDataDao.java:71) ... 20 more {noformat}

    Atlassian JIRA | 9 years ago | Paul Curren
    com.atlassian.confluence.pages.AttachmentDataNotFoundException: Problem while getting attachment stream (Attachment: office10.jpg v.1 (22)) from file system
  3. 0

    Seems strange that during import it would be trying to get an attachment and fail for something we just exported. From atlassian_confluence.log: 2007-08-01 12:34:24,808 WARN [Importing data task] [confluence.importexport.impl.DeferredOperations] reportOutstandingOperations uncompleted deferred operations waiting for:[class = com.atlassian.confluence.labels.Label, id = 1474561] 2007-08-01 12:34:24,808 WARN [Importing data task] [confluence.importexport.impl.DeferredOperations] reportOutstandingOperations write the object of class com.atlassian.confluence.labels.Labelling with id 1507329 2007-08-01 12:34:24,809 WARN [Importing data task] [confluence.importexport.impl.DeferredOperations] reportOutstandingOperations uncompleted deferred operations waiting for:[class = com.atlassian.confluence.labels.Labelling, id = 1507329] 2007-08-01 12:34:24,809 WARN [Importing data task] [confluence.importexport.impl.DeferredOperations] reportOutstandingOperations add the object class = com.atlassian.confluence.labels.Labelling, id = 1507329 to the collection named labellings of class = com.atlassian.confluence.spaces.SpaceDescription, id = 851969 2007-08-01 12:34:25,373 INFO [Importing data task] [atlassian.confluence.upgrade.HiLoIdRepairUpgradeTask] doUpgrade Beginning upgrade: HiLoIdRepairUpgradeTask 2007-08-01 12:34:25,705 INFO [Importing data task] [atlassian.confluence.upgrade.HiLoIdRepairUpgradeTask] doUpgrade Setting new next_hi to 80 2007-08-01 12:34:25,714 INFO [Importing data task] [atlassian.confluence.upgrade.HiLoIdRepairUpgradeTask] doUpgrade Completed database update: HiLoIdRepairUpgradeTask 2007-08-01 12:34:25,833 ERROR [Importing data task] [persistence.dao.hibernate.AbstractHibernateAttachmentDao$IntraHibernateAttachmentCopier] copy There was a problem retrieving attachment 'Attachment: bobcat.jpeg v.1 (2588673)' from the data store. Skipping. -- url: /admin/restore.action | userName: gsw8 | action: restore com.atlassian.confluence.pages.AttachmentDataNotFoundException: Problem while getting attachment stream (Attachment: bobcat.jpeg v.1 (2588673)) from file system at com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.getDataForAttachment(FileSystemAttachmentDataDao.java:75) at com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao$IntraHibernateAttachmentCopier.copy(AbstractHibernateAttachmentDao.java:452) at com.atlassian.confluence.importexport.impl.FileBackupImporter.importAttachments(FileBackupImporter.java:320) at com.atlassian.confluence.importexport.impl.FileBackupImporter.importEverything(FileBackupImporter.java:103) at com.atlassian.confluence.importexport.impl.BackupImporter.doImport(BackupImporter.java:92) at com.atlassian.confluence.importexport.impl.FileBackupImporter.doImport(FileBackupImporter.java:41) at com.atlassian.confluence.importexport.DefaultImportExportManager.importAs(DefaultImportExportManager.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy49.importAs(Unknown Source) at com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:42) at com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21) at java.lang.Thread.run(Thread.java:595) Caused by: java.io.FileNotFoundException: /var/confluence/temp/import_08012007_123424/attachments-new/1966092/2588673 (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.getDataForAttachment(FileSystemAttachmentDataDao.java:71) ... 20 more

    Atlassian JIRA | 9 years ago | Gary Weaver
    com.atlassian.confluence.pages.AttachmentDataNotFoundException: Problem while getting attachment stream (Attachment: bobcat.jpeg v.1 (2588673)) from file system
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [SonarLint for Eclipse] Exception on empty files with jar extension

    Google Groups | 7 months ago | Giacomo Boccardo
    java.lang.IllegalStateException: Fail to read file 'C:\PARENT-1-PROJECT_LOC\pom.xml' with encoding 'UTF-8'
  6. 0

    Service cannot find `dotmarketing-config.properties` if path contains spaces

    GitHub | 3 years ago | cppexpert
    java.io.FileNotFoundException: C:\Program%20Files%20(x86)\Apache\Tomcat%208.0\webapps\dotcms_3.0\WEB-INF\classes\dotmarketing-config.properties (The system cannot find the path specified)

  1. r1chjames 1 times, last 6 days ago
  2. richard77 1 times, last 2 weeks ago
  3. gehel 2 times, last 2 weeks ago
  4. Kialandei 100 times, last 2 weeks ago
  5. Reich 1 times, last 3 weeks ago
45 more registered users
50 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    C:\confhome\temp\import_04032008_145955\attachments-new\8\22 (The system cannot find the path specified)

    at java.io.FileInputStream.open()
  2. Java RT
    FileInputStream.<init>
    1. java.io.FileInputStream.open(Native Method)
    2. java.io.FileInputStream.<init>(Unknown Source)
    2 frames
  3. com.atlassian.confluence
    DefaultImportExportManager.importAs
    1. com.atlassian.confluence.pages.persistence.dao.FileSystemAttachmentDataDao.getDataForAttachment(FileSystemAttachmentDataDao.java:71)
    2. com.atlassian.confluence.pages.persistence.dao.hibernate.AbstractHibernateAttachmentDao$IntraHibernateAttachmentCopier.copy(AbstractHibernateAttachmentDao.java:466)
    3. com.atlassian.confluence.importexport.impl.FileBackupImporter.importAttachments(FileBackupImporter.java:320)
    4. com.atlassian.confluence.importexport.impl.FileBackupImporter.importEverything(FileBackupImporter.java:103)
    5. com.atlassian.confluence.importexport.impl.BackupImporter.doImport(BackupImporter.java:100)
    6. com.atlassian.confluence.importexport.impl.FileBackupImporter.doImport(FileBackupImporter.java:41)
    7. com.atlassian.confluence.importexport.DefaultImportExportManager.importAs(DefaultImportExportManager.java:75)
    7 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    4. java.lang.reflect.Method.invoke(Unknown Source)
    4 frames
  5. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
    3 frames
  6. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
    1 frame
  7. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    2 frames
  8. Unknown
    $Proxy58.importAs
    1. $Proxy58.importAs(Unknown Source)
    1 frame
  9. com.atlassian.confluence
    ConfluenceAbstractLongRunningTask.run
    1. com.atlassian.confluence.importexport.actions.ImportLongRunningTask.runInternal(ImportLongRunningTask.java:42)
    2. com.atlassian.confluence.util.longrunning.ConfluenceAbstractLongRunningTask.run(ConfluenceAbstractLongRunningTask.java:21)
    2 frames
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame