com.atlassian.confluence.pages.AttachmentDataNotFoundException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Paul Curren,
  • 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}
    via by Paul Curren,
  • 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
    via by Gary Weaver,
  • 1.7.9 Not Work
    via GitHub by xXAvoraXx
    ,
  • Jmeter doesn&#39;t accept csv input file
    via Stack Overflow by myro
    ,
  • Web Services - wsdeploy
    via by 843833,
  • Error: Couldn't load terrain.png
    via GitHub by skoeven
    ,
    • 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

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    180 more bugmates