You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by Tommaso Teofili <to...@gmail.com> on 2010/10/06 14:58:22 UTC

Failing in start launchers

Hi all,
since latest svn up I am having problems starting launchers, both TDB and
Sesame.
After a full svn up and mvn install I launch the launchers with :
java -jar LAUNCHERJAR.jar
and I get the following:

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)

Does anyone have any hint about what could be the cause/solution?
I am suspecting the new Felix version is causing such an error, but I don't
know if I am missing something so I may be wrong.
Thanks,
Tommaso

Re: Failing in start launchers

Posted by Tommaso Teofili <to...@gmail.com>.
Hi Reto,
I finally found the cause of such an issue being a bug in Felix cache
backward compatibility.
So if you experience similar issues you should try removing $felixCache dir
and restart Felix.
Here's the related Jira issue:
https://issues.apache.org/jira/browse/FELIX-2648
Regards,
Tommaso

2010/10/8 Reto Bachmann-Gmuer <re...@trialox.org>

> it would certainly be a try to set -Dfile.encoding=UTF-8
>
> otherwise I think it worth have a look at
> org.apache.felix.framework.util.SecureAction.java:1310 and asking on
> the felix mailing list.
>
> reto
>
> On Fri, Oct 8, 2010 at 2:49 PM, Tommaso Teofili
> <to...@gmail.com> wrote:
> > Hi Reto,
> >
> > 2010/10/7 Reto Bachmann-Gmuer <re...@trialox.org>
> >
> >> Hi Tommaso,
> >>
> >> - Did you compile the bundles of scala-scripting (I did a change there 2
> >> days ago)?
> >>
> >
> > yes; I redid everything from scratch obtaining same failures.
> >
> >
> >> - Are you compiling the launcher with "clean" (otherwise two versions of
> a
> >> bundle might be in the launcher)?
> >>
> >
> > I'm doing this too.
> > May the issue be related to platform settings?
> > I'm on a Mac with Macroman, Maven 3.0b1 and Java 1.6 :
> >
> > Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
> >
> > Java version: 1.6.0_20
> >
> > Java home:
> /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> >
> > Default locale: it_IT, platform encoding: MacRoman
> >
> > OS name: "mac os x" version: "10.6.4" arch: "x86_64" Family: "mac"
> >
> >
> > Tommaso
> >
>

Re: Failing in start launchers

Posted by Reto Bachmann-Gmuer <re...@trialox.org>.
it would certainly be a try to set -Dfile.encoding=UTF-8

otherwise I think it worth have a look at
org.apache.felix.framework.util.SecureAction.java:1310 and asking on
the felix mailing list.

reto

On Fri, Oct 8, 2010 at 2:49 PM, Tommaso Teofili
<to...@gmail.com> wrote:
> Hi Reto,
>
> 2010/10/7 Reto Bachmann-Gmuer <re...@trialox.org>
>
>> Hi Tommaso,
>>
>> - Did you compile the bundles of scala-scripting (I did a change there 2
>> days ago)?
>>
>
> yes; I redid everything from scratch obtaining same failures.
>
>
>> - Are you compiling the launcher with "clean" (otherwise two versions of a
>> bundle might be in the launcher)?
>>
>
> I'm doing this too.
> May the issue be related to platform settings?
> I'm on a Mac with Macroman, Maven 3.0b1 and Java 1.6 :
>
> Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
>
> Java version: 1.6.0_20
>
> Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
>
> Default locale: it_IT, platform encoding: MacRoman
>
> OS name: "mac os x" version: "10.6.4" arch: "x86_64" Family: "mac"
>
>
> Tommaso
>

Re: Failing in start launchers

Posted by Tommaso Teofili <to...@gmail.com>.
Hi Reto,

2010/10/7 Reto Bachmann-Gmuer <re...@trialox.org>

> Hi Tommaso,
>
> - Did you compile the bundles of scala-scripting (I did a change there 2
> days ago)?
>

yes; I redid everything from scratch obtaining same failures.


> - Are you compiling the launcher with "clean" (otherwise two versions of a
> bundle might be in the launcher)?
>

I'm doing this too.
May the issue be related to platform settings?
I'm on a Mac with Macroman, Maven 3.0b1 and Java 1.6 :

Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)

Java version: 1.6.0_20

Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

Default locale: it_IT, platform encoding: MacRoman

OS name: "mac os x" version: "10.6.4" arch: "x86_64" Family: "mac"


Tommaso

Re: Failing in start launchers

Posted by Reto Bachmann-Gmuer <re...@trialox.org>.
Hi Tommaso,

- Did you compile the bundles of scala-scripting (I did a change there 2
days ago)?
- Are you compiling the launcher with "clean" (otherwise two versions of a
bundle might be in the launcher)?

Cheers,
reto



On Wed, Oct 6, 2010 at 2:58 PM, Tommaso Teofili
<to...@gmail.com>wrote:

> Hi all,
> since latest svn up I am having problems starting launchers, both TDB and
> Sesame.
> After a full svn up and mvn install I launch the launchers with :
> java -jar LAUNCHERJAR.jar
> and I get the following:
>
> 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)
>
> Does anyone have any hint about what could be the cause/solution?
> I am suspecting the new Felix version is causing such an error, but I don't
> know if I am missing something so I may be wrong.
> Thanks,
> Tommaso
>