Hi all,

I have developed a cross platform bundle that installs/uninstalls either
comm-win32 or comm-linux jars to enable communication with the serial port.
Everything works fine on Linux, however on windows, Felix seems to cache
win32com.dll along with other files and folders at the time of installing
comm-win32 but then it is unable to remove win32com.dll when comm-win32 gets
uninstalled. As a consequence, the next time I bring up the framework, there
is a partially corrupted folder in the felix cache corresponding to the
presumably removed comm-win32 bundle which causes the following exception at
the time of starting the framework. Everything gets back to normal as soon
as I delete the corrupted bundle folder from the cache. The behavior happens
both with Felix 1.8.0 and 2.0.0.

ERROR: org.apache.felix.framework.cache.BundleCache: Error creating archive.
(java.io.FileNotFoundException:
..\felix-1.8.0\felix-cache\bundle61\version0.0\revision.location (The system
cannot find the file specified))

I wonder if there is a way to force Felix to remove the cached folder for
this bundle (along with the dll file)? or is there anything that I am not
doing properly at the time of uninstalling comm-win32 which somehow does not
release win32com.dll when it comes to cleaning the cache?

thanks,
-Nima

-- 
http://nima.magic.ubc.ca

Reply via email to