threerings / getdown

Download, Install, Update
Other
507 stars 125 forks source link

Error creating digest: Error computing digest #254

Open ange-black69 opened 3 years ago

ange-black69 commented 3 years ago

Hello, Trying to make my own launcher for my app based on the demo. I have launched a apache localhost server with myapp.jar, getdown.txt and getdown-new.jar in a particular folder of htdocs. I have configured the getdown.txt like so : `# where our app is hosted on the internets appbase = http://127.0.0.1/l7s

the jar file that contains our code

code = myapp.jar

include the latest copy of getdown; app checks at startup whether it should upgrade getdown

code = getdown-new.jar

the main entry point of our app

class = com.l7s.desktop.DesktopLauncher

we pass the appdir to our app so that it can upgrade getdown

apparg = %APPDIR%

test the %env% mechanism

jvmarg = -Dusername=\%ENV.USER%

ui.name = l7s updater ui.progress = 17, 321, 458, 22 ui.progress_bar = 336600 ui.progress_text = FFFFFF ui.status = 57, 245, 373, 68 ui.status_text = 000000

java_min_version = 1080112

java_exact_version_required = true

java_location = [windows] java_windows.jar

java_location = [mac os x] java_macos.jar

java_location = [linux] java_linux.jar

` but once I do mvn package I got a error :

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (digest) on project testapp: An Ant BuildException has occured: Error creating digest: Error computing digest for: myapp.jar

What did I do wrong ? (when I do http://127.0.0.1/l7s I can see the files in my browser)

maeichris commented 3 years ago

See also Ticket #103 . Note that I had the same error message (through And instead of Maven) and never resolved the issue, as it was intermittent. I thought it may or may not have been related to signed jars, but it sounds like yours is not. The fault seemed to be outside of the logic of getdown (i.e. in the Java/JDK libraries). It may have also been related to specific versions of Java/JDK.

You might try to add verbose options or execute the digester by hand to get the stack trace for the exception, which may reveal additional information.