com.atlassian.bonnie.LuceneException: java.io.IOException: Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge'

Atlassian JIRA | Mizan Sayed [Atlassian] | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h3. Summary When rebuilding indexes as mentioned in the documentation https://confluence.atlassian.com/display/CONFKB/How+to+rebuild+the+content+indexes+from+scratch causes confluence to error on startup h5.Steps to reproduce # Start Confluence, set it up and shut it down # Delete the index directory (as if you were rebuilding the index from scratch) # Start Confluence again h5.Expected Results # Confluence creates the index directory, and the edge directory h5.Actual Results * Confluence creates the index directory, but not the edge directory. * Errors such as *Aww shoot, we can't find that page.* appear when clicking on the Popular tab. * The "Confluence Edge Index" plugin is disabled * If the site is accessed via a mobile device or via the URL (http://confluence.company.com/plugins/servlet/mobile#dashboard), the error {panel} There was an error loading the stream items. {panel} appears. * The following log entry can be found in {{atlassian-confluence.log}} {noformat} 2015-12-03 23:31:32,332 ERROR [ThreadPoolAsyncTaskExecutor::Thread 13] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.atlassian.confluence.plugins.confluence-edge-index' org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'edgeLuceneConnectionFactoryBean' defined in URL [bundle://169.0:0/META-INF/spring/pluginContext.xml]: Cannot resolve reference to bean 'directory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'directory': FactoryBean threw exception on object creation; nested exception is com.atlassian.bonnie.LuceneException: java.io.IOException: Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge' at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:835) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325) at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137) 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) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'directory': FactoryBean threw exception on object creation; nested exception is com.atlassian.bonnie.LuceneException: java.io.IOException: Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge' at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1584) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:253) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ... 21 more Caused by: com.atlassian.bonnie.LuceneException: java.io.IOException: Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge' at com.atlassian.bonnie.DirectoryUtil.getDirectory(DirectoryUtil.java:34) at com.atlassian.confluence.plugins.edgeindex.lucene.DirectoryFactory.getObject(DirectoryFactory.java:25) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ... 26 more Caused by: java.io.IOException: Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge' at com.atlassian.bonnie.DirectoryUtil.getDirectory(DirectoryUtil.java:25) ... 28 more {noformat} h5.Notes This is *not* related to Filesystem permissions. The parent folder is created, and files are placed in it, which suggests that the folder and it's contents are writeable This has been observed in Windows and Linux. h5.Workaround Create the {{confluence-home/index/edge}} folder, and then manually enable the "Confluence Edge Index" plugin.

    Atlassian JIRA | 1 year ago | Mizan Sayed [Atlassian]
    com.atlassian.bonnie.LuceneException: java.io.IOException: Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge'
  2. 0

    h3. Summary When rebuilding indexes as mentioned in the documentation https://confluence.atlassian.com/display/CONFKB/How+to+rebuild+the+content+indexes+from+scratch causes confluence to error on startup h5.Steps to reproduce # Start Confluence, set it up and shut it down # Delete the index directory (as if you were rebuilding the index from scratch) # Start Confluence again h5.Expected Results # Confluence creates the index directory, and the edge directory h5.Actual Results * Confluence creates the index directory, but not the edge directory. * Errors such as *Aww shoot, we can't find that page.* appear when clicking on the Popular tab. * The "Confluence Edge Index" plugin is disabled * If the site is accessed via a mobile device or via the URL (http://confluence.company.com/plugins/servlet/mobile#dashboard), the error {panel} There was an error loading the stream items. {panel} appears. * The following log entry can be found in {{atlassian-confluence.log}} {noformat} 2015-12-03 23:31:32,332 ERROR [ThreadPoolAsyncTaskExecutor::Thread 13] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.atlassian.confluence.plugins.confluence-edge-index' org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'edgeLuceneConnectionFactoryBean' defined in URL [bundle://169.0:0/META-INF/spring/pluginContext.xml]: Cannot resolve reference to bean 'directory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'directory': FactoryBean threw exception on object creation; nested exception is com.atlassian.bonnie.LuceneException: java.io.IOException: Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge' at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:835) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325) at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137) 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) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'directory': FactoryBean threw exception on object creation; nested exception is com.atlassian.bonnie.LuceneException: java.io.IOException: Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge' at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1584) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:253) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ... 21 more Caused by: com.atlassian.bonnie.LuceneException: java.io.IOException: Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge' at com.atlassian.bonnie.DirectoryUtil.getDirectory(DirectoryUtil.java:34) at com.atlassian.confluence.plugins.edgeindex.lucene.DirectoryFactory.getObject(DirectoryFactory.java:25) at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168) ... 26 more Caused by: java.io.IOException: Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge' at com.atlassian.bonnie.DirectoryUtil.getDirectory(DirectoryUtil.java:25) ... 28 more {noformat} h5.Notes This is *not* related to Filesystem permissions. The parent folder is created, and files are placed in it, which suggests that the folder and it's contents are writeable This has been observed in Windows and Linux. h5.Workaround Create the {{confluence-home/index/edge}} folder, and then manually enable the "Confluence Edge Index" plugin.

    Atlassian JIRA | 1 year ago | Mizan Sayed [Atlassian]
    com.atlassian.bonnie.LuceneException: java.io.IOException: Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge'
  3. 0

    ADB Connection Error

    Stack Overflow | 4 years ago | Raveesh Lawrance
    java.io.IOException: An existing connection was forcibly closed by the remote host at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(Unknown Source) at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.read(Unknown Source) at sun.nio.ch.SocketChannelImpl.read(Unknown Source) at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:395) at com.android.ddmlib.Device.executeShellCommand(Device.java:462) at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:110)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.IllegalArgumentException: URI scheme is not "file"

    java-forums.org | 9 months ago
    java.io.IOException: Server returned HTTP response code: 403 for URL: at sun.net. at slideshowapplet.SlideshowApplet.doListofImagefiles (SlideshowApplet.java:461) at slideshowapplet.SlideshowApplet.init(SlideshowAppl et.java:180) at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Plugin2Manager.java:1658)
  6. 0

    java.lang.IllegalArgumentException: URI scheme is not "file"

    java-forums.org | 9 months ago
    java.io.IOException: Server returned HTTP response code: 403 for URL: at sun.net. at slideshowapplet.SlideshowApplet.doListofImagefiles (SlideshowApplet.java:484) at slideshowapplet.SlideshowApplet.init(SlideshowAppl et.java:182) at sun.plugin2.applet.Plugin2Manager$AppletExecutionR unnable.run(Plugin2Manager.java:1658)

    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.io.IOException

      Unable to create index directory '/Users/dayanaazmi/CONF_591PostgreSQL_Home/index/edge'

      at com.atlassian.bonnie.DirectoryUtil.getDirectory()
    2. com.atlassian.bonnie
      DirectoryUtil.getDirectory
      1. com.atlassian.bonnie.DirectoryUtil.getDirectory(DirectoryUtil.java:25)
      1 frame
    3. com.atlassian.confluence
      DirectoryFactory.getObject
      1. com.atlassian.confluence.plugins.edgeindex.lucene.DirectoryFactory.getObject(DirectoryFactory.java:25)
      1 frame
    4. Spring Beans
      DefaultListableBeanFactory.preInstantiateSingletons
      1. org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
      2. org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
      3. org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1584)
      4. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:253)
      5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
      6. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
      7. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
      8. org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:648)
      9. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:140)
      10. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)
      11. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)
      12. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
      13. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
      14. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:305)
      15. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
      16. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:301)
      17. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
      18. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
      18 frames
    5. Spring Context
      AbstractApplicationContext.finishBeanFactoryInitialization
      1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:835)
      1 frame
    6. org.eclipse.gemini
      DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run
      1. org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60)
      2. org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325)
      3. org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
      4. org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290)
      5. org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
      5 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames