You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Todd Nist <To...@gi.leica-geosystems.com> on 2007/01/03 18:15:50 UTC

Error launching Felix in Eclipse 3.2.1

I have just downloaded Felix per the instructions on the Felix web site.
I have built it, and am now attempting to launch it per the instructions
in Eclipse.  I set the M2_REPO environment variable and imported and
built the projects in Eclipse without any errors.  However, when I
create a new "Run Configuration" for Felix and launch it I get the
following error(s):

Welcome to Felix.
=================

Enter profile name: test

ERROR: Auto-properties install. (org.osgi.framework.BundleException:
Could not create bundle object.)
java.lang.NumberFormatException: For input string: "${pom"
	at java.lang.NumberFormatException.forInputString(Unknown
Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	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:2668)
	at
org.apache.felix.framework.Felix.createBundleInfo(Felix.java:2634)
	at
org.apache.felix.framework.Felix.installBundle(Felix.java:1841)
	at
org.apache.felix.framework.Felix.installBundle(Felix.java:1755)
	at
org.apache.felix.framework.Felix.processAutoProperties(Felix.java:3009)
	at org.apache.felix.framework.Felix.start(Felix.java:496)
	at org.apache.felix.main.Main.main(Main.java:208)
ERROR: Auto-properties install. (org.osgi.framework.BundleException:
Could not create bundle object.)
java.lang.NumberFormatException: For input string: "${pom"
	at java.lang.NumberFormatException.forInputString(Unknown
Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	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:2668)
	at
org.apache.felix.framework.Felix.createBundleInfo(Felix.java:2634)
	at
org.apache.felix.framework.Felix.installBundle(Felix.java:1841)
	at
org.apache.felix.framework.Felix.installBundle(Felix.java:1755)
	at
org.apache.felix.framework.Felix.processAutoProperties(Felix.java:3009)
	at org.apache.felix.framework.Felix.start(Felix.java:496)
	at org.apache.felix.main.Main.main(Main.java:208)



Any ideas on what I am doing incorrectly here?  TIA for the assistance.

Regards,
Todd

Re: Error launching Felix in Eclipse 3.2.1

Posted by Clement Escoffier <cl...@gmail.com>.
Hello,

There is a bug in the tutorial. I forgot to change this since the Felix 
build process changes.
So, to launch Felix correctly, you need to update the build path of the 
main project. Instead of using the project org.apache.felix.framework, 
you need to use : 
M2_REPO/org/apache/felix/org.apache.felix.framework/0.9.0-incubator-SNAPSHOT/org.apache.felix.framework-0.9.0-incubator-SNAPSHOT.jar

Then try to launch Felix, as explained in the tutorial. (check that you 
point on the Main class from Felix.jar). Normally, it should work.

Regards,

Clement

Todd Nist a écrit :
> I have just downloaded Felix per the instructions on the Felix web site.
> I have built it, and am now attempting to launch it per the instructions
> in Eclipse.  I set the M2_REPO environment variable and imported and
> built the projects in Eclipse without any errors.  However, when I
> create a new "Run Configuration" for Felix and launch it I get the
> following error(s):
>
> Welcome to Felix.
> =================
>
> Enter profile name: test
>
> ERROR: Auto-properties install. (org.osgi.framework.BundleException:
> Could not create bundle object.)
> java.lang.NumberFormatException: For input string: "${pom"
> 	at java.lang.NumberFormatException.forInputString(Unknown
> Source)
> 	at java.lang.Integer.parseInt(Unknown Source)
> 	at java.lang.Integer.parseInt(Unknown Source)
> 	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:2668)
> 	at
> org.apache.felix.framework.Felix.createBundleInfo(Felix.java:2634)
> 	at
> org.apache.felix.framework.Felix.installBundle(Felix.java:1841)
> 	at
> org.apache.felix.framework.Felix.installBundle(Felix.java:1755)
> 	at
> org.apache.felix.framework.Felix.processAutoProperties(Felix.java:3009)
> 	at org.apache.felix.framework.Felix.start(Felix.java:496)
> 	at org.apache.felix.main.Main.main(Main.java:208)
> ERROR: Auto-properties install. (org.osgi.framework.BundleException:
> Could not create bundle object.)
> java.lang.NumberFormatException: For input string: "${pom"
> 	at java.lang.NumberFormatException.forInputString(Unknown
> Source)
> 	at java.lang.Integer.parseInt(Unknown Source)
> 	at java.lang.Integer.parseInt(Unknown Source)
> 	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:2668)
> 	at
> org.apache.felix.framework.Felix.createBundleInfo(Felix.java:2634)
> 	at
> org.apache.felix.framework.Felix.installBundle(Felix.java:1841)
> 	at
> org.apache.felix.framework.Felix.installBundle(Felix.java:1755)
> 	at
> org.apache.felix.framework.Felix.processAutoProperties(Felix.java:3009)
> 	at org.apache.felix.framework.Felix.start(Felix.java:496)
> 	at org.apache.felix.main.Main.main(Main.java:208)
>
>
>
> Any ideas on what I am doing incorrectly here?  TIA for the assistance.
>
> Regards,
> Todd
>
>   


-- 
Clement Escoffier
Grenoble University
LSR - Bat. C
220, Rue de la Chimie
BP 53
38041 GRENOBLE CEDEX 9
04.76.51.40.24
http://clement.plop-plop.net



Re: Error launching Felix in Eclipse 3.2.1

Posted by "Richard S. Hall" <he...@ungoverned.org>.
You downloaded the 0.8.0-incubator source release?

Something seems to be going wrong with the maven variable substitution 
from during your build, since it thinks the bundle version is something 
like "${pom..."

If you are using Eclipse to build Felix, then maybe that is the issue, 
since Eclipse won't do the maven variable substitution...I don't know. 
If that is the case, then there is probably a way to work around it, by 
just filling in the appropriate values and not relying on value 
substitution.

-> richard

Todd Nist wrote:
> I have just downloaded Felix per the instructions on the Felix web site.
> I have built it, and am now attempting to launch it per the instructions
> in Eclipse.  I set the M2_REPO environment variable and imported and
> built the projects in Eclipse without any errors.  However, when I
> create a new "Run Configuration" for Felix and launch it I get the
> following error(s):
>
> Welcome to Felix.
> =================
>
> Enter profile name: test
>
> ERROR: Auto-properties install. (org.osgi.framework.BundleException:
> Could not create bundle object.)
> java.lang.NumberFormatException: For input string: "${pom"
> 	at java.lang.NumberFormatException.forInputString(Unknown
> Source)
> 	at java.lang.Integer.parseInt(Unknown Source)
> 	at java.lang.Integer.parseInt(Unknown Source)
> 	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:2668)
> 	at
> org.apache.felix.framework.Felix.createBundleInfo(Felix.java:2634)
> 	at
> org.apache.felix.framework.Felix.installBundle(Felix.java:1841)
> 	at
> org.apache.felix.framework.Felix.installBundle(Felix.java:1755)
> 	at
> org.apache.felix.framework.Felix.processAutoProperties(Felix.java:3009)
> 	at org.apache.felix.framework.Felix.start(Felix.java:496)
> 	at org.apache.felix.main.Main.main(Main.java:208)
> ERROR: Auto-properties install. (org.osgi.framework.BundleException:
> Could not create bundle object.)
> java.lang.NumberFormatException: For input string: "${pom"
> 	at java.lang.NumberFormatException.forInputString(Unknown
> Source)
> 	at java.lang.Integer.parseInt(Unknown Source)
> 	at java.lang.Integer.parseInt(Unknown Source)
> 	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:2668)
> 	at
> org.apache.felix.framework.Felix.createBundleInfo(Felix.java:2634)
> 	at
> org.apache.felix.framework.Felix.installBundle(Felix.java:1841)
> 	at
> org.apache.felix.framework.Felix.installBundle(Felix.java:1755)
> 	at
> org.apache.felix.framework.Felix.processAutoProperties(Felix.java:3009)
> 	at org.apache.felix.framework.Felix.start(Felix.java:496)
> 	at org.apache.felix.main.Main.main(Main.java:208)
>
>
>
> Any ideas on what I am doing incorrectly here?  TIA for the assistance.
>
> Regards,
> Todd
>   

Re: Error launching Felix in Eclipse 3.2.1

Posted by Chris Aniszczyk <zx...@us.ibm.com>.
This may not help you but, If you don't know... Felix has been integrated
into PDE (Eclipse 3.3) via a plug-in.

More information can be found here:
      http://forge.os4os.org/frs/shownotes.php?release_id=59
      https://bugs.eclipse.org/bugs/show_bug.cgi?id=152315

Cheers,

---
Chris Aniszczyk | IBM Lotus | Eclipse Committer | +1 860 839 2465


                                                                           
  From:   "Todd Nist" <To...@gi.leica-geosystems.com>                  
                                                                           
  To:     <fe...@incubator.apache.org>                                 
                                                                           
  Date:   01/03/2007 11:17 AM                                              
                                                                           
  Subject Error launching Felix in Eclipse 3.2.1                           
  :                                                                        
                                                                           




I have just downloaded Felix per the instructions on the Felix web site.
I have built it, and am now attempting to launch it per the instructions
in Eclipse.  I set the M2_REPO environment variable and imported and
built the projects in Eclipse without any errors.  However, when I
create a new "Run Configuration" for Felix and launch it I get the
following error(s):

Welcome to Felix.
=================

Enter profile name: test

ERROR: Auto-properties install. (org.osgi.framework.BundleException:
Could not create bundle object.)
java.lang.NumberFormatException: For input string: "${pom"
             at java.lang.NumberFormatException.forInputString(Unknown
Source)
             at java.lang.Integer.parseInt(Unknown Source)
             at java.lang.Integer.parseInt(Unknown Source)
             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:2668)
             at
org.apache.felix.framework.Felix.createBundleInfo(Felix.java:2634)
             at
org.apache.felix.framework.Felix.installBundle(Felix.java:1841)
             at
org.apache.felix.framework.Felix.installBundle(Felix.java:1755)
             at
org.apache.felix.framework.Felix.processAutoProperties(Felix.java:3009)
             at org.apache.felix.framework.Felix.start(Felix.java:496)
             at org.apache.felix.main.Main.main(Main.java:208)
ERROR: Auto-properties install. (org.osgi.framework.BundleException:
Could not create bundle object.)
java.lang.NumberFormatException: For input string: "${pom"
             at java.lang.NumberFormatException.forInputString(Unknown
Source)
             at java.lang.Integer.parseInt(Unknown Source)
             at java.lang.Integer.parseInt(Unknown Source)
             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:2668)
             at
org.apache.felix.framework.Felix.createBundleInfo(Felix.java:2634)
             at
org.apache.felix.framework.Felix.installBundle(Felix.java:1841)
             at
org.apache.felix.framework.Felix.installBundle(Felix.java:1755)
             at
org.apache.felix.framework.Felix.processAutoProperties(Felix.java:3009)
             at org.apache.felix.framework.Felix.start(Felix.java:496)
             at org.apache.felix.main.Main.main(Main.java:208)



Any ideas on what I am doing incorrectly here?  TIA for the assistance.

Regards,
Todd