Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-55244

Word Import Fails If Doc Contains Images

    XMLWordPrintable

    Details

      Description

      Summary

      Word import of word document with too many images results in the following error (fails the import):

      @40000000591d57572422b98c 2017-05-18 16:11:57,601 ERROR [Caesium-1-8] [plugins.wordimport.service.WordImportTaskRunner] runTask Error importing Word document
      @40000000591d57572422c544  -- traceId: 835b4e78290d73ec
      @40000000591d57572422c544 com.netflix.hystrix.exception.HystrixRuntimeException: WordImportCommand timed-out and no fallback available.
      @40000000591d57572422c92c       at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:808)
      @40000000591d57572422c92c       at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:793)
      

      How to Replicate

      1. Create a word document with many images attached to it
      2. Upload it to any Cloud instance, via ... >> Import Word Document (don't need to split headings)

      Investigation Done

      • Import works fine if the images in the document are removed
      • No OOME as far as we can see
      • The following errors are thrown:
        2017-05-17 16:57:04.366770500 2017-05-17 16:57:04,348 WARN [hystrix-WordImport-10] [internal.core.service.VCacheLock] lockWithTimeout Interrupted whilst waiting for a lock on cache: 
        2017-05-17 16:57:04.366772500  -- traceId: a21810173056a1c2
        2017-05-17 16:57:04.366772500 java.lang.InterruptedException
        2017-05-17 16:57:04.366772500 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireNanos(AbstractQueuedSynchronizer.java:1245)
        2017-05-17 16:57:04.366773500 	at java.util.concurrent.locks.ReentrantLock.tryLock(ReentrantLock.java:442)
        2017-05-17 16:57:04.366809500 	at com.atlassian.vcache.internal.core.service.VCacheLock.lockWithTimeout(VCacheLo
        
        2017-05-17 16:57:03.236539500 2017-05-17 16:57:02,784 ERROR [Caesium-1-4] [plugins.wordimport.service.WordImportTaskRunner] runTask Error importing Word document
        2017-05-17 16:57:03.236541500  -- traceId: a21810173056a1c2
        2017-05-17 16:57:03.236541500 com.netflix.hystrix.exception.HystrixRuntimeException: WordImportCommand timed-out and no fallback available.
        2017-05-17 16:57:03.236542500 	at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:808)
        2017-05-17 16:57:03.236542500 	at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:793)
        2017-05-17 16:57:03.236585500 	at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:140)
        2017-05-17 16:57:03.236586500 	at rx.internal.operators.OnSubscribeDoOnEach$DoOnEachSubscriber.onError(OnSubscribe
        
        2017-05-17 16:57:04.376943500 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        2017-05-17 16:57:04.376944500 	at java.lang.Thread.run(Thread.java:745)
        2017-05-17 16:57:04.376948500 Caused by: java.lang.InterruptedException
        2017-05-17 16:57:04.376948500 	at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireNanos(AbstractQueuedSynchronizer.java:1245)
        2017-05-17 16:57:04.376949500 	at java.util.concurrent.locks.ReentrantLock.tryLock(ReentrantLock.java:442)
        2017-05-17 16:57:04.376949500 	at com.atlassian.vcache.internal.core.service.VCacheLock.lockWithTimeout(VCacheLock.java:50)
        2017-05-17 16:57:04.376955500 	... 144 more
        2017-05-17 16:57:04.381609500 2017-05-17 16:57:04,377 WARN [hystrix-WordImport-10] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
        2017-05-17 16:57:04.381610500   ->[PluginReadWriteTx]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT (Session #21327507)
        2017-05-17 16:57:04.381610500         [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #11124671)
        2017-05-17 16:57:04.381610500         [null]: PROPAGATION_REQUIRES_NEW,ISOLATION_DEFAULT (Session #26350011)
        

      Workaround

      Only workaround now is to remove the images in the Word document and attach them manually to the page post-import

        Attachments

          Activity

            People

            Assignee:
            nhdang Nhan Dang
            Reporter:
            fsim Foo Sim
            Votes:
            11 Vote for this issue
            Watchers:
            30 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: