[JIRA] (JENKINS-37621) Post-Build Checkpoint fail with NoSuchElementException

0 views
Skip to first unread message

MarcusDilger@mdnetz.com (JIRA)

unread,
Aug 23, 2016, 8:21:07 AM8/23/16
to jenkinsc...@googlegroups.com
Marcus Dilger created an issue
 
Jenkins / Bug JENKINS-37621
Post-Build Checkpoint fail with NoSuchElementException
Issue Type: Bug Bug
Assignee: PTC ALM
Components: integrity-plugin
Created: 2016/Aug/23 12:20 PM
Environment: Jenkins 1.656
integrity-plugin:2.0.1
Priority: Major Major
Reporter: Marcus Dilger

I got an error in Check Point Post Build action :

Preparing to execute si checkpoint for #s=Software/Software.pj#s=Service/Service.pj#s=src.main/src.main.pj
ERROR: Build step failed with exception
java.util.NoSuchElementException: #s=Software/Software.pj#s=Service/Service.pj#s=src.main/src.main.pj
at com.mks.api.response.impl.ResponseContainer.getWorkItem(ResponseContainer.java:125)
at com.mks.api.response.impl.XMLResponseContainer.getWorkItem(XMLResponseContainer.java:286)
at com.mks.api.response.impl.DelegatedResponseContainer.getWorkItem(DelegatedResponseContainer.java:213)
at hudson.scm.IntegrityCheckpointAction.perform(IntegrityCheckpointAction.java:296)
at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
at hudson.model.Build$BuildExecution.post2(Build.java:185)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
at hudson.model.Run.execute(Run.java:1763)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Build step 'Integrity - CM Checkpoint' marked build as failure

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

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Oct 6, 2016, 6:59:06 AM10/6/16
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-37621
 
Re: Post-Build Checkpoint fail with NoSuchElementException

Hi Marcus, we tried reproducing this issue with a #s project configuration, but unable to reproduce this. Could you attach the IntegritySCM log (Log Level : All ) for the entire build (Refer Troubleshooting section in https://wiki.jenkins-ci.org/display/JENKINS/PTC+Integrity+Plugin%20#Troubleshooting)

MarcusDilger@mdnetz.com (JIRA)

unread,
Oct 6, 2016, 7:55:01 AM10/6/16
to jenkinsc...@googlegroups.com
Marcus Dilger updated an issue
 
Change By: Marcus Dilger
Attachment: DetailLog_2016-10-06.txt

MarcusDilger@mdnetz.com (JIRA)

unread,
Oct 6, 2016, 7:56:01 AM10/6/16
to jenkinsc...@googlegroups.com
Marcus Dilger commented on Bug JENKINS-37621
 
Re: Post-Build Checkpoint fail with NoSuchElementException

Hi. Thank you for Investigation.

Log attached.

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Oct 7, 2016, 7:52:01 AM10/7/16
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-37621

Hi Marcus,
Thanks for the log. It is surprising that the IntegritySCM log shows post build si checkpoint successful:
si checkpoint --user=build_User --port=7002 --hostname=company-ptc13 --project=#p=p:/Projects/User/User.pj#s=Software/Software.pj#s=Service/Service.pj#s=src.main/src.main.pj --label=PUser_ServiceSw_x86_0.1.1610.06002_Test --description=PUser_ServiceSw_x86_0.1.1610.06002_Test – returned exit code 0
but the console log throws up an error.

Are you using any other SCM plugins in conjunction with the Integrity plugin? Also is it possible for you to share your job configuration so that we can see any anomaly? You can get the job configuration xml file using http://<jenkins_server>:8080/jenkins/job/<job name>/config.xml

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Oct 7, 2016, 7:53:01 AM10/7/16
to jenkinsc...@googlegroups.com
PTC ALM edited a comment on Bug JENKINS-37621
Hi Marcus,
Thanks for the log. It is surprising that the IntegritySCM log shows post build si checkpoint successful:
si checkpoint --user=build_User --port=7002 --hostname=company-ptc13 --project=#p=p:/Projects/User/User.pj#s=Software/Software.pj#s=Service/Service.pj#s=src.main/src.main.pj --label=PUser_ServiceSw_x86_0.1.1610.06002_Test --description=PUser_ServiceSw_x86_0.1.1610.06002_Test -- returned exit code 0
but the console log throws up an error.

Are you using any other SCM plugins in conjunction with the Integrity plugin? Also is it possible for you to share your job configuration so that we can see any anomaly? You can get the job configuration xml file using http://<jenkins_server>:8080/jenkins/job/<job name>/config.xml .

Also please let us know the Integrity Server version you are using.

MarcusDilger@mdnetz.com (JIRA)

