com.atlassian.bonnie.search.extractor.ExtractorException: Error getting content of PDF document

Atlassian JIRA | Dennis | 3 years ago
  1. 0

    We have documents that are digitally signed and the document could be displayed in Confluence 4.3.7. When I upload a document to the new version of confluence 5.3.1 the content cannot be retrieved from the PDF document. Stack Trace: 2013-10-30 16:42:30,071 WARN [scheduler_Worker-1] [bonnie.search.extractor.BaseAttachmentContentExtractor] addFields Error indexing attachment (Attachment: dd2875_SnF_Example.pdf v.1 (720898) confluence-admin) com.atlassian.bonnie.search.extractor.ExtractorException: Error getting content of PDF document at com.atlassian.bonnie.search.extractor.PdfContentExtractor.extractText(PdfContentExtractor.java:96) at com.atlassian.bonnie.search.extractor.BaseAttachmentContentExtractor.addFields(BaseAttachmentContentExtractor.java:41) at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:42) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.extractWithLuceneExtractors(ConfluenceDocumentBuilder.java:130) at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:100) at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:43) at com.atlassian.confluence.search.lucene.tasks.UpdateDocumentIndexTask.perform(UpdateDocumentIndexTask.java:40) at com.atlassian.confluence.search.lucene.tasks.BulkWriteIndexTask.perform(BulkWriteIndexTask.java:44) at com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:249) at com.atlassian.confluence.search.lucene.tasks.LuceneConnectionBackedIndexTaskPerformer.perform(LuceneConnectionBackedIndexTaskPerformer.java:20) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction.perform(DefaultConfluenceIndexManager.java:427) at com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:282) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.processTasks(DefaultConfluenceIndexManager.java:204) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.flushQueue(DefaultConfluenceIndexManager.java:156) at sun.reflect.GeneratedMethodAccessor501.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy90.flushQueue(Unknown Source) at com.atlassian.confluence.search.lucene.IndexQueueFlusher.executeJob(IndexQueueFlusher.java:30) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:64) at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:46) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:199) at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) Caused by: com.oracle.security.ucrypto.UcryptoException: CRYPTO_ENCRYPTED_DATA_LEN_RANGE at com.oracle.security.ucrypto.NativeCipher.doFinal(NativeCipher.java:645) at com.oracle.security.ucrypto.NativeCipher.engineDoFinal(NativeCipher.java:485) at com.oracle.security.ucrypto.NativeCipher.engineDoFinal(NativeCipher.java:464) at com.oracle.security.ucrypto.NativeCipherWithJavaPadding.engineDoFinal(NativeCipherWithJavaPadding.java:398) at com.oracle.security.ucrypto.NativeCipherWithJavaPadding.engineDoFinal(NativeCipherWithJavaPadding.java:365) at javax.crypto.Cipher.doFinal(Cipher.java:1970) at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:107) at javax.crypto.CipherInputStream.read(CipherInputStream.java:224) at javax.crypto.CipherInputStream.read(CipherInputStream.java:200) at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(SecurityHandler.java:313) at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptStream(SecurityHandler.java:412) at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decrypt(SecurityHandler.java:384) at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptObject(SecurityHandler.java:358) at org.apache.pdfbox.pdmodel.encryption.SecurityHandler.proceedDecryption(SecurityHandler.java:195) at org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.decryptDocument(StandardSecurityHandler.java:156) at org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1366) at org.apache.pdfbox.pdmodel.PDDocument.decrypt(PDDocument.java:798) at com.atlassian.bonnie.search.extractor.PdfContentExtractor.extractText(PdfContentExtractor.java:64) ... 30 more

    Atlassian JIRA | 3 years ago | Dennis
    com.atlassian.bonnie.search.extractor.ExtractorException: Error getting content of PDF document
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.oracle.security.ucrypto.UcryptoException

      CRYPTO_ENCRYPTED_DATA_LEN_RANGE

      at com.oracle.security.ucrypto.NativeCipher.doFinal()
    2. com.oracle.security
      NativeCipherWithJavaPadding.engineDoFinal
      1. com.oracle.security.ucrypto.NativeCipher.doFinal(NativeCipher.java:645)
      2. com.oracle.security.ucrypto.NativeCipher.engineDoFinal(NativeCipher.java:485)
      3. com.oracle.security.ucrypto.NativeCipher.engineDoFinal(NativeCipher.java:464)
      4. com.oracle.security.ucrypto.NativeCipherWithJavaPadding.engineDoFinal(NativeCipherWithJavaPadding.java:398)
      5. com.oracle.security.ucrypto.NativeCipherWithJavaPadding.engineDoFinal(NativeCipherWithJavaPadding.java:365)
      5 frames
    3. Android Platform
      CipherInputStream.read
      1. javax.crypto.Cipher.doFinal(Cipher.java:1970)
      2. javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:107)
      3. javax.crypto.CipherInputStream.read(CipherInputStream.java:224)
      4. javax.crypto.CipherInputStream.read(CipherInputStream.java:200)
      4 frames
    4. Apache PDFBox
      PDDocument.decrypt
      1. org.apache.pdfbox.pdmodel.encryption.SecurityHandler.encryptData(SecurityHandler.java:313)
      2. org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptStream(SecurityHandler.java:412)
      3. org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decrypt(SecurityHandler.java:384)
      4. org.apache.pdfbox.pdmodel.encryption.SecurityHandler.decryptObject(SecurityHandler.java:358)
      5. org.apache.pdfbox.pdmodel.encryption.SecurityHandler.proceedDecryption(SecurityHandler.java:195)
      6. org.apache.pdfbox.pdmodel.encryption.StandardSecurityHandler.decryptDocument(StandardSecurityHandler.java:156)
      7. org.apache.pdfbox.pdmodel.PDDocument.openProtection(PDDocument.java:1366)
      8. org.apache.pdfbox.pdmodel.PDDocument.decrypt(PDDocument.java:798)
      8 frames
    5. com.atlassian.bonnie
      BaseAttachmentContentExtractor.addFields
      1. com.atlassian.bonnie.search.extractor.PdfContentExtractor.extractText(PdfContentExtractor.java:64)
      2. com.atlassian.bonnie.search.extractor.BaseAttachmentContentExtractor.addFields(BaseAttachmentContentExtractor.java:41)
      2 frames
    6. com.atlassian.confluence
      BulkWriteIndexTask.perform
      1. com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:42)
      2. com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.extractWithLuceneExtractors(ConfluenceDocumentBuilder.java:130)
      3. com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:100)
      4. com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:43)
      5. com.atlassian.confluence.search.lucene.tasks.UpdateDocumentIndexTask.perform(UpdateDocumentIndexTask.java:40)
      6. com.atlassian.confluence.search.lucene.tasks.BulkWriteIndexTask.perform(BulkWriteIndexTask.java:44)
      6 frames
    7. com.atlassian.bonnie
      LuceneConnection.withWriter
      1. com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:249)
      1 frame
    8. com.atlassian.confluence
      DefaultConfluenceIndexManager$BatchUpdateAction.perform
      1. com.atlassian.confluence.search.lucene.tasks.LuceneConnectionBackedIndexTaskPerformer.perform(LuceneConnectionBackedIndexTaskPerformer.java:20)
      2. com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction.perform(DefaultConfluenceIndexManager.java:427)
      2 frames
    9. com.atlassian.bonnie
      LuceneConnection.withBatchUpdate
      1. com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:282)
      1 frame
    10. com.atlassian.confluence
      DefaultConfluenceIndexManager.flushQueue
      1. com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.processTasks(DefaultConfluenceIndexManager.java:204)
      2. com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.flushQueue(DefaultConfluenceIndexManager.java:156)
      2 frames
    11. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor501.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    12. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    13. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    14. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    15. com.sun.proxy
      $Proxy90.flushQueue
      1. com.sun.proxy.$Proxy90.flushQueue(Unknown Source)
      1 frame
    16. com.atlassian.confluence
      AbstractClusterAwareQuartzJobBean.executeInternal
      1. com.atlassian.confluence.search.lucene.IndexQueueFlusher.executeJob(IndexQueueFlusher.java:30)
      2. com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:64)
      3. com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:46)
      3 frames
    17. Spring Context Support
      QuartzJobBean.execute
      1. org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
      1 frame
    18. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:199)
      1 frame
    19. com.atlassian.confluence
      ConfluenceQuartzThreadPool$1.run
      1. com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:20)
      1 frame
    20. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
      1 frame