Exception When Creating or Deleting Page
Symptoms
When creating or deleting Confluence page, the following appears in the atlassian-confluence.log
:
2014-10-30 14:21:15,014 ERROR [scheduler_Worker-5] [org.quartz.core.ErrorLogger] schedulerError Job (DEFAULT.IndexQueueFlusher threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: com.atlassian.bonnie.LuceneException: com.atlassian.cache.CacheException: org.springframework.dao.DataAccessResourceFailureException: Failed to read id for journal 'main_index': For input string: "���"; nested exception is java.lang.NumberFormatException: For input string: "���"]
at org.quartz.core.JobRunShell.run(JobRunShell.java:210)
at com.atlassian.confluence.schedule.quartz.ConfluenceQuartzThreadPool$1.run(ConfluenceQuartzThreadPool.java:22)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: com.atlassian.bonnie.LuceneException: com.atlassian.cache.CacheException: org.springframework.dao.DataAccessResourceFailureException: Failed to read id for journal 'main_index': For input string: "���"; nested exception is java.lang.NumberFormatException: For input string: "���"
at com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:536)
at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.processTasks(DefaultConfluenceIndexManager.java:199)
at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager.flushQueue(DefaultConfluenceIndexManager.java:144)
at sun.reflect.GeneratedMethodAccessor521.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.$Proxy68.flushQueue(Unknown Source)
at com.atlassian.confluence.search.lucene.IndexQueueFlusher.executeJob(IndexQueueFlusher.java:32)
at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.surroundJobExecutionWithLogging(AbstractClusterAwareQuartzJobBean.java:65)
at com.atlassian.confluence.setup.quartz.AbstractClusterAwareQuartzJobBean.executeInternal(AbstractClusterAwareQuartzJobBean.java:47)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:199)
... 2 more
Caused by: com.atlassian.cache.CacheException: org.springframework.dao.DataAccessResourceFailureException: Failed to read id for journal 'main_index': For input string: "���"; nested exception is java.lang.NumberFormatException: For input string: "���"
at com.atlassian.cache.ehcache.DelegatingCache.get(DelegatingCache.java:79)
at com.atlassian.confluence.cache.ehcache.DefaultConfluenceEhCache.get(DefaultConfluenceEhCache.java:36)
at com.atlassian.confluence.cache.ConfluenceMonitoringCache.get(ConfluenceMonitoringCache.java:43)
at com.atlassian.confluence.impl.journal.CachingJournalStateStore.getMostRecentId(CachingJournalStateStore.java:41)
at com.atlassian.confluence.impl.journal.DefaultJournalManager.processEntries(DefaultJournalManager.java:96)
at com.atlassian.confluence.impl.journal.DefaultJournalService.processEntries(DefaultJournalService.java:52)
at com.atlassian.confluence.search.lucene.queue.JournalIndexTaskQueue.flushQueue(JournalIndexTaskQueue.java:184)
at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction$1.perform(DefaultConfluenceIndexManager.java:449)
at com.atlassian.bonnie.LuceneConnection.withWriter(LuceneConnection.java:499)
at com.atlassian.confluence.search.lucene.tasks.LuceneConnectionBackedIndexTaskPerformer.perform(LuceneConnectionBackedIndexTaskPerformer.java:21)
at com.atlassian.confluence.search.lucene.DefaultConfluenceIndexManager$BatchUpdateAction.perform(DefaultConfluenceIndexManager.java:434)
at com.atlassian.bonnie.LuceneConnection.withBatchUpdate(LuceneConnection.java:532)
... 19 more
Caused by: org.springframework.dao.DataAccessResourceFailureException: Failed to read id for journal 'main_index': For input string: "���"; nested exception is java.lang.NumberFormatException: For input string: "���"
at com.atlassian.confluence.impl.journal.FilesystemJournalStateStore.getMostRecentId(FilesystemJournalStateStore.java:56)
at com.atlassian.confluence.impl.journal.CachingJournalStateStore$1.load(CachingJournalStateStore.java:31)
at com.atlassian.confluence.impl.journal.CachingJournalStateStore$1.load(CachingJournalStateStore.java:27)
at com.atlassian.cache.ehcache.EhCacheManager$3$1.createEntry(EhCacheManager.java:168)
at net.sf.ehcache.constructs.blocking.SelfPopulatingCache.get(SelfPopulatingCache.java:73)
at com.atlassian.cache.ehcache.DelegatingCache.get(DelegatingCache.java:74)
... 30 more
Caused by: java.lang.NumberFormatException: For input string: "���"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at java.lang.Long.parseLong(Unknown Source)
at com.atlassian.confluence.impl.journal.FilesystemJournalStateStore.getMostRecentId(FilesystemJournalStateStore.java:52)
... 35 more
Cause
Corrupted index and 'main_index' file. This could happen due to system / server outage.
Resolution
Delete
<confluence-home>/journal/main_index
file and restart Confluence
Last modified on Mar 21, 2024
Powered by Confluence and Scroll Viewport.