I'm using the Felix built from trunk.

Here is the exception...

java.lang.NumberFormatException: For input string: "${pom"
   at java.lang.NumberFormatException.forInputString(
NumberFormatException.java :48)
   at java.lang.Integer.parseInt(Integer.java:447)
   at java.lang.Integer.parseInt(Integer.java:497)
   at org.osgi.framework.Version.<init>(Version.java:127)
   at org.osgi.framework.Version.parseVersion (Version.java:208)
   at org.apache.felix.framework.Felix.createModule(Felix.java:3112)
   at org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3057)
   at org.apache.felix.framework.Felix.installBundle (Felix.java:1961)
   at org.apache.felix.framework.Felix.start(Felix.java:443)
   at com.aeturnum.athiva.rnd.FelixHost.<init>(FelixHost.java:82)
   at com.aeturnum.athiva.rnd.Main.main(Main.java:17)
org.osgi.framework.BundleException : Could not create bundle object.
   at org.apache.felix.framework.Felix.installBundle(Felix.java:2012)
   at org.apache.felix.framework.Felix.start(Felix.java:443)
   at com.aeturnum.athiva.rnd.FelixHost.<init>( FelixHost.java:82)
   at com.aeturnum.athiva.rnd.Main.main(Main.java:17)
Caused by: java.lang.NumberFormatException: For input string: "${pom"
   at java.lang.NumberFormatException.forInputString(
NumberFormatException.java :48)
   at java.lang.Integer.parseInt(Integer.java:447)
   at java.lang.Integer.parseInt(Integer.java:497)
   at org.osgi.framework.Version.<init>(Version.java:127)
   at org.osgi.framework.Version.parseVersion (Version.java:208)
   at org.apache.felix.framework.Felix.createModule(Felix.java:3112)
   at org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3057)
   at org.apache.felix.framework.Felix.installBundle (Felix.java:1961)
   ... 3 more


And additionally once I start a spring bundle it gives this warnings and not
registering services exported from it.

WARNING: META-INF/spring.handlers (
org.apache.felix.moduleloader.ResourceNotFoundException:
META-INF/spring.handlers)
WARNING: META-INF/spring.schemas (
org.apache.felix.moduleloader.ResourceNotFoundException:
META-INF/spring.schemas)

I'm still new to relate this exception to some place, but this bundle works
fine in standalone felix and it registers the services as well.

Thank you

Sameera


On 4/24/07, Richard S. Hall <[EMAIL PROTECTED]> wrote:

Could you post the exception?

Also, are you using Felix built from trunk or 0.8.0-incubator ?

-> richard

Sameera Withanage wrote:
> Hi,
>
> I'm embedding Felix in a host application following the examples given
in
> Felix site. When I'm trying to install a bundle, for instance
> spring-osgi,
> it gives NumberformatException. I installed the same set of bundles
using
> standalone Felix console and all started successfully. I couldn't
> figure out
> why the same is not happening at embedded version.
>
> I tried removing all the META-INF/maven folders from jar bundles and
> found
> all bundles are starting, but it seems not practicle to always edit
> bundles.
>
> Any help would be greatly appreciated.
>
> Sameera
>

Reply via email to