You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre Bourret (JIRA)" <ji...@apache.org> on 2010/06/04 17:18:53 UTC

[jira] Commented: (FELIX-2392) Felix framework uses a Java5 method

    [ https://issues.apache.org/jira/browse/FELIX-2392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12875627#action_12875627 ] 

Pierre Bourret commented on FELIX-2392:
---------------------------------------

I've tested the snapshot version of Felix ; it seems that the provided bundle-repository and Gogo shell both uses non-OSGi Minimum methods, so it crashes too (see the trace hereafter). But when removing/replacing them by the classic shell, it works !

The framework itself can run on OSGi/Minimum EE, but the main distribution (the one i've tested) now requires higher EE.

Should a new issue be created ?
Closing this one as errors are no more related to the framework.



Stack trace provided for informational puposes only
------------------------------------------------------------------------------
using snapshot org.apache.felix.main.distribution-2.1.0-20100531-223333-3


ERROR: Error starting file:/home/bourretp/Projects/Experiments/felix-framework-2.1.0-SNAPSHOT/bundle/org.apache.felix.bundlerepository-1.6.2.jar (org.osgi.framework.BundleException: Activator start error in bundle org.apache.felix.bundlerepository [1].)
java.lang.ExceptionInInitializerError
	at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.getVersion(DataModelHelperImpl.java:878)
	at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.populate(DataModelHelperImpl.java:520)
	at org.apache.felix.bundlerepository.impl.LocalResourceImpl.initialize(LocalResourceImpl.java:55)
	at org.apache.felix.bundlerepository.impl.LocalResourceImpl.<init>(LocalResourceImpl.java:38)
	at org.apache.felix.bundlerepository.impl.SystemRepositoryImpl.<init>(SystemRepositoryImpl.java:40)
	at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.<init>(RepositoryAdminImpl.java:67)
	at org.apache.felix.bundlerepository.impl.Activator.start(Activator.java:70)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:633)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:1828)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1750)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1168)
	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
Caused by: java.lang.ClassNotFoundException: SystemClassLoader couldn't find java.util.regex.Pattern
	at wonka.vm.SystemClassLoader.findClass(SystemClassLoader.java:220)
	at wonka.vm.SystemClassLoader.loadClass(SystemClassLoader.java:373)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
	at org.apache.felix.utils.version.VersionCleaner.<clinit>(VersionCleaner.java:29)
	at org.apache.felix.utils.version.VersionCleaner.<clinit>(VersionCleaner.java:29)
	at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.getVersion(DataModelHelperImpl.java:878)
	at org.apache.felix.bundlerepository.impl.DataModelHelperImpl.populate(DataModelHelperImpl.java:520)
	at org.apache.felix.bundlerepository.impl.LocalResourceImpl.initialize(LocalResourceImpl.java:55)
	at org.apache.felix.bundlerepository.impl.LocalResourceImpl.<init>(LocalResourceImpl.java:38)
	at org.apache.felix.bundlerepository.impl.SystemRepositoryImpl.<init>(SystemRepositoryImpl.java:40)
	at org.apache.felix.bundlerepository.impl.RepositoryAdminImpl.<init>(RepositoryAdminImpl.java:67)
	at org.apache.felix.bundlerepository.impl.Activator.start(Activator.java:70)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:633)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:1828)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1750)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1168)
	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
ERROR: Error starting file:/home/bourretp/Projects/Experiments/felix-framework-2.1.0-SNAPSHOT/bundle/org.apache.felix.gogo.runtime-0.5.0-SNAPSHOT.jar (org.osgi.framework.BundleException: Activator start error in bundle org.apache.felix.gogo.runtime [3].)
java.lang.ExceptionInInitializerError
	at org.apache.felix.gogo.runtime.activator.Activator.start(Activator.java:55)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:633)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:1828)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1750)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1168)
	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
Caused by: java.lang.NullPointerException
	at java.lang.Class.desiredAssertionStatus(Class.java:764)
	at org.apache.felix.gogo.runtime.threadio.ThreadIOImpl.<clinit>(ThreadIOImpl.java:28)
	at org.apache.felix.gogo.runtime.threadio.ThreadIOImpl.<clinit>(ThreadIOImpl.java:28)
	at org.apache.felix.gogo.runtime.activator.Activator.start(Activator.java:55)
	at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:633)
	at org.apache.felix.framework.Felix.activateBundle(Felix.java:1828)
	at org.apache.felix.framework.Felix.startBundle(Felix.java:1750)
	at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1168)
	at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)

> Felix framework uses a Java5 method
> -----------------------------------
>
>                 Key: FELIX-2392
>                 URL: https://issues.apache.org/jira/browse/FELIX-2392
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-2.0.5
>         Environment: Linux Ubuntu i386, OpenMika VM 1.4.6
>            Reporter: Pierre Bourret
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: framework-3.0.0
>
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> The Felix framework uses the String.contains(CharSequence) method that is NOT part of the OSGi minimum EE. This result in a failure when launching Felix in Java 1.4 and lower EE (such as Mika).
> org.apache.felix.framework.Felix.java:3699
>     if (toRet.contains("${pom"))
> should, by example, be replaced by
>     if (toRet.indexOf("${pom") >= 0)
> (sorry, no patch quickly available ;)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.