[JIRA] (JENKINS-38148) NullPointerException in AccuRev Launcher

5 views
Skip to first unread message

mark.berchem@cerner.com (JIRA)

unread,
Sep 12, 2016, 2:09:03 PM9/12/16
to jenkinsc...@googlegroups.com
Mark Berchem created an issue
 
Jenkins / Bug JENKINS-38148
NullPointerException in AccuRev Launcher
Issue Type: Bug Bug
Assignee: Joseph Petersen
Components: accurev-plugin
Created: 2016/Sep/12 6:08 PM
Environment: Jenkins 2.21 running standalone (not in container)
Accurev plugin 0.7.0 fails (0.6.35 does not fail)
Windows 8.1
java.vendor Oracle Corporation
java version: 1.8.0_20
Labels: plugin
Priority: Minor Minor
Reporter: Mark Berchem

With Accurev 0.6.35 plugin:

10:34:55 [workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" setproperty -H usmlvv1prodv01:5050 -s HDX-INTGCODE_ELRF -r style <style><color><background-color>#FFFFFF</background-color></color></style>
10:34:55 FATAL: You are not authorized to perform this operation.
10:34:55 Setting "text" property "style" on "stream" is an admin function:
10:34:55 server_admin_trig: You are not in the Depot Admin or User Admin group.
10:34:55
10:34:55 FATAL: Failed authentication. (failed with exit code 1 )

and the build continues.

With Accurev 0.7.0 plugin:

[workspace] $ "C:\Program Files (x86)\AccuRev\bin\accurev.exe" setproperty -H usmlvv1prodv01:5050 -s HDX-INTGCODE_ELRF -r style <style><color><background-color>#FFFFFF</background-color></color></style>
10:33:36 FATAL: You are not authorized to perform this operation.
10:33:36 Setting "text" property "style" on "stream" is an admin function:
10:33:36 server_admin_trig: You are not in the Depot Admin or User Admin group.
10:33:36
10:33:36 FATAL: Failed authentication. (failed with exit code 1 )
10:33:36 FATAL: null
10:33:36 java.lang.NullPointerException
10:33:36 at hudson.plugins.accurev.AccurevLauncher.runCommand(AccurevLauncher.java:146)
10:33:36 at hudson.plugins.accurev.cmd.SetProperty.setproperty(SetProperty.java:42)
10:33:36 at hudson.plugins.accurev.delegates.AbstractModeDelegate.setStreamColor(AbstractModeDelegate.java:308)
10:33:36 at hudson.plugins.accurev.delegates.AbstractModeDelegate.checkout(AbstractModeDelegate.java:189)
10:33:36 at hudson.plugins.accurev.AccurevSCM.checkout(AccurevSCM.java:338)
10:33:36 at hudson.scm.SCM.checkout(SCM.java:495)
10:33:36 at hudson.model.AbstractProject.checkout(AbstractProject.java:1278)
10:33:36 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:604)
10:33:36 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
10:33:36 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
10:33:36 at hudson.model.Run.execute(Run.java:1720)
10:33:36 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
10:33:36 at hudson.model.ResourceController.execute(ResourceController.java:98)
10:33:36 at hudson.model.Executor.run(Executor.java:404)

and the build fails.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

mark.berchem@cerner.com (JIRA)

unread,
Sep 12, 2016, 4:50:02 PM9/12/16
to jenkinsc...@googlegroups.com
Mark Berchem updated an issue
Change By: Mark Berchem
Priority: Minor Major

josephp90@gmail.com (JIRA)

unread,
Sep 14, 2016, 5:11:04 AM9/14/16
to jenkinsc...@googlegroups.com
Joseph Petersen commented on Bug JENKINS-38148
 
Re: NullPointerException in AccuRev Launcher

Have you considered giving your jenkins accurev login admin privileges?

Trying to capture these null pointers that can occur with runCommand

scm_issue_link@java.net (JIRA)

unread,
Sep 15, 2016, 11:55:01 AM9/15/16
to jenkinsc...@googlegroups.com

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.

mark.berchem@cerner.com (JIRA)

unread,
Sep 16, 2016, 2:36:01 PM9/16/16
to jenkinsc...@googlegroups.com

I saw that the AccuRev Plugin version 0.7.1 was available. I installed it and verified that it fixed the NullPointerException referenced above. I especially like the new checkbox for turning off the color change commands entirely (with off being the default).

josephp90@gmail.com (JIRA)

unread,
Sep 19, 2016, 6:42:05 AM9/19/16
to jenkinsc...@googlegroups.com
Joseph Petersen resolved as Fixed
 

Fixed issue with null pointer and added enable/disable for the color commands.

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

josephp90@gmail.com (JIRA)

unread,
Mar 7, 2020, 1:07:48 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