felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Bosschaert (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-5672) Cannot launch Felix on Raspberry Pi: problem with normalizeOSVersion()
Date Thu, 03 Aug 2017 14:00:02 GMT
David Bosschaert created FELIX-5672:
---------------------------------------

             Summary: Cannot launch Felix on Raspberry Pi: problem with normalizeOSVersion()
                 Key: FELIX-5672
                 URL: https://issues.apache.org/jira/browse/FELIX-5672
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: framework-5.6.6
         Environment: java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)
            Reporter: David Bosschaert


Launching the Felix Framework on the Raspberry Pi fails with the following error:

{code}
 java -jar bin/felix.jar
Could not create framework: java.lang.IllegalArgumentException: invalid version "4.9.35.":
invalid format
java.lang.IllegalArgumentException: invalid version "4.9.35.": invalid format
	at org.osgi.framework.Version.<init>(Version.java:147)
	at org.apache.felix.framework.util.manifestparser.NativeLibraryClause.normalizeOSVersion(NativeLibraryClause.java:770)
	at org.apache.felix.framework.Felix.initializeFrameworkProperties(Felix.java:4617)
	at org.apache.felix.framework.Felix.<init>(Felix.java:384)
	at org.apache.felix.framework.FrameworkFactory.newFramework(FrameworkFactory.java:28)
	at org.apache.felix.main.Main.main(Main.java:287)
Caused by: java.util.NoSuchElementException
	at java.util.StringTokenizer.nextToken(StringTokenizer.java:349)
	at java.util.StringTokenizer.nextToken(StringTokenizer.java:377)
	at org.osgi.framework.Version.<init>(Version.java:138)
	... 5 more
{code}

Seems that the normalizeOSVersion() function can't handle the Pi OS version number which is
reported as:
{code}
uname -a
Linux mypi 4.9.35+ #1014 Fri Jun 30 14:34:49 BST 2017 armv6l GNU/Linux
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message