Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1502

Microsoft Office sequencer fails when no thumbnail is extracted

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.8.2.Final
    • 2.8.1.Final
    • None
    • None

      When sequencing a Microsoft Office document which does not have a thumbnail (or whose thumbnail cannot be extracted by POI) the sequencer fails with:

      org.modeshape.repository.sequencer.SequencerException: java.lang.IllegalArgumentException: The bytes argument may not be null
      	at org.modeshape.repository.sequencer.StreamSequencerAdapter.execute(StreamSequencerAdapter.java:198)
      	at org.modeshape.repository.sequencer.SequencingService.processChange(SequencingService.java:498)
      	at org.modeshape.repository.sequencer.SequencingService$RepositoryObserver$1.run(SequencingService.java:666)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.IllegalArgumentException: The bytes argument may not be null
      	at org.modeshape.common.util.CheckArg.isNotNull(CheckArg.java:387)
      	at org.modeshape.graph.property.basic.InMemoryBinary.<init>(InMemoryBinary.java:49)
      	at org.modeshape.graph.property.basic.InMemoryBinaryValueFactory.create(InMemoryBinaryValueFactory.java:50)
      	at org.modeshape.graph.property.basic.InMemoryBinaryValueFactory.create(InMemoryBinaryValueFactory.java:38)
      	at org.modeshape.sequencer.msoffice.MSOfficeMetadataSequencer.recordMetadata(MSOfficeMetadataSequencer.java:202)
      	at org.modeshape.sequencer.msoffice.MSOfficeMetadataSequencer.sequence(MSOfficeMetadataSequencer.java:143)
      	at org.modeshape.repository.sequencer.StreamSequencerAdapter.execute(StreamSequencerAdapter.java:180)
      	... 5 more
      
      javax.jcr.PathNotFoundException: Unable to find "{}sequenced"; lowest existing path is "/"
      	at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:840)
      	at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:703)
      	at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:96)
      	at org.modeshape.test.integration.sequencer.MSOfficeSequencerIntegrationTest.uploadAndAssertSequencedNode(MSOfficeSequencerIntegrationTest.java:92)
      	at org.modeshape.test.integration.sequencer.MSOfficeSequencerIntegrationTest.shouldSequenceDoc(MSOfficeSequencerIntegrationTest.java:82)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
      	at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
      	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
      	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
      	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
      	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
      	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
      	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
      	at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
      	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:76)
      	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:182)
      	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:62)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
      

              hchiorean Horia Chiorean (Inactive)
              hchiorean Horia Chiorean (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: