Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52133

java.lang.SecurityException: Can't read cryptographic policy directory: unlimited

    Details

    • Similar Issues:

      Description

      When starting the swarm-client using Java 10, I get the following exception:

      Exception in thread "main" java.lang.ExceptionInInitializerError
          at java.base/javax.crypto.JceSecurityManager.<clinit>(JceSecurityManager.java:65)
          at java.base/javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2613)
          at java.base/javax.crypto.Cipher.getMaxAllowedKeyLength(Cipher.java:2635)
          at java.base/sun.security.ssl.CipherSuite$BulkCipher.isUnlimited(CipherSuite.java:603)
          at java.base/sun.security.ssl.CipherSuite$BulkCipher.<init>(CipherSuite.java:575)
          at java.base/sun.security.ssl.CipherSuite$BulkCipher.<clinit>(CipherSuite.java:461)
          at java.base/sun.security.ssl.CipherSuite.<clinit>(CipherSuite.java:1075)
          at java.base/sun.security.ssl.SSLContextImpl.getApplicableSupportedCipherSuiteList(SSLContextImpl.java:354)
          at java.base/sun.security.ssl.SSLContextImpl.access$100(SSLContextImpl.java:42)
          at java.base/sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:590)
          at java.base/java.lang.Class.forName0(Native Method)
          at java.base/java.lang.Class.forName(Class.java:291)
          at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848)
          at java.base/java.security.Provider$Service.newInstance(Provider.java:1824)
          at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
          at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
          at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168)
          at hudson.plugins.swarm.SwarmClient.createHttpClient(SwarmClient.java:338)
          at hudson.plugins.swarm.SwarmClient.discoverFromMasterUrl(SwarmClient.java:213)
          at hudson.plugins.swarm.Client.run(Client.java:146)
          at hudson.plugins.swarm.Client.main(Client.java:119)
      Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
          at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:118)
          ... 21 more
      Caused by: java.lang.SecurityException: Can't read cryptographic policy directory: unlimited
          at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:324)
          at java.base/javax.crypto.JceSecurity.access$000(JceSecurity.java:73)
          at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:109)
          at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:106)
          at java.base/java.security.AccessController.doPrivileged(Native Method)
          at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:105)
          ... 21 more

        Attachments

          Activity

          Hide
          getrostt Tobias Getrost added a comment -

          Not an issue for swarm-client.

          My test setup was missing a symbolic link to the JRE conf folder.

          Show
          getrostt Tobias Getrost added a comment - Not an issue for swarm-client. My test setup was missing a symbolic link to the JRE conf folder.
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Tobias Getrost anyway, thanks for testing it!
          If you see any other issues with the Swarm plugin on Java 10, please let me know

          Show
          oleg_nenashev Oleg Nenashev added a comment - Tobias Getrost anyway, thanks for testing it! If you see any other issues with the Swarm plugin on Java 10, please let me know
          Hide
          getrostt Tobias Getrost added a comment -

          Hi Oleg Nenashev,

          I did run my tests using Oracle Java 10 with the swarm plugin on Windows and did not experience any issues.

          Br

          Tobias

          Show
          getrostt Tobias Getrost added a comment - Hi Oleg Nenashev , I did run my tests using Oracle Java 10 with the swarm plugin on Windows and did not experience any issues. Br Tobias

            People

            • Assignee:
              getrostt Tobias Getrost
              Reporter:
              getrostt Tobias Getrost
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: