markewiseman / proxy-vole

Automatically exported from code.google.com/p/proxy-vole
0 stars 0 forks source link

UnsatisfiedLinkError #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Using proxy-vole on windows systems multiple instances at the same time can 
cause a lib loading problem.

What is the expected output? What do you see instead?
expected: each instance can load proxy-vole lib

result: stack trace:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: 
d:\temp\proxy_vole6068539331683610510.dll
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1706)
    at java.lang.Runtime.load0(Runtime.java:770)
    at java.lang.System.load(System.java:1003)
    at com.btr.proxy.search.desktop.win.Win32ProxyUtils.<clinit>(Win32ProxyUtils.java:37)
    at com.btr.proxy.search.browser.ie.IEProxySearchStrategy.readSettings(IEProxySearchStrategy.java:57)
    at com.btr.proxy.search.browser.ie.IEProxySearchStrategy.getProxySelector(IEProxySearchStrategy.java:42)
    at com.btr.proxy.search.desktop.win.WinProxySearchStrategy.getProxySelector(WinProxySearchStrategy.java:37)
    at com.btr.proxy.search.desktop.DesktopProxySearchStrategy.getProxySelector(DesktopProxySearchStrategy.java:34)
    at com.btr.proxy.search.ProxySearch.getProxySelector(ProxySearch.java:193)

What version of the product are you using? On what operating system?
20131209

Analysis
Delete old temp files in DLLManager might delete the currently extracted dll 
file from an other instance.

Potential fix: 
Only delete dll files older than a day.

Please provide any additional information below.

--------- com.btr.proxy.search.desktop.win.DLLManager  --------------
  74:            for (File tmp : oldFiles) {
+ 75:                if ((System.currentTimeMillis() - tmp.lastModified()) > 
86400000) {
  76:                    tmp.delete();
+ 77:                }
  78:            }

Original issue reported on code.google.com by Torsten....@gmail.com on 11 Jun 2014 at 4:32

GoogleCodeExporter commented 8 years ago
Hello Torsten,
Thanks for reporting this. The fix for this is now in the respository.
You will have to check it out and build it by your own as google code no longer 
allows me to upload binary releases. I will hopefully soon find the time to 
make proxy vole available via maven but until then use the source.

Have fun,
- Rossi

Original comment by rosstaus...@googlemail.com on 9 Feb 2015 at 9:25