java.util.concurrent.ExecutionException: org.springframework.orm.hibernate.HibernateSystemException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit; nested exception is net.sf.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit

Atlassian JIRA | Olli Nevalainen [OOO until 6 Oct] | 2 years ago
  1. 0

    The following error is thrown when trying to reindex attachments for which minorEdit is null: {code} 2014-11-06 18:21:17,511 ERROR [confluence-interactive-reindexing-thread] [atlassian.confluence.index.ConfluenceReIndexer] indexHandles Exception processing batch, retrying items remaining in batch -- referer: https://xxx/admin/search-indexes.action | url: /admin/reindex.action | userName: x | action: reindex 2014-11-06 18:21:17,554 ERROR [confluence-interactive-reindexing-thread] [atlassian.confluence.index.ConfluenceReIndexer] indexHandles Exception processing batch, retrying items remaining in batch -- referer: https://xxx/admin/search-indexes.action | url: /admin/reindex.action | userName: xxx | action: reindex 2014-11-06 18:21:17,581 ERROR [confluence-interactive-reindexing-thread] [atlassian.confluence.index.ConfluenceReIndexer] indexHandles Exception processing batch, maximum number of retries reached -- referer: https://xxx/admin/search-indexes.action | url: /admin/reindex.action | userName: xxx | action: reindex java.util.concurrent.ExecutionException: org.springframework.orm.hibernate.HibernateSystemException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit; nested exception is net.sf.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at com.atlassian.confluence.index.ConfluenceReIndexer.indexHandles(ConfluenceReIndexer.java:231) at com.atlassian.confluence.index.ConfluenceReIndexer.access$100(ConfluenceReIndexer.java:60) at com.atlassian.confluence.index.ConfluenceReIndexer$2.perform(ConfluenceReIndexer.java:183) at com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:499) at com.atlassian.confluence.index.ConfluenceReIndexer.indexAttachments(ConfluenceReIndexer.java:171) at com.atlassian.confluence.index.ConfluenceReIndexer.reIndex(ConfluenceReIndexer.java:111) at com.atlassian.confluence.search.ReIndexTask.run(ReIndexTask.java:42) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:167) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$1.run(DefaultConfluenceIndexManager.java:256) at java.lang.Thread.run(Thread.java:744) Caused by: org.springframework.orm.hibernate.HibernateSystemException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit; nested exception is net.sf.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:597) at org.springframework.orm.hibernate.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:353) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:375) at org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:341) at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao.findByIdsAndClassName(HibernateAnyTypeDao.java:108) at com.atlassian.confluence.search.lucene.ReindexWorkBatch$1.doInTransaction(ReindexWorkBatch.java:103) 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:471) at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:167) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ... 1 more Caused by: net.sf.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit at net.sf.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:57) at net.sf.hibernate.persister.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:229) at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2251) at net.sf.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:319) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:309) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138) at net.sf.hibernate.loader.Loader.doList(Loader.java:1063) at net.sf.hibernate.loader.Loader.list(Loader.java:1054) at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1570) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1547) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1539) at sun.reflect.GeneratedMethodAccessor1609.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.orm.hibernate.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1123) at com.sun.proxy.$Proxy436.find(Unknown Source) at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao$3.doInHibernate(HibernateAnyTypeDao.java:114) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) ... 12 more Caused by: java.lang.IllegalArgumentException at sun.reflect.GeneratedMethodAccessor1365.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at net.sf.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:38) ... 30 more {code} Either {{Attachment#minorEdit}} should be {{Boolean}} or upgrade task should be written to fix rows like this before adding a not null constraint to minor_edit column in attachments table.

    Atlassian JIRA | 2 years ago | Olli Nevalainen
    java.util.concurrent.ExecutionException: org.springframework.orm.hibernate.HibernateSystemException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit; nested exception is net.sf.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit
  2. 0

    The following error is thrown when trying to reindex attachments for which minorEdit is null: {code} 2014-11-06 18:21:17,511 ERROR [confluence-interactive-reindexing-thread] [atlassian.confluence.index.ConfluenceReIndexer] indexHandles Exception processing batch, retrying items remaining in batch -- referer: https://xxx/admin/search-indexes.action | url: /admin/reindex.action | userName: x | action: reindex 2014-11-06 18:21:17,554 ERROR [confluence-interactive-reindexing-thread] [atlassian.confluence.index.ConfluenceReIndexer] indexHandles Exception processing batch, retrying items remaining in batch -- referer: https://xxx/admin/search-indexes.action | url: /admin/reindex.action | userName: xxx | action: reindex 2014-11-06 18:21:17,581 ERROR [confluence-interactive-reindexing-thread] [atlassian.confluence.index.ConfluenceReIndexer] indexHandles Exception processing batch, maximum number of retries reached -- referer: https://xxx/admin/search-indexes.action | url: /admin/reindex.action | userName: xxx | action: reindex java.util.concurrent.ExecutionException: org.springframework.orm.hibernate.HibernateSystemException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit; nested exception is net.sf.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at com.atlassian.confluence.index.ConfluenceReIndexer.indexHandles(ConfluenceReIndexer.java:231) at com.atlassian.confluence.index.ConfluenceReIndexer.access$100(ConfluenceReIndexer.java:60) at com.atlassian.confluence.index.ConfluenceReIndexer$2.perform(ConfluenceReIndexer.java:183) at com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:499) at com.atlassian.confluence.index.ConfluenceReIndexer.indexAttachments(ConfluenceReIndexer.java:171) at com.atlassian.confluence.index.ConfluenceReIndexer.reIndex(ConfluenceReIndexer.java:111) at com.atlassian.confluence.search.ReIndexTask.run(ReIndexTask.java:42) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:167) at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$1.run(DefaultConfluenceIndexManager.java:256) at java.lang.Thread.run(Thread.java:744) Caused by: org.springframework.orm.hibernate.HibernateSystemException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit; nested exception is net.sf.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit at org.springframework.orm.hibernate.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:597) at org.springframework.orm.hibernate.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:353) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:375) at org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:341) at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao.findByIdsAndClassName(HibernateAnyTypeDao.java:108) at com.atlassian.confluence.search.lucene.ReindexWorkBatch$1.doInTransaction(ReindexWorkBatch.java:103) 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:471) at com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:167) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ... 1 more Caused by: net.sf.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit at net.sf.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:57) at net.sf.hibernate.persister.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:229) at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2251) at net.sf.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:319) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:309) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138) at net.sf.hibernate.loader.Loader.doList(Loader.java:1063) at net.sf.hibernate.loader.Loader.list(Loader.java:1054) at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1570) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1547) at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1539) at sun.reflect.GeneratedMethodAccessor1609.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.orm.hibernate.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1123) at com.sun.proxy.$Proxy436.find(Unknown Source) at com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao$3.doInHibernate(HibernateAnyTypeDao.java:114) at org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370) ... 12 more Caused by: java.lang.IllegalArgumentException at sun.reflect.GeneratedMethodAccessor1365.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at net.sf.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:38) ... 30 more {code} Either {{Attachment#minorEdit}} should be {{Boolean}} or upgrade task should be written to fix rows like this before adding a not null constraint to minor_edit column in attachments table.

    Atlassian JIRA | 2 years ago | Olli Nevalainen [OOO until 6 Oct]
    java.util.concurrent.ExecutionException: org.springframework.orm.hibernate.HibernateSystemException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit; nested exception is net.sf.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.confluence.pages.Attachment.minorEdit
  3. 0

    Having a problem using reflected constructor

    Google Groups | 2 years ago | Greg Zoller
    java.lang.IllegalArgumentException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring form not populating the data to model object

    Stack Overflow | 4 years ago | nick-s
    java.lang.IllegalArgumentException
  6. 0

    IllegalArgumentException when adding h:commandButton with f:param to h:dataTable

    Stack Overflow | 6 years ago | Atmocreations
    org.apache.jasper.el.JspELException: /overview.jsp(15,1) '#{overviewBean.loadContent }' java.lang.IllegalArgumentException

  1. Aria Pahlavan 16 times, last 3 weeks ago
  2. kjhdofjosvs 2 times, last 1 month ago
  3. tyson925 2 times, last 1 month ago
  4. kuldeep 2 times, last 2 months ago
  5. aldrinleal 1 times, last 5 months ago
6 more registered users
72 unregistered visitors
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

    No message provided

    at sun.reflect.GeneratedMethodAccessor1365.invoke()
  2. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor1365.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  3. net.sf.hibernate
    SessionImpl.find
    1. net.sf.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:38)
    2. net.sf.hibernate.persister.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:229)
    3. net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2251)
    4. net.sf.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:319)
    5. net.sf.hibernate.loader.Loader.doQuery(Loader.java:309)
    6. net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:138)
    7. net.sf.hibernate.loader.Loader.doList(Loader.java:1063)
    8. net.sf.hibernate.loader.Loader.list(Loader.java:1054)
    9. net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:854)
    10. net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1570)
    11. net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1547)
    12. net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1539)
    12 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor1609.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  5. Hibernate
    HibernateTemplate$CloseSuppressingInvocationHandler.invoke
    1. org.springframework.orm.hibernate.HibernateTemplate$CloseSuppressingInvocationHandler.invoke(HibernateTemplate.java:1123)
    1 frame
  6. com.sun.proxy
    $Proxy436.find
    1. com.sun.proxy.$Proxy436.find(Unknown Source)
    1 frame
  7. com.atlassian.confluence
    HibernateAnyTypeDao$3.doInHibernate
    1. com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao$3.doInHibernate(HibernateAnyTypeDao.java:114)
    1 frame
  8. Hibernate
    HibernateTemplate.executeFind
    1. org.springframework.orm.hibernate.HibernateTemplate.execute(HibernateTemplate.java:370)
    2. org.springframework.orm.hibernate.HibernateTemplate.executeFind(HibernateTemplate.java:341)
    2 frames
  9. com.atlassian.confluence
    ReindexWorkBatch$1.doInTransaction
    1. com.atlassian.confluence.core.persistence.hibernate.HibernateAnyTypeDao.findByIdsAndClassName(HibernateAnyTypeDao.java:108)
    2. com.atlassian.confluence.search.lucene.ReindexWorkBatch$1.doInTransaction(ReindexWorkBatch.java:103)
    2 frames
  10. Spring Tx
    TransactionTemplate.execute
    1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
    1 frame
  11. com.atlassian.confluence
    ReindexWorkBatch.run
    1. com.atlassian.confluence.search.lucene.ReindexWorkBatch.executeTransaction(ReindexWorkBatch.java:84)
    2. com.atlassian.confluence.search.lucene.ReindexWorkBatch.run(ReindexWorkBatch.java:72)
    2 frames
  12. Java RT
    Executors$RunnableAdapter.call
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    1 frame
  13. com.atlassian.confluence
    TenantGate$3.call
    1. com.atlassian.confluence.tenant.TenantGate$3.call(TenantGate.java:167)
    1 frame
  14. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    4. java.lang.Thread.run(Thread.java:744)
    4 frames