[ 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].
[1]
felix.auto.start.1= \
file:G:/Java/felix-1.8.0/bundle/org.apache.felix.shell-1.2.0.jar \
file:G:/Java/felix-1.8.0/bundle/org.apache.felix.shell.tui-1.2.0.jar
felix.log.level=1
org.osgi.service.http.port=8080
osgi.shell.telnet=on
obr.repository.url=http://felix.apache.org/obr/releases.xml
[2]
public static void main(String [] args) {
Main.loadSystemProperties();
Properties configProps = Main.loadConfigProperties();
Main.copySystemProperties(configProps);
List list = new ArrayList();
list.add(new AutoActivator(configProps));
configProps.put(FelixConstants.SYSTEMBUNDLE_ACTIVATORS_PROP, list);
try
{
// start the framework.
Felix m_felix = new Felix(configProps);
m_felix.start();
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);
m_felix.waitForStop(0);
System.exit(0);
}
catch (Exception ex)
{
System.err.println("Could not create framework: " + ex);
ex.printStackTrace();
System.exit(-1);
}
}
> 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.
|