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

MissingResourceException running Artifactory Release Staging

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • artifactory-plugin
    • None
    • jenkins 2.7.2, artifactory-plugin 2.6.0, Oracle Java JDK 1.7u79 and Oracle Java JDK 8u45

      After adding the artifactory plugin to a build job and running Artifactory Release Staging. I tried two different JDK versions (in Environment).

      (the job name and git-URLs below have been obfuscated to hide company internals).

      [EnvInject] - Loading node environment variables.
      Building on master in workspace /home/jenkins/jenkins/jobs/job-name (Git)/workspace
       > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
       > /usr/bin/git config remote.origin.url https://git.example.org/job-code.git # timeout=10
      Fetching upstream changes from https://git.example.org/job-code.git
       > /usr/bin/git --version # timeout=10
      using .gitcredentials to set credentials
       > /usr/bin/git config --local credential.username git-userl # timeout=10
       > /usr/bin/git config --local credential.helper store --file=/home/jenkins/tomcat/temp/git8755331186664428442.credentials # timeout=10
      Setting http proxy: proxy.example.org:8080
       > /usr/bin/git -c core.askpass=true fetch --tags --progress https://git.example.org/job-code.git +refs/heads/*:refs/remotes/origin/*
       > /usr/bin/git config --local --remove-section credential # timeout=10
       > /usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
       > /usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
      Checking out Revision ba84654a121137cc4d284d15f4fc5faa6a592688 (refs/remotes/origin/master)
       > /usr/bin/git config core.sparsecheckout # timeout=10
       > /usr/bin/git checkout -f ba84654a121137cc4d284d15f4fc5faa6a592688
       > /usr/bin/git branch -a -v --no-abbrev # timeout=10
       > /usr/bin/git branch -D master # timeout=10
       > /usr/bin/git checkout -b master ba84654a121137cc4d284d15f4fc5faa6a592688
       > /usr/bin/git rev-list ba84654a121137cc4d284d15f4fc5faa6a592688 # timeout=10
      [RELEASE] Release build triggered
       > /usr/bin/git config --get remote.origin.url # timeout=10
       > /usr/bin/git config core.sparsecheckout # timeout=10
       > /usr/bin/git checkout -b 0.1.16
      [RELEASE] Changing POMs to release version
      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      java.util.MissingResourceException: Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.SAXMessages
      	at com.sun.org.apache.xerces.internal.utils.SecuritySupport$7.run(SecuritySupport.java:174)
      	at com.sun.org.apache.xerces.internal.utils.SecuritySupport$7.run(SecuritySupport.java:166)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at com.sun.org.apache.xerces.internal.utils.SecuritySupport.getResourceBundle(SecuritySupport.java:166)
      	at com.sun.org.apache.xerces.internal.util.SAXMessageFormatter.formatMessage(SAXMessageFormatter.java:58)
      	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.getProperty(AbstractSAXParser.java:2063)
      	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.setProperty(SAXParserImpl.java:574)
      	at org.jdom.input.SAXBuilder.configureParser(SAXBuilder.java:663)
      	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:476)
      	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:888)
      	at org.jfrog.build.extractor.maven.transformer.PomTransformer.transform(PomTransformer.java:102)
      	at org.jfrog.hudson.release.maven.PomTransformer.invoke(PomTransformer.java:76)
      	at org.jfrog.hudson.release.maven.PomTransformer.invoke(PomTransformer.java:33)
      	at hudson.FilePath.act(FilePath.java:1018)
      	at hudson.FilePath.act(FilePath.java:996)
      	at org.jfrog.hudson.release.maven.MavenReleaseWrapper.changeVersions(MavenReleaseWrapper.java:244)
      	at org.jfrog.hudson.release.maven.MavenReleaseWrapper.setUp(MavenReleaseWrapper.java:171)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:655)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      	at hudson.model.Run.execute(Run.java:1741)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      

      There are other jobs in the same Jenkins that work with Artifactory Release Staging.

          [JENKINS-38693] MissingResourceException running Artifactory Release Staging

          I restarted the Jenkins instance today and the issue disappeared. Maybe it is related to some strange Classloader behaviour. What I cannot explain yet is the circumstance that other Jobs did not have this issue.

          Jan Dittberner added a comment - I restarted the Jenkins instance today and the issue disappeared. Maybe it is related to some strange Classloader behaviour. What I cannot explain yet is the circumstance that other Jobs did not have this issue.

            eyalbe Eyal Ben Moshe
            jandd Jan Dittberner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: