hudson.util.HudsonFailedToLoad: java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity

Jenkins JIRA | Jarosław Maciejewski | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    After update Jenkins (via apt-get update && apt-get upgrade -y) Jenkins can't start on WWW I have errror: {code:java} hudson.util.HudsonFailedToLoad: java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity at hudson.WebAppMain$3.run(WebAppMain.java:241) Caused by: java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity at javax.crypto.Mac.getInstance(java.base@9-ea/Mac.java:184) at jenkins.security.HMACConfidentialKey.createMac(HMACConfidentialKey.java:111) at jenkins.security.HMACConfidentialKey.mac(HMACConfidentialKey.java:69) at jenkins.security.HMACConfidentialKey.mac(HMACConfidentialKey.java:85) at jenkins.security.ApiTokenProperty$DescriptorImpl.newInstance(ApiTokenProperty.java:178) at jenkins.security.ApiTokenProperty$DescriptorImpl.newInstance(ApiTokenProperty.java:163) at hudson.model.User.load(User.java:196) at hudson.model.User.<init>(User.java:148) at hudson.model.User.getOrCreate(User.java:456) at hudson.model.User.getById(User.java:527) at hudson.security.HudsonPrivateSecurityRealm.createAccount(HudsonPrivateSecurityRealm.java:398) at jenkins.install.SetupWizard.init(SetupWizard.java:106) at jenkins.install.InstallState$3.initializeState(InstallState.java:105) at jenkins.model.Jenkins.setInstallState(Jenkins.java:970) at jenkins.install.InstallUtil.proceedToNextStateFrom(InstallUtil.java:94) at jenkins.model.Jenkins.<init>(Jenkins.java:887) at hudson.model.Hudson.<init>(Hudson.java:85) at hudson.model.Hudson.<init>(Hudson.java:81) at hudson.WebAppMain$3.run(WebAppMain.java:227) {code} Log : http://pastebin.com/JLvpF6Jm

    Jenkins JIRA | 7 months ago | Jarosław Maciejewski
    hudson.util.HudsonFailedToLoad: java.lang.NoClassDefFoundError: Could not initialize class javax.crypto.JceSecurity

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class javax.crypto.JceSecurity at javax.crypto.Mac.getInstance(java.base@9-ea/Mac.java:184)

      at jenkins.security.HMACConfidentialKey.createMac()
    2. jenkins.security
      ApiTokenProperty$DescriptorImpl.newInstance
      1. jenkins.security.HMACConfidentialKey.createMac(HMACConfidentialKey.java:111)
      2. jenkins.security.HMACConfidentialKey.mac(HMACConfidentialKey.java:69)
      3. jenkins.security.HMACConfidentialKey.mac(HMACConfidentialKey.java:85)
      4. jenkins.security.ApiTokenProperty$DescriptorImpl.newInstance(ApiTokenProperty.java:178)
      5. jenkins.security.ApiTokenProperty$DescriptorImpl.newInstance(ApiTokenProperty.java:163)
      5 frames
    3. Hudson
      HudsonPrivateSecurityRealm.createAccount
      1. hudson.model.User.load(User.java:196)
      2. hudson.model.User.<init>(User.java:148)
      3. hudson.model.User.getOrCreate(User.java:456)
      4. hudson.model.User.getById(User.java:527)
      5. hudson.security.HudsonPrivateSecurityRealm.createAccount(HudsonPrivateSecurityRealm.java:398)
      5 frames
    4. jenkins.install
      InstallState$3.initializeState
      1. jenkins.install.SetupWizard.init(SetupWizard.java:106)
      2. jenkins.install.InstallState$3.initializeState(InstallState.java:105)
      2 frames
    5. jenkins.model
      Jenkins.setInstallState
      1. jenkins.model.Jenkins.setInstallState(Jenkins.java:970)
      1 frame
    6. jenkins.install
      InstallUtil.proceedToNextStateFrom
      1. jenkins.install.InstallUtil.proceedToNextStateFrom(InstallUtil.java:94)
      1 frame
    7. jenkins.model
      Jenkins.<init>
      1. jenkins.model.Jenkins.<init>(Jenkins.java:887)
      1 frame
    8. Hudson
      WebAppMain$3.run
      1. hudson.model.Hudson.<init>(Hudson.java:85)
      2. hudson.model.Hudson.<init>(Hudson.java:81)
      3. hudson.WebAppMain$3.run(WebAppMain.java:227)
      3 frames