[STS-3561] "Failed to start the Felix framework" while starting a new spring roo project Created: 16/Sep/13  Updated: 07/Apr/17  Resolved: 18/Sep/13

Status: Resolved
Project: Spring Tool Suite
Component/s: ROO
Affects Version/s: 3.3.0.RELEASE
Fix Version/s: None

Type: Bug Priority: Blocker
Reporter: Emre Tetik Assignee: Leo Dos Santos (c) [X]
Resolution: Duplicate Votes: 0
Labels: Felix, failed, project, roo
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows 7



 Description   

-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)



 Comments   
Comment by Leo Dos Santos (c) [X] [ 18/Sep/13 ]

Filing this as a duplicate of STS-2607

Comment by Emre Tetik [ 19/Sep/13 ]

STS-3561 as Duplicate ?

I have been receiving that "Failed to start the Felix framework while starting a new spring roo project" error since the installation and first attemp to create a new roo project (i didnt create a project with same name). I dont think that my error occurs because of this

Comment by Leo Dos Santos (c) [X] [ 19/Sep/13 ]

The stack trace is the same; the underlying issue is being unable to get a lock on the bundle cache for the project. The most reliable way to reproduce it is to try to recreate a project, but there must be other reasons why we can't write to that directory. If you look in the Roo directory, did it create an "sts-cache-yourprojectname" directory for your project? Do you have write permissions to this directory & the Roo directory?

Comment by Martin Lippert [ 07/Apr/17 ]

We moved issue tracking for this project to https://github.com/spring-projects/spring-ide.
If you would like to comment on or re-open this issue, please file a new issue at GitHub and refer to this one.

Generated at Tue Dec 10 02:27:52 UTC 2019 using Jira 7.13.8#713008-sha1:1606a5c1e7006e1ab135aac81f7a9566b2dbc3a6.