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

P4: Task Exception: Can't find bundle for base name org.jenkinsci.plugins.p4.Identifier, locale en_US

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • p4-plugin
    • None
    • Windows 10, Jenkins 2.190.2 (LTS)

      Since around plugin version 1.10.5, get the following when using Perforce as Source repository:

      P4: builds: 35908 
      P4: Connection retry: 1
      Can't find bundle for base name org.jenkinsci.plugins.p4.Identifier, locale en_US
      ERROR: P4: Task Exception: Can't find bundle for base name org.jenkinsci.plugins.p4.Identifier, locale en_US

       

          [JENKINS-60041] P4: Task Exception: Can't find bundle for base name org.jenkinsci.plugins.p4.Identifier, locale en_US

          Ken Morse created issue -

          Karl Wirth added a comment -

          Hi klm - Can you please try creating a new freestyle job that just does an SCM sync from Perforce and see if the same error occurs. If it does please send me the full console log and a screen shot showing the SCM configuration.

          Karl Wirth added a comment - Hi klm - Can you please try creating a new freestyle job that just does an SCM sync from Perforce and see if the same error occurs. If it does please send me the full console log and a screen shot showing the SCM configuration.
          Ken Morse made changes -
          Attachment New: P4SCM.png [ 49394 ]

          Ken Morse added a comment -

          Sure, p4karl – log of brand new Freestyle job below and screenshot attached.

           

          Started by user Ken
          Running as SYSTEM
          [EnvInject] - Loading node environment variables.
          Building remotely on buildvpc10 in workspace E:\WinPC\Main\p4test
          (p4):cmd:... p4 login -s
          p4 login -s
          User p4dti-replicator0 ticket expires in 8 hours 40 minutes.
          (p4):stop:3
          (p4):cmd:... p4 client -o BuildMachine-Perforce-Test
          p4 client -o BuildMachine-Perforce-Test
          (p4):stop:4
          (p4):cmd:... p4 counter change
          p4 counter change
          (p4):stop:5
          (p4):cmd:... p4 changes -m1 -ssubmitted //BuildMachine-Perforce-Test/...
          p4 changes -m1 -ssubmitted //BuildMachine-Perforce-Test/...
          Change 34054 on 2014/03/05 by Ken@Ken_Viper_P4Test 'Test change 2 of 2.
          '
          (p4):stop:6
          (p4):cmd:... p4 counter change
          p4 counter change
          (p4):stop:7
          (p4):cmd:... p4 changes -m1 -ssubmitted //BuildMachine-Perforce-Test/...@33054,34054
          p4 changes -m1 -ssubmitted //BuildMachine-Perforce-Test/...@33054,34054
          Change 34054 on 2014/03/05 by Ken@Ken_Viper_P4Test 'Test change 2 of 2.
          '
          (p4):stop:8
          P4: builds: 34054 
          P4: Connection retry: 1
          Can't find bundle for base name org.jenkinsci.plugins.p4.Identifier, locale en_US
          ERROR: P4: Task Exception: Can't find bundle for base name org.jenkinsci.plugins.p4.Identifier, locale en_US
          Finished: FAILURE
          

           

           

          Ken Morse added a comment - Sure, p4karl – log of brand new Freestyle job below and screenshot attached.   Started by user Ken Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on buildvpc10 in workspace E:\WinPC\Main\p4test (p4):cmd:... p4 login -s p4 login -s User p4dti-replicator0 ticket expires in 8 hours 40 minutes. (p4):stop:3 (p4):cmd:... p4 client -o BuildMachine-Perforce-Test p4 client -o BuildMachine-Perforce-Test (p4):stop:4 (p4):cmd:... p4 counter change p4 counter change (p4):stop:5 (p4):cmd:... p4 changes -m1 -ssubmitted //BuildMachine-Perforce-Test/... p4 changes -m1 -ssubmitted //BuildMachine-Perforce-Test/... Change 34054 on 2014/03/05 by Ken@Ken_Viper_P4Test 'Test change 2 of 2. ' (p4):stop:6 (p4):cmd:... p4 counter change p4 counter change (p4):stop:7 (p4):cmd:... p4 changes -m1 -ssubmitted //BuildMachine-Perforce-Test/...@33054,34054 p4 changes -m1 -ssubmitted //BuildMachine-Perforce-Test/...@33054,34054 Change 34054 on 2014/03/05 by Ken@Ken_Viper_P4Test 'Test change 2 of 2. ' (p4):stop:8 P4: builds: 34054 P4: Connection retry: 1 Can't find bundle for base name org.jenkinsci.plugins.p4.Identifier, locale en_US ERROR: P4: Task Exception: Can't find bundle for base name org.jenkinsci.plugins.p4.Identifier, locale en_US Finished: FAILURE    

          Paul Allen added a comment -

          The error suggests that Identifier.properties is not in your class path; I can verity that we ship the properties file in the p4.hpi file.

          unzip p4.hpi
          cd WEB-INF/lib/
          unzip p4.jar
          ls org/jenkinsci/plugins/p4/Identifier.properties 

          From the log is seems that the issue occurs on a Windows slave 'buildvpc10' perhaps the slave.jar is old? or a localisation setting has changed the class path?

           

          Please can you verify this by running the job on the master or a different slave.

          Perhaps redeploying the Jenkins slave may solve the issue?

          Paul Allen added a comment - The error suggests that Identifier.properties is not in your class path; I can verity that we ship the properties file in the p4.hpi file. unzip p4.hpi cd WEB-INF/lib/ unzip p4.jar ls org/jenkinsci/plugins/p4/Identifier.properties From the log is seems that the issue occurs on a Windows slave 'buildvpc10' perhaps the slave.jar is old? or a localisation setting has changed the class path?   Please can you verify this by running the job on the master or a different slave. Perhaps redeploying the Jenkins slave may solve the issue?

          Karl Wirth added a comment -

          In addition to Paul's comments above note that I have installed 2.190.2 and P4Plugin 1.10.6 and I cannot reproduce the errors above on my Windows 10 build slave that runs Oracle Java version "1.8.0_77".  The slave is started manually with 'java -jar agent.jar -jnlpUrl http://jenkins21902:8080/computer/Windows10_Manual/slave-agent.jnlp -workDir "" '.

          Karl Wirth added a comment - In addition to Paul's comments above note that I have installed 2.190.2 and P4Plugin 1.10.6 and I cannot reproduce the errors above on my Windows 10 build slave that runs Oracle Java version "1.8.0_77".  The slave is started manually with 'java -jar agent.jar -jnlpUrl http://jenkins21902:8080/computer/Windows10_Manual/slave-agent.jnlp -workDir "" '.

          Ken Morse added a comment -

          I got suspicious that maybe the Jenkins cache (%USERPROFILE%\.jenkins\cache) had become corrupt so I deleted the folder and restarted the agent. That completely corrected the problem reported. I can't say why this happened in the first place or why the P4 plugin was singled out, but all seems well now. Thank you p4paul and p4karl.

          Ken Morse added a comment - I got suspicious that maybe the Jenkins cache (%USERPROFILE%\.jenkins\cache) had become corrupt so I deleted the folder and restarted the agent. That completely corrected the problem reported. I can't say why this happened in the first place or why the P4 plugin was singled out, but all seems well now. Thank you p4paul and p4karl .

          Paul Allen added a comment -

          Issue resolved.

          Paul Allen added a comment - Issue resolved.
          Paul Allen made changes -
          Assignee New: Paul Allen [ p4paul ]
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

          Karl Wirth added a comment -

          Hi klm - Great that it's solved and thanks for letting us know.

          Karl Wirth added a comment - Hi klm - Great that it's solved and thanks for letting us know.

            p4paul Paul Allen
            klm Ken Morse
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: