java.lang.RuntimeException: Unable to create cache directory.

Spring JIRA | Arnaud Nauwynck | 2 years ago
  1. 0

    when installing Roo with a shared account (soft, root..), and running it with another account, the startup of bin/roo.sh failed ... application is NOT usable at all !! {code} $ roo.sh ERROR: Unable to create cache directory: /opt/soft/spring-roo-1.2.5.RELEASE/cache ERROR: Error creating bundle cache. (java.lang.RuntimeException: Unable to create cache directory.) java.lang.RuntimeException: Unable to create cache directory. at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:107) at org.apache.felix.framework.Felix.init(Felix.java:599) at org.springframework.roo.bootstrap.Main.main(Main.java:284) Could not create framework: org.osgi.framework.BundleException: Error creating bundle cache. org.osgi.framework.BundleException: Error creating bundle cache. at org.apache.felix.framework.Felix.init(Felix.java:604) at org.springframework.roo.bootstrap.Main.main(Main.java:284) Caused by: java.lang.RuntimeException: Unable to create cache directory. at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:107) at org.apache.felix.framework.Felix.init(Felix.java:599) ... 1 more {code} A ugly but fully fonctionnal work-around found in some forums is to copy&paste roo into your own directory with your account (ROO_HOME becomes a writeable dir for you), but it is not practical for doing share installation. I have tried unsuccesfully to edit the file "conf/config.properties" to add " felix.cache.rootdir=${user.home}/.felix" and I have tried also unsuccesfully to change the bin/roo.sh startup script : ( the behavior is very strange : no log, no error, but nothing happens, all thread are waiting and nothing comes) {code} ROO_OSGI_FRAMEWORK_STORAGE="$HOME/.roo/cache" # ... was before : ROO_OSGI_FRAMEWORK_STORAGE="$ROO_HOME/cache" # echo "ROO_OSGI_FRAMEWORK_STORAGE: $ROO_OSGI_FRAMEWORK_STORAGE" ROO_AUTO_DEPLOY_DIRECTORY="$HOME/.roo/bundle" # ... was before : ROO_AUTO_DEPLOY_DIRECTORY="$ROO_HOME/bundle" # echo "ROO_AUTO_DEPLOY_DIRECTORY: $ROO_AUTO_DEPLOY_DIRECTORY" {code} Any idea for the best way to fix ?

    Spring JIRA | 2 years ago | Arnaud Nauwynck
    java.lang.RuntimeException: Unable to create cache directory.
  2. 0

    when installing Roo with a shared account (soft, root..), and running it with another account, the startup of bin/roo.sh failed ... application is NOT usable at all !! {code} $ roo.sh ERROR: Unable to create cache directory: /opt/soft/spring-roo-1.2.5.RELEASE/cache ERROR: Error creating bundle cache. (java.lang.RuntimeException: Unable to create cache directory.) java.lang.RuntimeException: Unable to create cache directory. at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:107) at org.apache.felix.framework.Felix.init(Felix.java:599) at org.springframework.roo.bootstrap.Main.main(Main.java:284) Could not create framework: org.osgi.framework.BundleException: Error creating bundle cache. org.osgi.framework.BundleException: Error creating bundle cache. at org.apache.felix.framework.Felix.init(Felix.java:604) at org.springframework.roo.bootstrap.Main.main(Main.java:284) Caused by: java.lang.RuntimeException: Unable to create cache directory. at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:107) at org.apache.felix.framework.Felix.init(Felix.java:599) ... 1 more {code} A ugly but fully fonctionnal work-around found in some forums is to copy&paste roo into your own directory with your account (ROO_HOME becomes a writeable dir for you), but it is not practical for doing share installation. I have tried unsuccesfully to edit the file "conf/config.properties" to add " felix.cache.rootdir=${user.home}/.felix" and I have tried also unsuccesfully to change the bin/roo.sh startup script : ( the behavior is very strange : no log, no error, but nothing happens, all thread are waiting and nothing comes) {code} ROO_OSGI_FRAMEWORK_STORAGE="$HOME/.roo/cache" # ... was before : ROO_OSGI_FRAMEWORK_STORAGE="$ROO_HOME/cache" # echo "ROO_OSGI_FRAMEWORK_STORAGE: $ROO_OSGI_FRAMEWORK_STORAGE" ROO_AUTO_DEPLOY_DIRECTORY="$HOME/.roo/bundle" # ... was before : ROO_AUTO_DEPLOY_DIRECTORY="$ROO_HOME/bundle" # echo "ROO_AUTO_DEPLOY_DIRECTORY: $ROO_AUTO_DEPLOY_DIRECTORY" {code} Any idea for the best way to fix ?

    Spring JIRA | 2 years ago | Arnaud Nauwynck
    java.lang.RuntimeException: Unable to create cache directory.
  3. 0

    Glassfish login server error issue,

    Stack Overflow | 4 years ago | Arwel Wyn Williams
    java.lang.RuntimeException: Unable to create cache directory.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GlassFish Users - Exception while runnning startserv.bat file

    nabble.com | 12 months ago
    java.lang.RuntimeException: Unable to create cache directory.
  6. 0

    Unable to start server due following issues: Launch process failed with exit code 1

    Stack Overflow | 2 years ago | CODI
    java.lang.RuntimeException: Unable to create cache directory.

    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.RuntimeException

      Unable to create cache directory.

      at org.apache.felix.framework.cache.BundleCache.<init>()
    2. Apache Felix Framework
      Felix.init
      1. org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:107)
      2. org.apache.felix.framework.Felix.init(Felix.java:599)
      2 frames
    3. org.springframework.roo
      Main.main
      1. org.springframework.roo.bootstrap.Main.main(Main.java:284)
      1 frame