Massive thanks for the
response. Yeah, this was all working for me for a few years (or so I
thought) and now due to this bloody log4j shell issue (which is only a
minor threat in a very small client side swing application that opens no
ports and isn't accessible to the internet!) I was forced to double check and it seems to be failing - when i could really do with it working. Sods law!
I guess over the years the appbase
jars have changed and got larger. The getdown.txt hasn't altered for ages One is an uber/shaded .jar 48mb (that has
the log4j2 package) that I wanted to update. jar -xf seems to unpack them all locally ok (although it does take a while so not sure if that could cause an issue).
The jar sizes look ok, but the weird warnings about the jars (they are also signed) does seem to indicate that is the issue somehow. The appbase is by default in an exploded war file in Tomcat, but maybe the hash from the contents of the jar files is throwing things awry due to size?
Another log is at the bottom.
I did try trimming down the getdown.txt file to just the one ubder gemini-dependencies jar and did get it to work but it seemed a bit hit and miss.
# The URL from which the client is downloaded. Will be changed when gemini app first configured (property gemini-external-extractor-url).
appbase =
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/# UI Configuration - name of download page should be set. Defaults to Gemini (property gemini-external-extractor-name)
# background image should be 500 wide * 200 high - or otherwise change ui.progress and ui.status to match -
# relative to top left. The ui.error_background will be displayed if there is an issue with code download
ui.name = GEMTEST_2.7
ui.background = FFFFFF
ui.background_image = img/upgrade-gemini.png
ui.error_background = img/upgrade-gemini-error.png
ui.icon = img/gemini-logo.ico
ui.progress = 20, 20, 460, 20
ui.progress_bar = 000000
ui.progress_text = FFFFFF
ui.status = 20, 80, 460, 40
ui.status_text = FFFFFF
# Application class path files - first the extractor images need to be on class path
code = img/gemini-tray.png
code = img/gemini-tray-extracting.png
code = img/gemini-extractor.png
# and then the .jar files
code = lib/gemini-common.jar
code = lib/gemini-dependencies.jar
code = lib/gemini-extractor.jar
code = lib/gemini-native.jar
# if we need to update the getdown jar itself add it here. The old jar was called getdown.jar, the new
# from Gemini 2.4 on (and getdown1.8+) is getdown-launcher.jar
code = lib/getdown-launcher.jar
# This image is used for ui.background_image - not needed on classpath neither is the desktop icon
resource = img/upgrade-gemini.png
resource = img/upgrade-gemini-error.png
resource = img/gemini-logo.ico
# and any .bat files in the extractor folder
resource = repair.bat
# Fine to carry on running if we can't access the 'code' updates
allow_offline = true
# The main entry point for the application
class = com.hpdsoftware.gemini.extractor.WindowsExtractor
# Arguments - the order is important. Load gemini-extractor.properties first
# Getdown puts all the 'code' attributes on classpath. Not possible to specify additional jvmarg class path so
# the property file in the conf folder is passed through.
apparg = extractor-properties-path=%APPDIR%\config\gemini-extractor.properties
apparg = jnlp.instruction=startup
apparg = appdir=%APPDIR%
# Requires at least this java version - if that isn't what is installed will upgrade to the jre in java_windows.zip
# found at appbase/resources/java_windows.zip - the default embedded jre from gemini 2.4 on is 1.8.022
java_min_version = 1080222
java_local_dir = java_vm
java_location = [windows] resources/java_windows.zip
2021/12/22 07:23:11:163 INFO Using appdir from command line: extractor
2021/12/22 07:23:11:166 INFO ------------------ VM Info ------------------
2021/12/22 07:23:11:166 INFO -- OS Name: Windows 10
2021/12/22 07:23:11:166 INFO -- OS Arch: x86
2021/12/22 07:23:11:166 INFO -- OS Vers: 10.0
2021/12/22 07:23:11:166 INFO -- Java Vers: 1.8.0_222
2021/12/22 07:23:11:166 INFO -- Java Home: C:\Gemini_Connector_776\extractor\java
2021/12/22 07:23:11:166 INFO -- User Name: matb
2021/12/22 07:23:11:166 INFO -- User Home: C:\Users\matb
2021/12/22 07:23:11:166 INFO -- Cur dir: C:\Gemini_Connector_776
2021/12/22 07:23:11:166 INFO ---------------------------------------------
2021/12/22 07:23:11:671 INFO Getdown starting [version=1.8.1, built=2018-11-26 14:46]
2021/12/22
07:23:11:680 INFO Failed to find proxy settings in Windows registry
[error=java.lang.UnsatisfiedLinkError: no jRegistryKey in
java.library.path]
2021/12/22 07:23:11:683 INFO ---------------- Proxy Info -----------------
2021/12/22 07:23:11:683 INFO -- Proxy Host: null
2021/12/22 07:23:11:683 INFO -- Proxy Port: null
2021/12/22 07:23:11:683 INFO ---------------------------------------------
2021/12/22 07:23:11:752 INFO Able to lock for updates: true
2021/12/22 07:23:11:754 INFO Checking Java version [current=1080222, wantMin=1080222, wantMax=0]
2021/12/22 07:23:11:840 INFO Verifying application:
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/2021/12/22 07:23:11:841 INFO Version: -1
2021/12/22 07:23:11:841 INFO Class: com.hpdsoftware.gemini.extractor.WindowsExtractor
2021/12/22 07:23:11:845 INFO Dropping status 'm.validating'.
2021/12/22
07:23:11:847 INFO Attempting to refetch 'digest.txt' from
'
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/digest.txt'.
2021/12/22 07:23:11:913 INFO No signing certs, not verifying digest.txt [path=digest.txt]
2021/12/22
07:23:11:919 INFO Attempting to refetch 'digest2.txt' from
'
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/digest2.txt'.
2021/12/22 07:23:11:933 INFO No signing certs, not verifying digest.txt [path=digest2.txt]
2021/12/22 07:23:11:939 INFO Unversioned digest changed. Revalidating...
2021/12/22
07:23:11:978 INFO Resource failed digest check
[rsrc=lib/gemini-extractor.jar, error=java.util.zip.ZipException:
invalid CEN header (bad signature)]
2021/12/22 07:23:12:043 INFO
Resource failed digest check [rsrc=lib/gemini-common.jar,
error=java.util.zip.ZipException: invalid distance too far back]
2021/12/22 07:23:12:165 WARNING Error loading icon image [path=img/gemini-logo.ico]
2021/12/22 07:23:12:165 WARNING Failed to load any icons [iconImages=[img/gemini-logo.ico]]
2021/12/22
07:23:12:218 INFO Resource failed digest check
[rsrc=lib/gemini-dependencies.jar, error=java.util.zip.ZipException:
invalid stored block lengths]
2021/12/22 07:23:12:219 INFO Verified resources [count=12, size=51373k, duration=258ms]
2021/12/22 07:23:12:220 INFO 3 of 12 rsrcs require update (0 assumed valid).
2021/12/22 07:23:12:251 INFO Downloading 3 resources [totalBytes=51842967, maxConcurrent=2]
2021/12/22
07:23:12:280 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-extractor.jar,
size=1797757]
2021/12/22 07:23:12:287 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-dependencies.jar,
size=49509971]
2021/12/22 07:23:12:404 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-common.jar,
size=535239]
2021/12/22 07:23:13:189 INFO Checking Java version [current=1080222, wantMin=1080222, wantMax=0]
2021/12/22 07:23:13:189 INFO Verifying application:
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/2021/12/22 07:23:13:190 INFO Version: -1
2021/12/22 07:23:13:190 INFO Class: com.hpdsoftware.gemini.extractor.WindowsExtractor
2021/12/22
07:23:13:191 INFO Attempting to refetch 'digest.txt' from
'
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/digest.txt'.
2021/12/22 07:23:13:200 INFO No signing certs, not verifying digest.txt [path=digest.txt]
2021/12/22
07:23:13:204 INFO Attempting to refetch 'digest2.txt' from
'
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/digest2.txt'.
2021/12/22 07:23:13:213 INFO No signing certs, not verifying digest.txt [path=digest2.txt]
2021/12/22
07:23:13:223 INFO Resource failed digest check
[rsrc=lib/gemini-extractor.jar, error=java.util.zip.ZipException:
invalid CEN header (bad signature)]
2021/12/22 07:23:13:225 INFO
Resource failed digest check [rsrc=lib/gemini-common.jar,
error=java.util.zip.ZipException: invalid distance too far back]
2021/12/22
07:23:13:269 INFO Resource failed digest check
[rsrc=lib/gemini-dependencies.jar, error=java.util.zip.ZipException:
invalid distance too far back]
2021/12/22 07:23:13:269 INFO Verified resources [count=12, size=51373k, duration=49ms]
2021/12/22 07:23:13:269 INFO 3 of 12 rsrcs require update (8 assumed valid).
2021/12/22 07:23:13:283 INFO Downloading 3 resources [totalBytes=51842967, maxConcurrent=2]
2021/12/22
07:23:13:289 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-dependencies.jar,
size=49509971]
2021/12/22 07:23:13:289 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-extractor.jar,
size=1797757]
2021/12/22 07:23:13:778 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-common.jar,
size=535239]
2021/12/22 07:23:14:195 INFO Checking Java version [current=1080222, wantMin=1080222, wantMax=0]
2021/12/22 07:23:14:195 INFO Verifying application:
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/2021/12/22 07:23:14:195 INFO Version: -1
2021/12/22 07:23:14:195 INFO Class: com.hpdsoftware.gemini.extractor.WindowsExtractor
2021/12/22
07:23:14:197 INFO Attempting to refetch 'digest.txt' from
'
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/digest.txt'.
2021/12/22 07:23:14:204 INFO No signing certs, not verifying digest.txt [path=digest.txt]
2021/12/22
07:23:14:208 INFO Attempting to refetch 'digest2.txt' from
'
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/digest2.txt'.
2021/12/22 07:23:14:216 INFO No signing certs, not verifying digest.txt [path=digest2.txt]
2021/12/22
07:23:14:227 INFO Resource failed digest check
[rsrc=lib/gemini-common.jar, error=java.util.zip.ZipException: invalid
CEN header (bad signature)]
2021/12/22 07:23:14:233 INFO Resource
failed digest check [rsrc=lib/gemini-extractor.jar,
error=java.util.zip.ZipException: error in opening zip file]
2021/12/22
07:23:14:283 INFO Resource failed digest check
[rsrc=lib/gemini-dependencies.jar, error=java.util.zip.ZipException:
invalid distance too far back]
2021/12/22 07:23:14:283 INFO Verified resources [count=12, size=51373k, duration=60ms]
2021/12/22 07:23:14:284 INFO 3 of 12 rsrcs require update (16 assumed valid).
2021/12/22 07:23:14:300 INFO Downloading 3 resources [totalBytes=51842967, maxConcurrent=2]
2021/12/22
07:23:14:306 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-extractor.jar,
size=1797757]
2021/12/22 07:23:14:306 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-dependencies.jar,
size=49509971]
2021/12/22 07:23:14:505 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-common.jar,
size=535239]
2021/12/22 07:23:15:249 INFO Checking Java version [current=1080222, wantMin=1080222, wantMax=0]
2021/12/22 07:23:15:250 INFO Verifying application:
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/2021/12/22 07:23:15:250 INFO Version: -1
2021/12/22 07:23:15:250 INFO Class: com.hpdsoftware.gemini.extractor.WindowsExtractor
2021/12/22
07:23:15:252 INFO Attempting to refetch 'digest.txt' from
'
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/digest.txt'.
2021/12/22 07:23:15:260 INFO No signing certs, not verifying digest.txt [path=digest.txt]
2021/12/22
07:23:15:265 INFO Attempting to refetch 'digest2.txt' from
'
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/digest2.txt'.
2021/12/22 07:23:15:272 INFO No signing certs, not verifying digest.txt [path=digest2.txt]
2021/12/22
07:23:15:284 INFO Resource failed digest check
[rsrc=lib/gemini-extractor.jar,
error=java.lang.IllegalArgumentException: MALFORMED]
2021/12/22
07:23:15:286 INFO Resource failed digest check
[rsrc=lib/gemini-common.jar, error=java.util.zip.ZipException: error in
opening zip file]
2021/12/22 07:23:15:324 INFO Resource failed digest
check [rsrc=lib/gemini-dependencies.jar,
error=java.util.zip.ZipException: invalid literal/length code]
2021/12/22 07:23:15:325 INFO Verified resources [count=12, size=51373k, duration=47ms]
2021/12/22 07:23:15:326 INFO 3 of 12 rsrcs require update (24 assumed valid).
2021/12/22 07:23:15:341 INFO Downloading 3 resources [totalBytes=51842967, maxConcurrent=2]
2021/12/22
07:23:15:347 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-dependencies.jar,
size=49509971]
2021/12/22 07:23:15:348 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-extractor.jar,
size=1797757]
2021/12/22 07:23:15:511 INFO Downloading resource
[url=
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/lib/gemini-common.jar,
size=535239]
2021/12/22 07:23:16:311 INFO Checking Java version [current=1080222, wantMin=1080222, wantMax=0]
2021/12/22 07:23:16:311 INFO Verifying application:
http://10.234.101.82:12897/GEMTEST_2.7-external/extractor/2021/12/22 07:23:16:311 INFO Version: -1
2021/12/22 07:23:16:311 INFO Class: com.hpdsoftware.gemini.extractor.WindowsExtractor