Griffon
  1. Griffon
  2. GRIFFON-161

SecurityException: invalid SHA1 signature file digest' when running the command 'griffon package zip

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.3
    • Fix Version/s: 0.9.2-beta-3
    • Component/s: cli
    • Labels:
      None
    • Number of attachments :
      0

      Description

      From the user list:

      I get the following Exception when running the command 'griffon package zip':

        [signjar] Signing JAR: /home/max/griffon-0.3/samples/SwingPad/staging/svg-salamander-1.0.jar to /home/max/griffon-0.3/samples/SwingPad/staging/svg-salamander-1.0.jar as juarezmax
        [signjar] Warning:
        [signjar] The signer certificate will expire within six months.
           [exec] Exception in thread "main" java.lang.SecurityException: invalid SHA1 signature file digest for com/kitfox/svg/SVGParseException.class
           [exec]     at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:441)
           [exec]     at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:231)
           [exec]     at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:176)
           [exec]     at java.util.jar.JarVerifier.processEntry(JarVerifier.java:245)
           [exec]     at java.util.jar.JarVerifier.update(JarVerifier.java:199)
           [exec]     at java.util.jar.JarFile.initializeVerifier(JarFile.java:323)
           [exec]     at java.util.jar.JarFile.getInputStream(JarFile.java:388)
           [exec]     at com.sun.java.util.jar.pack.PackerImpl$DoPack$InFile.getInputStream(PackerImpl.java:373)
           [exec]     at com.sun.java.util.jar.pack.PackerImpl$DoPack.run(PackerImpl.java:459)
           [exec]     at com.sun.java.util.jar.pack.PackerImpl.pack(PackerImpl.java:73)
           [exec]     at com.sun.java.util.jar.pack.Driver.main(Driver.java:261)
      

      The same Exception is throw when running 'griffon package' with 'applet' or 'webstart' arguments, but not with 'jar' argument.

        Activity

        Hide
        chris snow added a comment -

        I have a similar problem on griffon 0.9 with groovy-all-1.7.3.jar when running:

        griffon prod package webstart

        =====

             [exec] Exception in thread "main" java.lang.SecurityException: SHA1 digest error for groovy/swing/binding/JSpinnerProperties$1.class
             [exec] 	at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:192)
             [exec] 	at java.util.jar.JarVerifier.processEntry(JarVerifier.java:212)
             [exec] 	at java.util.jar.JarVerifier.update(JarVerifier.java:199)
             [exec] 	at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:449)
             [exec] 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
             [exec] 	at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
             [exec] 	at java.io.FilterInputStream.read(FilterInputStream.java:66)
             [exec] 	at com.sun.java.util.jar.pack.ClassReader$1.read(ClassReader.java:43)
             [exec] 	at java.io.DataInputStream.readInt(DataInputStream.java:370)
             [exec] 	at com.sun.java.util.jar.pack.ClassReader.readMagicNumbers(ClassReader.java:139)
             [exec] 	at com.sun.java.util.jar.pack.ClassReader.read(ClassReader.java:122)
             [exec] 	at com.sun.java.util.jar.pack.PackerImpl$DoPack.readClass(PackerImpl.java:490)
             [exec] 	at com.sun.java.util.jar.pack.PackerImpl$DoPack.run(PackerImpl.java:464)
             [exec] 	at com.sun.java.util.jar.pack.PackerImpl.pack(PackerImpl.java:73)
             [exec] 	at com.sun.java.util.jar.pack.Driver.main(Driver.java:261)
             [exec] Result: 1
        
        Show
        chris snow added a comment - I have a similar problem on griffon 0.9 with groovy-all-1.7.3.jar when running: griffon prod package webstart ===== [exec] Exception in thread "main" java.lang.SecurityException: SHA1 digest error for groovy/swing/binding/JSpinnerProperties$1.class [exec] at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:192) [exec] at java.util.jar.JarVerifier.processEntry(JarVerifier.java:212) [exec] at java.util.jar.JarVerifier.update(JarVerifier.java:199) [exec] at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:449) [exec] at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) [exec] at java.io.BufferedInputStream.read(BufferedInputStream.java:237) [exec] at java.io.FilterInputStream.read(FilterInputStream.java:66) [exec] at com.sun.java.util.jar.pack.ClassReader$1.read(ClassReader.java:43) [exec] at java.io.DataInputStream.readInt(DataInputStream.java:370) [exec] at com.sun.java.util.jar.pack.ClassReader.readMagicNumbers(ClassReader.java:139) [exec] at com.sun.java.util.jar.pack.ClassReader.read(ClassReader.java:122) [exec] at com.sun.java.util.jar.pack.PackerImpl$DoPack.readClass(PackerImpl.java:490) [exec] at com.sun.java.util.jar.pack.PackerImpl$DoPack.run(PackerImpl.java:464) [exec] at com.sun.java.util.jar.pack.PackerImpl.pack(PackerImpl.java:73) [exec] at com.sun.java.util.jar.pack.Driver.main(Driver.java:261) [exec] Result: 1
        Hide
        chris snow added a comment -

        I just found this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5078608 - it seems to be the same as this problem

        Show
        chris snow added a comment - I just found this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5078608 - it seems to be the same as this problem

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Andres Almiray
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: