Gunnar Ekolin
-
2014-06-16
- assigned_to: Jan Stein
Hi,
I'm using Knopflerfish in combination with the project pax-web (version 2.1.5) to automatically deploy a war file in the Jetty bundle, but I have a problem, because when the bundle is installed and the war has to be deployed, there is a infinite loop, located in
org.knopflerfish.framework.bundlestorage.file.Archive
in the method:
private Set<string> listZipDir(String path, final JarInputStream ji)</string>
The infinite loop is this:
for (ze = ji.getNextJarEntry(); ze != null; ) {
String e = matchPath(path, ze.getName());
if (e != null) {
res.add(e);
}
Temporary, I've solved it, replacing this line:
for (ze = ji.getNextJarEntry(); ze != null; )
with:
for (ze = ji.getNextJarEntry(); ze != null; ze = ji.getNextJarEntry())
Am I right? It is a bug, or there is some other way to solve the problem, without modifying the code?
Thanks in advance.