1.17.1 Invalid Signature File Digest

Discussion in 'Spigot Plugin Development' started by tanko_, Jul 31, 2021.

  1. Hi, I was not getting this error on my other PC, but I now am getting it after cloning onto another system. I am using world guard and world edit dependencies but everything else in my pom.xml is normal and I am not sure what is going on?

    Code (Java):

    java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
        at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:339) ~[?:?]
        at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:281) ~[?:?]
        at java.util.jar.JarVerifier.processEntry(JarVerifier.java:321) ~[?:?]
        at java.util.jar.JarVerifier.update(JarVerifier.java:234) ~[?:?]
        at java.util.jar.JarFile.initializeVerifier(JarFile.java:763) ~[?:?]
        at java.util.jar.JarFile.getInputStream(JarFile.java:846) ~[?:?]
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:173) ~[rustcraft.jar:3207-Spigot-18c71bf-8537925]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:144) ~[rustcraft.jar:3207-Spigot-18c71bf-8537925]
        at org.bukkit.craftbukkit.v1_17_R1.CraftServer.loadPlugins(CraftServer.java:394) ~[rustcraft.jar:3207-Spigot-18c71bf-8537925]
        at net.minecraft.server.dedicated.DedicatedServer.init(DedicatedServer.java:233) ~[rustcraft.jar:3207-Spigot-18c71bf-8537925]
        at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:995) ~[rustcraft.jar:3207-Spigot-18c71bf-8537925]
        at net.minecraft.server.MinecraftServer.lambda$0(MinecraftServer.java:303) ~[rustcraft.jar:3207-Spigot-18c71bf-8537925]
        at java.lang.Thread.run(Thread.java:831) [?:?]

  2. did your pom.xml change? you are probably including signed jar's in your build which causes it to crash, try to exclude the META-INF files of the signed jar by using this in your pom.xml, obviously substituting the correct identifiers

    Code (Text):
  3. I did add this on to my maven shade plugin build since it seems thats where problems lie, but this hasnt solved the issue, what I find odd is that this wasn't an issue on my other PC, any idea what could have changed? This is the exact same code I just cloned it onto another device
  4. Not really, sorry. A Idea I might have is that one of your dependencies updated while you moved PC's which signed the jar, else no idea.
  5. How odd, only was working on the other PC yesterday, who knows, maybe I messed something up with committing stuff on git, thanks anyway, if I find a fix I'll post it :)
  6. Alright :) and Sorry that I couldn't help