You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Bosschaert (JIRA)" <ji...@apache.org> on 2017/08/03 20:39:00 UTC

[jira] [Updated] (FELIX-5672) Cannot launch Felix on Raspberry Pi: problem with normalizeOSVersion()

     [ https://issues.apache.org/jira/browse/FELIX-5672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Bosschaert updated FELIX-5672:
------------------------------------
    Fix Version/s: framework-5.6.8

> 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
>            Assignee: David Bosschaert
>             Fix For: framework-5.6.8
>
>
> 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)