java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException

SpringSource Issue Tracker | Emre Tetik | 3 years ago
  1. 0

    [STS-3561] "Failed to start the Felix framework" while starting a new spring roo project - SpringSource Issue Tracker

    springsource.com | 1 year ago
    java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException
  2. 0

    -open STS -create new spring roo project -project created with only one text file named "log.roo" : // Spring Roo 1.2.4.RELEASE [rev 75337cf] log opened at 2013-09-16 13:08:50 // [failed] project --topLevelPackage e --projectName e --java 7 --packaging JAR // Spring Roo 1.2.4.RELEASE [rev 75337cf] log closed at 2013-09-16 13:08:50 -in the error log, there is a "Failed to start the Felix framework" error : Stack Trace : org.osgi.framework.BundleException: Error creating bundle cache. at org.apache.felix.framework.Felix.init(Felix.java:634) at org.springframework.roo.shell.eclipse.Main.start(Main.java:251) at org.springframework.roo.shell.eclipse.Bootstrap.start(Bootstrap.java:164) at org.springframework.ide.eclipse.roo.ui.internal.RooShellTab$8.run(RooShellTab.java:431) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:176) at org.apache.felix.framework.Felix.init(Felix.java:629) ... 4 more Root exception: java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:176) at org.apache.felix.framework.Felix.init(Felix.java:629) at org.springframework.roo.shell.eclipse.Main.start(Main.java:251) at org.springframework.roo.shell.eclipse.Bootstrap.start(Bootstrap.java:164) at org.springframework.ide.eclipse.roo.ui.internal.RooShellTab$8.run(RooShellTab.java:431) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

    SpringSource Issue Tracker | 3 years ago | Emre Tetik
    java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException
  3. 0

    -open STS -create new spring roo project -project created with only one text file named "log.roo" : // Spring Roo 1.2.4.RELEASE [rev 75337cf] log opened at 2013-09-16 13:08:50 // [failed] project --topLevelPackage e --projectName e --java 7 --packaging JAR // Spring Roo 1.2.4.RELEASE [rev 75337cf] log closed at 2013-09-16 13:08:50 -in the error log, there is a "Failed to start the Felix framework" error : Stack Trace : org.osgi.framework.BundleException: Error creating bundle cache. at org.apache.felix.framework.Felix.init(Felix.java:634) at org.springframework.roo.shell.eclipse.Main.start(Main.java:251) at org.springframework.roo.shell.eclipse.Bootstrap.start(Bootstrap.java:164) at org.springframework.ide.eclipse.roo.ui.internal.RooShellTab$8.run(RooShellTab.java:431) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:176) at org.apache.felix.framework.Felix.init(Felix.java:629) ... 4 more Root exception: java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:176) at org.apache.felix.framework.Felix.init(Felix.java:629) at org.springframework.roo.shell.eclipse.Main.start(Main.java:251) at org.springframework.roo.shell.eclipse.Bootstrap.start(Bootstrap.java:164) at org.springframework.ide.eclipse.roo.ui.internal.RooShellTab$8.run(RooShellTab.java:431) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

    SpringSource Issue Tracker | 3 years ago | Emre Tetik
    java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    3 times in 4 STS will NOT create proper Roo project. Roo console is not usable (or do not see project at all, and hint advise to create one!) Otherwise there is no other idication that something got wrong. This is what a get in terminal when it happens. przemoli@darkstar:~$ ./springsource/sts-2.9.1.RELEASE/STS (STS:5251): Gtk-WARNING **: Nie można odnaleźć modułu obsługującego motyw w module_path: "pixmap", (STS:5251): Gtk-WARNING **: Nie można odnaleźć modułu obsługującego motyw w module_path: "pixmap", (STS:5251): Gtk-WARNING **: Nie można odnaleźć modułu obsługującego motyw w module_path: "pixmap", (STS:5251): Gtk-WARNING **: Nie można odnaleźć modułu obsługującego motyw w module_path: "pixmap", (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed [Fatal Error] :1:1: Premature end of file. 2012-04-01 16:24:25 org.springframework.roo.shell.eclipse.EclipseShell init INFO: ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.2.1.RELEASE [rev 6eae723] 2012-04-01 16:24:25 org.springframework.roo.shell.eclipse.EclipseShell init INFO: Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER. 2012-04-01 16:24:25 org.springframework.roo.shell.eclipse.EclipseShell init INFO: roo> 2012-04-01 16:24:27 org.springframework.roo.shell.eclipse.EclipseShell executeCommand INFO: roo> ERROR: Error creating bundle cache. (java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException) java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:152) at org.apache.felix.framework.Felix.init(Felix.java:599) at org.springframework.roo.shell.eclipse.Main.start(Main.java:244) at org.springframework.roo.shell.eclipse.Bootstrap.start(Bootstrap.java:158) at com.springsource.sts.roo.ui.internal.RooShellTab$8.run(RooShellTab.java:424) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 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.shell.eclipse.Main.start(Main.java:244) at org.springframework.roo.shell.eclipse.Bootstrap.start(Bootstrap.java:158) at com.springsource.sts.roo.ui.internal.RooShellTab$8.run(RooShellTab.java:424) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:152) at org.apache.felix.framework.Felix.init(Felix.java:599) ... 4 more [debug] execute contextualize [debug] execute contextualize [debug] execute contextualize [debug] execute contextualize [debug] execute contextualize [debug] execute contextualize

    SpringSource Issue Tracker | 5 years ago | Przemysław Lib
    java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException
  6. 0

    3 times in 4 STS will NOT create proper Roo project. Roo console is not usable (or do not see project at all, and hint advise to create one!) Otherwise there is no other idication that something got wrong. This is what a get in terminal when it happens. przemoli@darkstar:~$ ./springsource/sts-2.9.1.RELEASE/STS (STS:5251): Gtk-WARNING **: Nie można odnaleźć modułu obsługującego motyw w module_path: "pixmap", (STS:5251): Gtk-WARNING **: Nie można odnaleźć modułu obsługującego motyw w module_path: "pixmap", (STS:5251): Gtk-WARNING **: Nie można odnaleźć modułu obsługującego motyw w module_path: "pixmap", (STS:5251): Gtk-WARNING **: Nie można odnaleźć modułu obsługującego motyw w module_path: "pixmap", (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed (SpringSource Tool Suite:5251): LIBDBUSMENU-GTK-CRITICAL **: watch_submenu: assertion `GTK_IS_MENU_SHELL(menu)' failed [Fatal Error] :1:1: Premature end of file. 2012-04-01 16:24:25 org.springframework.roo.shell.eclipse.EclipseShell init INFO: ____ ____ ____ / __ \/ __ \/ __ \ / /_/ / / / / / / / / _, _/ /_/ / /_/ / /_/ |_|\____/\____/ 1.2.1.RELEASE [rev 6eae723] 2012-04-01 16:24:25 org.springframework.roo.shell.eclipse.EclipseShell init INFO: Welcome to Spring Roo. For assistance press CTRL+SPACE or type "hint" then hit ENTER. 2012-04-01 16:24:25 org.springframework.roo.shell.eclipse.EclipseShell init INFO: roo> 2012-04-01 16:24:27 org.springframework.roo.shell.eclipse.EclipseShell executeCommand INFO: roo> ERROR: Error creating bundle cache. (java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException) java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:152) at org.apache.felix.framework.Felix.init(Felix.java:599) at org.springframework.roo.shell.eclipse.Main.start(Main.java:244) at org.springframework.roo.shell.eclipse.Bootstrap.start(Bootstrap.java:158) at com.springsource.sts.roo.ui.internal.RooShellTab$8.run(RooShellTab.java:424) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) 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.shell.eclipse.Main.start(Main.java:244) at org.springframework.roo.shell.eclipse.Bootstrap.start(Bootstrap.java:158) at com.springsource.sts.roo.ui.internal.RooShellTab$8.run(RooShellTab.java:424) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException at org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:152) at org.apache.felix.framework.Felix.init(Felix.java:599) ... 4 more [debug] execute contextualize [debug] execute contextualize [debug] execute contextualize [debug] execute contextualize [debug] execute contextualize [debug] execute contextualize

    SpringSource Issue Tracker | 5 years ago | Przemysław Lib
    java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException

  1. davidvanlaatum 14 times, last 9 months ago
2 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.Exception

    Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException

    at org.apache.felix.framework.cache.BundleCache.<init>()
  2. Apache Felix Framework
    Felix.init
    1. org.apache.felix.framework.cache.BundleCache.<init>(BundleCache.java:176)
    2. org.apache.felix.framework.Felix.init(Felix.java:629)
    2 frames
  3. org.springframework.roo
    Bootstrap.start
    1. org.springframework.roo.shell.eclipse.Main.start(Main.java:251)
    2. org.springframework.roo.shell.eclipse.Bootstrap.start(Bootstrap.java:164)
    2 frames
  4. org.springframework.ide
    RooShellTab$8.run
    1. org.springframework.ide.eclipse.roo.ui.internal.RooShellTab$8.run(RooShellTab.java:431)
    1 frame
  5. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
    1 frame