unread,
Oct 7, 2016, 9:43:02 AM10/7/16
to jenkinsc...@googlegroups.com

MarcusDilger@mdnetz.com (JIRA)

unread,
Oct 7, 2016, 9:49:05 AM10/7/16
to jenkinsc...@googlegroups.com
Marcus Dilger commented on Bug JENKINS-37621
 
Re: Post-Build Checkpoint fail with NoSuchElementException

Hi, just add the config xml.

Server Version i dont know. Client Version is 10.8

I found a plugin named SCM API PlugIn.

You are right, the checkpoint is also done and visible in the client, but unfortunately build in jenkins is marked as 'fail'.

Regards

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Oct 10, 2016, 7:35:01 AM10/10/16
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-37621

Hi Marcus,

The config xml shows a few plugins installed, but we don't think those are connected with this issue. After a bit of digging in, we believe what is happening is that Integrity Server is not returning back the checkpoint revision (after successfully checkpointing in Integrity), so when the plugin tries to read the Integrity-returned checkpoint, it is not able to do so and throws up this error.

Could you check/attach the Integrity server log for this specific case and see if it shows up any error while returning back a response for the checkpoint operation?

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Oct 17, 2016, 4:51:01 AM10/17/16
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-37621

Hi Marcus,
Will you able to get the server logs soon?

MarcusDilger@mdnetz.com (JIRA)

unread,
Oct 17, 2016, 4:56:01 AM10/17/16
to jenkinsc...@googlegroups.com
Marcus Dilger edited a comment on Bug JENKINS-37621
Hi,
soory sorry for delay, i will talk to our IT within this week to get the server logs.

Regards
Marcus

MarcusDilger@mdnetz.com (JIRA)

unread,
Oct 17, 2016, 4:56:01 AM10/17/16
to jenkinsc...@googlegroups.com

Hi,
soory for delay, i will talk to our IT within this week to get the server logs.

Regards
Marcus

MarcusDilger@mdnetz.com (JIRA)

unread,
Oct 17, 2016, 4:57:01 AM10/17/16
to jenkinsc...@googlegroups.com
Marcus Dilger edited a comment on Bug JENKINS-37621
Hi,
sorry for delay, i will talk to our IT within this week
and try to get the server logs.

Regards
Marcus

MarcusDilger@mdnetz.com (JIRA)

unread,
Oct 20, 2016, 7:11:02 AM10/20/16
to jenkinsc...@googlegroups.com

Hi,
our IT could help and will provide the server logs. To generate the logs i will again start the jenkins build which have that issue. Befor we start logging, did you need special settings for that log (e.g. log level ect) ?

Thanks,
Marcus

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Oct 21, 2016, 6:41:01 AM10/21/16
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-37621

Hi Marcus,

Please uncomment the below loggers in logger.properties file to enable them.

1. #mksis.logger.message.includeCategory.API=10
2. #mksis.logger.exception.includeCategory.API=10
3. #mksis.logger.message.includeCategory.DEBUG=10

MarcusDilger@mdnetz.com (JIRA)

unread,
Oct 26, 2016, 7:16:01 AM10/26/16
to jenkinsc...@googlegroups.com

MarcusDilger@mdnetz.com (JIRA)

unread,
Oct 26, 2016, 7:16:02 AM10/26/16
to jenkinsc...@googlegroups.com
Marcus Dilger commented on Bug JENKINS-37621
 
Re: Post-Build Checkpoint fail with NoSuchElementException

Hi. I'm attached the log from ptc server of failed checkpoint operation.

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Nov 14, 2016, 4:29:15 AM11/14/16
to jenkinsc...@googlegroups.com
PTC ALM commented on Bug JENKINS-37621

Hi Marcus,

I tried figuring out the problem from the server logs that you sent. However, I am unable to diagnose the problem that the Integrity Server is throwing up in your case. Since this is not a problem with the plugin as such and the Integrity Server is throwing up an exception, we recommend contacting the PTC ILM Tech support team so they can look into your environment and see why the Integrity Server is throwing up an exception in your case,

MarcusDilger@mdnetz.com (JIRA)

unread,
Nov 15, 2016, 3:14:01 AM11/15/16
to jenkinsc...@googlegroups.com

Hi,
thank you for dive in and investigate the problem.

I will report this forward to PTC.

Regards
Marcus

integrity_jenkins_plugin@ptc.com (JIRA)

unread,
Feb 10, 2017, 4:40:01 AM2/10/17
to jenkinsc...@googlegroups.com
PTC ALM closed an issue as Won't Fix
 

Closing this issue since this is not a plugin issue. If there are further queries, please raise a new JIRA request

Change By: PTC ALM
Status: Open Closed
Resolution: Won't Fix
Reply all
Reply to author
Forward
0 new messages