Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8012630

Exception "Found unsigned entry in resource: " for signed JAR's

    Details

      Description

      FULL PRODUCT VERSION :
      java version " 1.7.0_21 "
      Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

      and

      java version " 1.7.0_17 "
      Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
      Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux dev29 3.2.0-40-generic #64-Ubuntu SMP Mon Mar 25 21:22:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      sign commons-httpclient-3.1.jar

      the part of the MANIFEST.MF which rise the Exception:

      Name: org/apache/commons/httpclient/auth/RFC2617Scheme.class
      SHA-256-Digest: wl5b1M1hkLUHfsu2/PfBEMDm430PAwIGcj5FTWHOuhM=

      Name: org/apache/commons/httpclient
      Implementation-Vendor: Apache Software Foundation
      Implementation-Title: org.apache.commons.httpclient
      Implementation-Version: 3.1
      Implementation-Vendor-Id: org.apache
      Specification-Vendor: Apache Software Foundation
      Specification-Title: Jakarta Commons HttpClient
      Specification-Version: 3.1
      Extension-name: org.apache.commons.httpclient
      X-Compile-Source-JDK: 1.2
      X-Compile-Target-JDK: 1.2

      Name: org/apache/commons/httpclient/methods/StringRequestEntity.class
      SHA-256-Digest: n/1uuLVWR7Vgei/qE/Z+Rpfen0+kVuLkId11OQAe8Vg=

      Without the line Name: org/apache/commons/httpclient
      no Exception occures.

      or signe ojdbc5-11.2.0.3.jar

      the part of the MANIFEST.MF which rise the Exception:

      Name: oracle/jdbc/internal/KeywordValueLong.class
      SHA-256-Digest: Qymi7Xc9Qb1onkmnue6b2Ju8GbFBkKHo1M+TI5lhDJQ=

      Name: oracle/sql/converter/
      Sealed: false
      SHA-256-Digest: 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=

      Name: oracle/jdbc/driver/T2CConnection.class
      SHA-256-Digest: sc3C+olARuzpmRhaC1+YApzflh8DPxvdsfMCLkunxi8=

      Without the lines

      Name: oracle/sql/converter/
      Sealed: false
      SHA-256-Digest: 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=

      no Exception occures.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      signe commons-httpclient-3.1.jar or ojdbc5-11.2.0.3.jar

      write main dummy main for webstart run

      fill up teh following jnlp

      <?xml version= " 1.0 " encoding= " UTF-8 " ?><!DOCTYPE jnlp PUBLIC " -//Sun Microsystems, Inc//DTD JNLP Discriptor 1.5//EN " " http://java.sun.com/dtd/JNLP-1.5.dtd " >
      <jnlp spec= " 1.0+ " codebase= " ???? " href= " ???? " >
        <information>
          <title>???</title>
          <homepage href= " http://??? " />
          <description>
      </description>
        </information>
        <security>
          <all-permissions/>
        </security>
        <resources>
          <j2se version= " 1.7+ " max-heap-size= " 1024m " />
          <jar href= " ?.jar " />
          <jar href= " lib/commons-httpclient-3.1.jar " />
          <jar href= " lib/ojdbc5-11.2.0.3.jar " />
        </resources>
        <application-desc main-class= " ??? " />
      </jnlp>

      and launch the programm with javaws

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      the jar's shoud by accepted as signed

      REPRODUCIBILITY :
      This bug can be reproduced always.j

      CUSTOMER SUBMITTED WORKAROUND :
      remove the Name: properties from the MANIFEST.MF then signe them.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dcherepanov Dmitry Cherepanov
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: