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

0 views
Skip to first unread message

josephp90@gmail.com (JIRA)

unread,
Sep 14, 2016, 10:55:02 AM9/14/16
to jenkinsc...@googlegroups.com
Joseph Petersen created an issue
 
Jenkins / Improvement JENKINS-38201
NullPointerException in Update CMD when hostname was resolved to IP
Issue Type: Improvement Improvement
Assignee: Joseph Petersen
Components: accurev-plugin
Created: 2016/Sep/14 2:54 PM
Environment: Jenkins 2.7.4, accurev-plugin 0.6.35 & 0.7.0
Labels: plugin exception
Priority: Minor Minor
Reporter: Joseph Petersen

Issue is related somewhat to UNIX/OSX: Set 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
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

josephp90@gmail.com (JIRA)

unread,
Sep 14, 2016, 10:55:03 AM9/14/16
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Sep 15, 2016, 11:56:05 AM9/15/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-38201
 
Re: 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.

josephp90@gmail.com (JIRA)

unread,
Sep 21, 2016, 3:01:04 AM9/21/16
to jenkinsc...@googlegroups.com
Joseph Petersen resolved as Fixed
 

Issue can be resolved with setting hostname FQDN

Change By: Joseph Petersen
Status: Open Resolved
Resolution: Fixed

josephp90@gmail.com (JIRA)

unread,
Feb 6, 2017, 7:27:01 AM2/6/17
to jenkinsc...@googlegroups.com
Joseph Petersen updated an issue


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.

{code:java}

[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
{code}

josephp90@gmail.com (JIRA)

unread,
Feb 6, 2017, 7:28:02 AM2/6/17
to jenkinsc...@googlegroups.com

josephp90@gmail.com (JIRA)

unread,
Feb 6, 2017, 7:28:02 AM2/6/17
to jenkinsc...@googlegroups.com

josephp90@gmail.com (JIRA)

unread,
Feb 6, 2017, 7:28:03 AM2/6/17
to jenkinsc...@googlegroups.com

josephp90@gmail.com (JIRA)

unread,
Feb 6, 2017, 7:28:03 AM2/6/17
to jenkinsc...@googlegroups.com

josephp90@gmail.com (JIRA)

unread,
Mar 7, 2020, 1:07:23 AM3/7/20
to jenkinsc...@googlegroups.com
Joseph Petersen assigned an issue to Joseph Petersen
Change By: Joseph Petersen
Assignee: Joseph Petersen (old)
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages