java.lang.IllegalArgumentException: searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index

Atlassian JIRA | roomeon | 2 years ago
  1. 0

    Confluence logs an error when reindexing attachments with minor edit set to true. * In some cases the index will not complete, despite the indexes being rebuilt from scratch. * Restrictions do not make a difference. * Minor Edit is set to true in the contentproperties table when an attachment is added using drag-and-drop. Here is the error: {code} 2015-11-23 20:14:16,197 ERROR [Indexer: 3] [confluence.search.lucene.ReindexWorkBatch] indexCollection Exception indexing document with id: 15434444 -- referer: https://secure.compandsave.com/confluence/admin/search-indexes.action | url: /confluence/admin/reindex.action | userName: xxxx | action: reindex java.lang.IllegalArgumentException: searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index at com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask.<init>(AddChangeDocumentIndexTask.java:47) at com.atlassian.confluence.search.lucene.tasks.IndexTaskFactory.createAddChangeDocumentTask(IndexTaskFactory.java:133) at com.atlassian.confluence.search.lucene.tasks.RebuildChangeDocumentsIndexTask.perform(RebuildChangeDocumentsIndexTask.java:78) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.indexCollection(ReindexWorkBatch.java:146) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.lambda$executeTransaction$417(ReindexWorkBatch.java:109) at com.atlassian.confluence.search.lucene.ReindexWorkBatch$$Lambda$187/1248108333.doInTransaction(Unknown Source) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.executeTransaction(ReindexWorkBatch.java:84) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.run(ReindexWorkBatch.java:72) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:164) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} As a workaround, minor edit may be set to false in the database with a query such as the following which was tested on PostgreSQL: {code}update contentproperties set longval = '0' where propertyname = 'MINOR_EDIT' and contentid = (select contentid from content where contenttype = 'ATTACHMENT' and title = '_attachment name from error message_'){code}

    Atlassian JIRA | 2 years ago | roomeon
    java.lang.IllegalArgumentException: searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index
  2. 0

    Confluence logs an error when reindexing attachments with minor edit set to true. * In some cases the index will not complete, despite the indexes being rebuilt from scratch. * Restrictions do not make a difference. * Minor Edit is set to true in the contentproperties table when an attachment is added using drag-and-drop. Here is the error: {code} 2015-11-23 20:14:16,197 ERROR [Indexer: 3] [confluence.search.lucene.ReindexWorkBatch] indexCollection Exception indexing document with id: 15434444 -- referer: https://secure.compandsave.com/confluence/admin/search-indexes.action | url: /confluence/admin/reindex.action | userName: xxxx | action: reindex java.lang.IllegalArgumentException: searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index at com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask.<init>(AddChangeDocumentIndexTask.java:47) at com.atlassian.confluence.search.lucene.tasks.IndexTaskFactory.createAddChangeDocumentTask(IndexTaskFactory.java:133) at com.atlassian.confluence.search.lucene.tasks.RebuildChangeDocumentsIndexTask.perform(RebuildChangeDocumentsIndexTask.java:78) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.indexCollection(ReindexWorkBatch.java:146) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.lambda$executeTransaction$417(ReindexWorkBatch.java:109) at com.atlassian.confluence.search.lucene.ReindexWorkBatch$$Lambda$187/1248108333.doInTransaction(Unknown Source) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.executeTransaction(ReindexWorkBatch.java:84) at com.atlassian.confluence.search.lucene.ReindexWorkBatch.run(ReindexWorkBatch.java:72) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:164) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code} As a workaround, minor edit may be set to false in the database with a query such as the following which was tested on PostgreSQL: {code}update contentproperties set longval = '0' where propertyname = 'MINOR_EDIT' and contentid = (select contentid from content where contenttype = 'ATTACHMENT' and title = '_attachment name from error message_'){code}

    Atlassian JIRA | 2 years ago | roomeon
    java.lang.IllegalArgumentException: searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index
  3. 0

    Grails searchable plugin errors mapping hasMany

    Stack Overflow | 5 years ago | bitbucket
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compassGps': Cannot resolve reference to bean 'compass' while setting bean property 'compass'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compass': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Unable to map [com.ace.mws.servicetemplates.ServiceTemplate.services]. It does not appear to a suitable 'searchable property' (normally simple types like Strings, Dates, Numbers, etc), 'searchable reference' (normally another domain class) or 'searchable component' (normally another domain class defined as a component, using the 'embedded' declaration). Is it a derived property (a getter method with no equivalent field) defined with 'def'? Try defining it with a more specific return type
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    PDF downloading from server in struts2

    Stack Overflow | 3 years ago | user2594235
    java.lang.IllegalArgumentException: application/pdf is not a supported mime type
  6. 0

    Support for org.joda.time.DateTime

    GitHub | 2 years ago | arbjerg
    com.gilt.event.EventTransmissionException: Unable to publish event.

    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.lang.IllegalArgumentException

      searchable: Attachment: New Hire - i-9.pdf v.1 (16023917) michaelc is not supported: Attachments with minor edit set to true are not accounted for in the change index

      at com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask.<init>()
    2. com.atlassian.confluence
      ReindexWorkBatch.lambda$executeTransaction$417
      1. com.atlassian.confluence.search.lucene.tasks.AddChangeDocumentIndexTask.<init>(AddChangeDocumentIndexTask.java:47)
      2. com.atlassian.confluence.search.lucene.tasks.IndexTaskFactory.createAddChangeDocumentTask(IndexTaskFactory.java:133)
      3. com.atlassian.confluence.search.lucene.tasks.RebuildChangeDocumentsIndexTask.perform(RebuildChangeDocumentsIndexTask.java:78)
      4. com.atlassian.confluence.search.lucene.ReindexWorkBatch.indexCollection(ReindexWorkBatch.java:146)
      5. com.atlassian.confluence.search.lucene.ReindexWorkBatch.lambda$executeTransaction$417(ReindexWorkBatch.java:109)
      5 frames