harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "TianYu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6229) Failure to install uncached bundles in Felix
Date Wed, 10 Jun 2009 11:28:07 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718036#action_12718036

TianYu commented on HARMONY-6229:

You may try [2] .deletie the bundle cache directory of org.apache.felix.bundlerepository-1.4.0.jar
every time after execution .
The directory name will be bundle+number .(bundle20  for example)
My config.proprieties  file is [1].

felix.auto.start.1= \
 file:G:/Java/felix-1.8.0/bundle/org.apache.felix.shell-1.2.0.jar \

public static void main(String [] args) {
	    Properties configProps = Main.loadConfigProperties();

	    List list = new ArrayList();
	    list.add(new AutoActivator(configProps));
	    configProps.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, list);

	        // start the framework.
	        Felix m_felix = new Felix(configProps);
	        InstallCommandImpl ins=new InstallCommandImpl(m_felix.getBundleContext());
//the installation happens here 
	        ins.execute("install file:G:/Java/felix-1.8.0/bundle/org.apache.felix.bundlerepository-1.4.0.jar",
System.out, System.err);
	    catch (Exception ex)
	        System.err.println("Could not create framework: " + ex);

> Failure to install uncached bundles in Felix 
> ---------------------------------------------
>                 Key: HARMONY-6229
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6229
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M9
>         Environment: Felix 1.8.0
>            Reporter: TianYu
>   Original Estimate: 336h
>  Remaining Estimate: 336h
> It's an error happens in certain setting .
> After launching felix , there will be a cache directory to cache the installed bundle
> When running felix using harmony , it's unable to install a bundle not in the cache directory
with the message [1] ,while RI will install the bundle correctly .
> But if the bundle has already been cached in the last run ,for example by sun jre ,it's
OK to run felix using harmony .
> And the command to install the bundle will be like "install file:path/xxx.jar".
> After some research I think the error happened when parsing the url .But I haven't found
the exact reason resulting the problem .
> [1]java.net.MalformedURLException: java.lang.IllegalStateException: Stream handler unavailable
due to: Stream handler unavailable due to: null

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

View raw message