Thank you very much Karl, that trick solved the issue. I am going to open a Jira issue attaching the $cacheDir/bundle0 dir as a zip file. Regards, Tommaso
2010/10/10 Karl Pauls <[email protected]> > Can you (please backup it first) try to either delete your felix cache > or go into $cache/bundle0 dir and rm -rf security please? > > I think you are running with an old cache and it looks like the new > security provider has a problem with that. > > If removing your cache fixes it please open a jira and attach your > $cache/bundle0 dir as a zip so that I can try to fix this. > > regards, > > Karl > > On Sat, Oct 9, 2010 at 11:26 AM, Tommaso Teofili > <[email protected]> wrote: > > Hi all, > > I am working with Felix on Apache Clerezza podling and since we've > switched > > from 2.0.4 version to 3.0.3 I am getting the following error when > starting > > it: > > > > setting log-level to: INFO > > starting felix > > java.lang.reflect.InvocationTargetException > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > > at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > > at > > > org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1310) > > at java.security.AccessController.doPrivileged(Native Method) > > at > > > org.apache.felix.framework.util.SecureAction.invoke(SecureAction.java:861) > > at > > > org.apache.felix.framework.security.util.PropertiesCache.getUnencoded(PropertiesCache.java:232) > > at > > > org.apache.felix.framework.security.util.PropertiesCache.read(PropertiesCache.java:150) > > at > > > org.apache.felix.framework.security.condpermadmin.ConditionalPermissionAdminImpl.<init>(ConditionalPermissionAdminImpl.java:235) > > at > > > org.apache.felix.framework.SecurityActivator.start(SecurityActivator.java:153) > > at > > > org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1254) > > at java.security.AccessController.doPrivileged(Native Method) > > at > > > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:624) > > at > > > org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.java:4281) > > at > > > org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1254) > > at java.security.AccessController.doPrivileged(Native Method) > > at > > > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:624) > > at org.apache.felix.framework.Felix.init(Felix.java:734) > > at org.apache.felix.framework.Felix.start(Felix.java:775) > > at org.apache.clerezza.platform.launcher.Main.main(Main.java:228) > > Caused by: java.lang.IllegalArgumentException: Expected } but was: # > > at > > > org.apache.felix.framework.security.condpermadmin.ConditionalPermissionInfoImpl.<init>(ConditionalPermissionInfoImpl.java:284) > > ... 21 more > > ERROR: Unable to start system bundle. (java.io.IOException) > > java.io.IOException > > at > > > org.apache.felix.framework.security.util.PropertiesCache.getUnencoded(PropertiesCache.java:239) > > at > > > org.apache.felix.framework.security.util.PropertiesCache.read(PropertiesCache.java:150) > > at > > > org.apache.felix.framework.security.condpermadmin.ConditionalPermissionAdminImpl.<init>(ConditionalPermissionAdminImpl.java:235) > > at > > > org.apache.felix.framework.SecurityActivator.start(SecurityActivator.java:153) > > at > > > org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1254) > > at java.security.AccessController.doPrivileged(Native Method) > > at > > > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:624) > > at > > > org.apache.felix.framework.Felix$SystemBundleActivator.start(Felix.java:4281) > > at > > > org.apache.felix.framework.util.SecureAction$Actions.run(SecureAction.java:1254) > > at java.security.AccessController.doPrivileged(Native Method) > > at > > > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:624) > > at org.apache.felix.framework.Felix.init(Felix.java:734) > > at org.apache.felix.framework.Felix.start(Felix.java:775) > > at org.apache.clerezza.platform.launcher.Main.main(Main.java:228) > > Could not create framework: java.lang.RuntimeException: Unable to start > > system bundle. > > java.lang.RuntimeException: Unable to start system bundle. > > at org.apache.felix.framework.Felix.init(Felix.java:741) > > at org.apache.felix.framework.Felix.start(Felix.java:775) > > at org.apache.clerezza.platform.launcher.Main.main(Main.java:228) > > > > Could you provide any advice or hint about how to solve such an issue? > > I am running Felix on a Mac (MacRoman platform encoding) with Java 6. > > Thanks and regards, > > Tommaso > > > > > > -- > Karl Pauls > [email protected] >
