felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: error in 0.8.0 in incubator
Date Fri, 13 Apr 2007 12:50:41 GMT
You are probably running on a JVM we were not expecting.

This issue has been somewhat resolved in the trunk. The issue is that 
the conf/config.properties file is used to construct a list of packages 
exported by the JVM you are running on. The 0.8.0 release only knows 
about 1.3, 1.4, and 1.5...are you running on 1.6?

In 0.8.0 what would end up happening in the case where it didn't 
recognize the JRE version, it would end up creating an invalid export 
package string with a dangling comma. See your error:

org.osgi.framework; version
=1.3.0, org.osgi.service.packageadmin; version=1.2.0, 
org.osgi.service.startleve
l; version=1.0.0, org.osgi.service.url; version=1.0.0,

Notice the dangling comma at the end?

I have attached a config.properties file that fixes the dangling comma 
issue and adds support for 1.6...see if that works.

-> richard
   
Brian Bonner wrote:
> I'm new to felix.  I pulled it down and was trying to run the example.
> I was definitely not expecting the resulting stack trace.  Can anyone
> tell me where I went wrong?
>
> Thanks.
>
> Brian
>
>
>
> C:\felix-0.8.0-incubator>java -jar bin/felix.jar
>
> Welcome to Felix.
> =================
>
> Enter profile name: test
>
> ERROR: Error parsing system bundle export statement: 
> org.osgi.framework; version
> =1.3.0, org.osgi.service.packageadmin; version=1.2.0, 
> org.osgi.service.startleve
> l; version=1.0.0, org.osgi.service.url; version=1.0.0,  
> (java.lang.IllegalArgume
> ntException: No paths specified in header: )
> java.lang.IllegalArgumentException: No paths specified in header:
>        at 
> org.apache.felix.framework.util.ManifestParser.parseStandardHeaderCla
> use(ManifestParser.java:794)
>        at 
> org.apache.felix.framework.util.ManifestParser.parseStandardHeader(Ma
> nifestParser.java:761)
>        at 
> org.apache.felix.framework.util.ManifestParser.parseImportExportHeade
> r(ManifestParser.java:668)
>        at 
> org.apache.felix.framework.SystemBundle.<init>(SystemBundle.java:68)
>        at org.apache.felix.framework.Felix.start(Felix.java:344)
>        at org.apache.felix.main.Main.main(Main.java:208)
> ERROR: Error starting 
> file:bundle/org.apache.felix.shell-0.8.0-incubator.jar (or
> g.osgi.framework.BundleException: Unresolved package in bundle 1: 
> org.osgi.servi
> ce.startlevel [version=1.0.0])
> org.osgi.framework.BundleException: Unresolved package in bundle 1: 
> org.osgi.ser
> vice.startlevel [version=1.0.0]
>        at 
> org.apache.felix.framework.Felix._resolveBundle(Felix.java:1362)
>        at org.apache.felix.framework.Felix._startBundle(Felix.java:1241)
>        at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
>        at 
> org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:80
> 7)
>        at 
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256
> )
>        at java.lang.Thread.run(Thread.java:619)
> ERROR: Error starting 
> file:bundle/org.apache.felix.shell.tui-0.8.0-incubator.jar
> (org.osgi.framework.BundleException: Unresolved package in bundle 1: 
> org.osgi.s
> ervice.startlevel [version=1.0.0])
> org.osgi.framework.BundleException: Unresolved package in bundle 1: 
> org.osgi.ser
> vice.startlevel [version=1.0.0]
>        at 
> org.apache.felix.framework.Felix._resolveBundle(Felix.java:1362)
>        at org.apache.felix.framework.Felix._startBundle(Felix.java:1241)
>        at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
>        at 
> org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:80
> 7)
>        at 
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256
> )
>        at java.lang.Thread.run(Thread.java:619)
> ERROR: Error starting 
> file:bundle/org.apache.felix.bundlerepository-0.8.0-incuba
> tor.jar (org.osgi.framework.BundleException: Unresolved package in 
> bundle 3: org
> .osgi.framework [version=1.3.0])
> org.osgi.framework.BundleException: Unresolved package in bundle 3: 
> org.osgi.fra
> mework [version=1.3.0]
>        at 
> org.apache.felix.framework.Felix._resolveBundle(Felix.java:1362)
>        at org.apache.felix.framework.Felix._startBundle(Felix.java:1241)
>        at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
>        at 
> org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:80
> 7)
>        at 
> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:256
> )
>        at java.lang.Thread.run(Thread.java:619)

Mime
View raw message