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

java.lang.SecurityException: SHA1 digest error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6u18-rev
    • Fix Version/s: None
    • Component/s: deploy
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      1) have a PC ready with Windows XP SP3

      2) install jdk 1.6.0_18

      3) install tomcat 5.5.28

      4) place these war files in tomcat webapps directory

        c:\tomcat55\webapps\ and restart tomcat
        
         customer war files:
        
          c2s1.central.sun.com @ /cores/72642244
        
        fs-cores-brm-sc3c% ls -l
        
        total 262710
        -r--r--r-- 1 cores staff 622953 Mar 22 17:34 BCREDIT_1.3.5.war
        -r--r--r-- 1 cores staff 629501 Mar 21 16:24 BCREDIT_1.3.6.war
        -r--r--r-- 1 cores staff 26592 Mar 22 18:19 configserver_BCREDIT_1.0.0.2.war
        -r--r--r-- 1 cores staff 31535784 Mar 22 18:19 jre_1.6.0_18.war
        -r--r--r-- 1 cores staff 699096 Mar 22 18:19 ws.war

      5) save this file in this location:

       C:\Tomcat5.5\conf\configuration.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <xml>
          <brand name = "BCREDIT">
               <client name="testws">
                   <config_version>BCREDIT_1.0.0.2</config_version>
                   <app_version>1.3.6</app_version>
              </client>
               <client name="testws1">
                   <config_version>BCREDIT_1.0.0.1</config_version>
                   <app_version>1.3.3</app_version>
              </client>
               <client name="testws2">
                   <config_version>BCREDIT_1.0.0.2</config_version>
                   <app_version>1.3.5</app_version>
              </client>
      </brand>
      </xml>


      6) make the following change in this web.xml:


      C:\Tomcat5.5\webapps\ws\WEB-INF\web.xml:

      <init-param>
                  <param-name>configLocation</param-name>
                  <!-- <param-value>/export/home/btec/.credit/configuration.xml</param-value> -->
                  <param-value>C:/tomcat5.5/conf/configuration.xml</param-value>
      </init-param>



      * change C:\Tomcat5.5\conf\configuration.xml set to 1.3.6

      <client name="testws">
                   <config_version>BCREDIT_1.0.0.2</config_version>
                   <app_version>1.3.6</app_version>
              </client>

      * run 1.3.6 version of application as follows:

        javaws http://localhost:8080/ws/BCREDIT/testws/BrokerTec.jnlp

      * Next, change C:\Tomcat5.5\conf\configuration.xml file to 1.3.5

      <client name="testws">
                   <config_version>BCREDIT_1.0.0.2</config_version>
                   <app_version>1.3.5</app_version>
              </client>

       restart tomcat and ran 1.3.5

          javaws http://localhost:8080/ws/BCREDIT/testws/BrokerTec.jnlp

      * Changed back to 1.3.6 restarted Tomcat no problem

      * Changed back to 1.3.5 restarted tomcat no problem

      * you may want to delete C:\Documents and Settings\anassiry.VOS\Application Data\Sun\Java\Deployment\cache after stopping tomcat and before restarting it

      * Changed back to changed back to 1.3.6 reproduced the exception:

      Wrapped exception:

      java.lang.SecurityException: SHA1 digest error for com/btec/app/preferences/exchange/TradeDefaultsListPane$ListSelectionAdapter.class
                      at sun.security.util.ManifestEntryVerifier.verify(ManifestEntryVerifier.java:192)
                      at java.util.jar.JarVerifier.processEntry(JarVerifier.java:201)
                      at java.util.jar.JarVerifier.update(JarVerifier.java:188)
                      at java.util.jar.JarVerifier$VerifierStream.read(JarVerifier.java:411)
                      at java.io.InputStream.read(InputStream.java:85)
                      at com.sun.deploy.jardiff.JarDiffPatcher.writeEntry(JarDiffPatcher.java:296)
                      at com.sun.deploy.jardiff.JarDiffPatcher.writeEntry(JarDiffPatcher.java:287)
                      at com.sun.deploy.jardiff.JarDiffPatcher.applyPatch(JarDiffPatcher.java:85)
                      at com.sun.deploy.net.DownloadEngine.applyPatch(DownloadEngine.java:760)
                      at com.sun.deploy.cache.CacheEntry.processTempDataFile(CacheEntry.java:1197)
                      at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Cache.java:575)
                      at com.sun.deploy.cache.Cache.downloadResourceToCache(Cache.java:529)
                      at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:1350)
                      at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1528)
                      at com.sun.deploy.net.DownloadEngine.getCacheEntry(DownloadEngine.java:1506)
                      at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1609)
                      at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(DownloadEngine.java:1537)
                      at com.sun.deploy.net.DownloadEngine.getResource(DownloadEngine.java:217)
                      at com.sun.javaws.LaunchDownload$DownloadTask.call(LaunchDownload.java:1739)
                      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
                      at java.lang.Thread.run(Thread.java:619)




      * Next, I shutdown tomcat, deleted directory C:\Documents and Settings\anassiry.VOS\Application Data\Sun\Java\Deployment\cache
        restarted Tomcat problem went away

        Attachments

          Activity

            People

            • Assignee:
              mbankal Mala Bankal (Inactive)
              Reporter:
              hnassiry Haroon Nassiry (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: