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

NullPointerException in Update CMD when hostname was resolved to IP

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • accurev-plugin
    • Jenkins 2.7.4, any version version of accurev

      Issue is related to unix: Set hostname FQDN
      Can be resolved with setting hostname FQDN

      The exception does not reveal the actual issue but looking into the workspace part I was able to determine that Accurev does not approve of workspaces being assigned to IP addresses.

      [workspacepolltest] $ /Applications/AccuRev/bin/accurev update -H snip:5050 -fx
      FATAL: <?xml version="1.0" encoding="utf-8"?>
      <acResponse
          command="update"
          TaskId="1737"/>
      You are not in a directory associated with a workspace
      FATAL: Failed authentication. (failed with exit code 1 )
      FATAL: null
      java.lang.NullPointerException
      	at hudson.plugins.accurev.cmd.Update.performUpdate(Update.java:111)
      	at hudson.plugins.accurev.delegates.ReftreeDelegate.doUpdate(ReftreeDelegate.java:148)
      	at hudson.plugins.accurev.delegates.ReftreeDelegate.checkout(ReftreeDelegate.java:142)
      	at hudson.plugins.accurev.delegates.AbstractModeDelegate.checkout(AbstractModeDelegate.java:191)
      	at hudson.plugins.accurev.AccurevSCM.checkout(AccurevSCM.java:338)
      	at hudson.scm.SCM.checkout(SCM.java:485)
      	at hudson.model.AbstractProject.checkout(AbstractProject.java:1269)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
      	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
      	at hudson.model.Run.execute(Run.java:1741)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:410)
      Finished: FAILURE
      

          [JENKINS-38201] NullPointerException in Update CMD when hostname was resolved to IP

          Code changed in jenkins
          User: Joseph
          Path:
          .gitignore
          src/main/java/hudson/plugins/accurev/AccurevLauncher.java
          src/main/java/hudson/plugins/accurev/AccurevSCM.java
          src/main/java/hudson/plugins/accurev/DetermineRemoteHostname.java
          src/main/java/hudson/plugins/accurev/cmd/ChangeLogCmd.java
          src/main/java/hudson/plugins/accurev/cmd/PopulateCmd.java
          src/main/java/hudson/plugins/accurev/cmd/Update.java
          src/main/java/hudson/plugins/accurev/delegates/AbstractModeDelegate.java
          src/main/java/hudson/plugins/accurev/parsers/xml/ParseHistory.java
          src/main/resources/hudson/plugins/accurev/AccurevSCM/global.jelly
          src/main/webapp/help/use-color.html
          http://jenkins-ci.org/commit/accurev-plugin/54cb79967006982752154c27f49e435154d85e9b
          Log:
          NullPointer fixes. better hostname handling. Toggle streamColor. (#27)

          • ignore .DS_Store file

          Cannot prevent bad DNS/Hostname config.

          cannot prevent bad DNS/Hostname.

          • [JENKINS-33103, JENKINS-38148] added toggle for color reset.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Joseph Path: .gitignore src/main/java/hudson/plugins/accurev/AccurevLauncher.java src/main/java/hudson/plugins/accurev/AccurevSCM.java src/main/java/hudson/plugins/accurev/DetermineRemoteHostname.java src/main/java/hudson/plugins/accurev/cmd/ChangeLogCmd.java src/main/java/hudson/plugins/accurev/cmd/PopulateCmd.java src/main/java/hudson/plugins/accurev/cmd/Update.java src/main/java/hudson/plugins/accurev/delegates/AbstractModeDelegate.java src/main/java/hudson/plugins/accurev/parsers/xml/ParseHistory.java src/main/resources/hudson/plugins/accurev/AccurevSCM/global.jelly src/main/webapp/help/use-color.html http://jenkins-ci.org/commit/accurev-plugin/54cb79967006982752154c27f49e435154d85e9b Log: NullPointer fixes. better hostname handling. Toggle streamColor. (#27) ignore .DS_Store file JENKINS-38148 Handle some null pointers. Cannot prevent bad DNS/Hostname config. JENKINS-38201 Partial fix cannot prevent bad DNS/Hostname. [JENKINS-33103, JENKINS-38148] added toggle for color reset. JENKINS-38201 Better error message

          Issue can be resolved with setting hostname FQDN

          Joseph Petersen (old) added a comment - Issue can be resolved with setting hostname FQDN

            jetersen Joseph Petersen
            casz Joseph Petersen (old)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: