[JIRA] [itemcategories-plugin] (JENKINS-34648) Cannot create new items after upgrade to 2.1

17 views
Skip to first unread message

yannick.marcon@obiba.org (JIRA)

unread,
May 6, 2016, 12:02:01 PM5/6/16
to jenkinsc...@googlegroups.com
Yannick Marcon created an issue
 
Jenkins / Bug JENKINS-34648
Cannot create new items after upgrade to 2.1
Issue Type: Bug Bug
Assignee: Manuel Jesús Recena Soto
Components: itemcategories-plugin
Created: 2016/May/06 4:01 PM
Environment: Install from debian package
Priority: Critical Critical
Reporter: Yannick Marcon

I just upgraded from version 1.558 to 2.1 and after restart I have some NoSuchMethodError errors.

When clicking on "New Item", the resulting page is blank and the same error appear in the logs. The rest of the application seems to be operational.

java.lang.NoSuchMethodError: hudson.model.Messages.ExternalJob_DisplayName()Ljava/lang/String;
	at hudson.model.ExternalJob$DescriptorImpl.getDisplayName(ExternalJob.java:132)
	at hudson.ExtensionComponent.compareTo(ExtensionComponent.java:97)
	at hudson.ExtensionComponent.compareTo(ExtensionComponent.java:42)
	at java.util.ComparableTimSort.binarySort(ComparableTimSort.java:258)
	at java.util.ComparableTimSort.sort(ComparableTimSort.java:203)
	at java.util.Arrays.sort(Arrays.java:1312)
	at java.util.Arrays.sort(Arrays.java:1506)
	at java.util.ArrayList.sort(ArrayList.java:1454)
	at java.util.Collections.sort(Collections.java:141)
	at hudson.ExtensionList.sort(ExtensionList.java:369)
	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:289)
	at hudson.ExtensionList.getComponents(ExtensionList.java:167)
	at hudson.DescriptorExtensionList.load(DescriptorExtensionList.java:185)
	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:287)
	at hudson.ExtensionList.iterator(ExtensionList.java:156)
	at hudson.ExtensionList.get(ExtensionList.java:147)
	at com.cloudbees.jenkins.GitHubPushTrigger$DescriptorImpl.get(GitHubPushTrigger.java:329)
	at org.jenkinsci.plugins.github.migration.Migrator.migrate(Migrator.java:40)
	at org.jenkinsci.plugins.github.GitHubPlugin.postInitialize(GitHubPlugin.java:39)
	at hudson.PluginManager$2$1$2.run(PluginManager.java:433)
	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
	at jenkins.model.Jenkins$8.runTask(Jenkins.java:1011)
	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

I do not know if it's relevant but I can see other errors in the logs:

Caused by: java.lang.NullPointerException
        at hudson.plugins.analysis.core.HealthReportBuilder.computeHealth(HealthReportBuilder.java:47)
        at hudson.plugins.analysis.core.AbstractResultAction.getBuildHealth(AbstractResultAction.java:87)
        at hudson.model.Job.getBuildHealthReports(Job.java:1122)
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

yannick.marcon@obiba.org (JIRA)

unread,
May 6, 2016, 12:03:02 PM5/6/16
to jenkinsc...@googlegroups.com
Yannick Marcon updated an issue
Change By: Yannick Marcon
I just upgraded from version 1.558 to 2.1 and after restart I have some NoSuchMethodError errors.

When clicking on "New Item", the resulting page is blank and the same error appear in the logs. The rest of the application seems to be operational.

{code}
WARNING: Error while serving https://ci.obiba.org/view/All/itemCategories
...
{code}


I do not know if it's relevant but I can see other errors in the logs: 

{code}

Caused by: java.lang.NullPointerException
        at hudson.plugins.analysis.core.HealthReportBuilder.computeHealth(HealthReportBuilder.java:47)
        at hudson.plugins.analysis.core.AbstractResultAction.getBuildHealth(AbstractResultAction.java:87)
        at hudson.model.Job.getBuildHealthReports(Job.java:1122)
{code}

yannick.marcon@obiba.org (JIRA)

unread,
May 6, 2016, 12:06:01 PM5/6/16
to jenkinsc...@googlegroups.com
Caused by: java.lang.NoSuchMethodError: hudson.model.Messages.ExternalJob_DisplayName()Ljava/lang/String;
at hudson.model.ExternalJob$DescriptorImpl.getDisplayName(ExternalJob.java:132)
at hudson.model.View.doItemCategories(View.java:1058)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:320)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:163)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
{code}
I do not know if it's relevant but I can see other errors in the logs: 

{code}
Caused by: java.lang.NullPointerException
        at hudson.plugins.analysis.core.HealthReportBuilder.computeHealth(HealthReportBuilder.java:47)
        at hudson.plugins.analysis.core.AbstractResultAction.getBuildHealth(AbstractResultAction.java:87)
        at hudson.model.Job.getBuildHealthReports(Job.java:1122)
{code}

recena@gmail.com (JIRA)

unread,
May 7, 2016, 4:26:01 AM5/7/16
to jenkinsc...@googlegroups.com
Manuel Jesús Recena Soto commented on Bug JENKINS-34648
 
Re: Cannot create new items after upgrade to 2.1

Yannick Marcon How are you using this plugin? There are no releases.

recena@gmail.com (JIRA)

unread,
May 7, 2016, 4:30:01 AM5/7/16
to jenkinsc...@googlegroups.com
Manuel Jesús Recena Soto updated an issue
 
Change By: Manuel Jesús Recena Soto
Component/s: core
Component/s: itemcategories-plugin

recena@gmail.com (JIRA)

unread,
May 7, 2016, 4:31:02 AM5/7/16
to jenkinsc...@googlegroups.com
 
Re: Cannot create new items after upgrade to 2.1

I've updated the component field. This feature is provided by core.

recena@gmail.com (JIRA)

unread,
May 7, 2016, 4:32:01 AM5/7/16
to jenkinsc...@googlegroups.com
Manuel Jesús Recena Soto assigned an issue to Unassigned
 
Assignee: Manuel Jesús Recena Soto

dbeck@cloudbees.com (JIRA)

unread,
May 7, 2016, 8:35:01 AM5/7/16
to jenkinsc...@googlegroups.com
Daniel Beck commented on Bug JENKINS-34648
 
Re: Cannot create new items after upgrade to 2.1

Which version of the Monitor External Jobs plugin is this?

dbeck@cloudbees.com (JIRA)

unread,
May 7, 2016, 8:37:02 AM5/7/16
to jenkinsc...@googlegroups.com
Daniel Beck started work on Bug JENKINS-34648
 
Change By: Daniel Beck
Status: Open In Progress

dbeck@cloudbees.com (JIRA)

unread,
May 7, 2016, 8:37:02 AM5/7/16
to jenkinsc...@googlegroups.com
Daniel Beck stopped work on Bug JENKINS-34648
 
Change By: Daniel Beck
Status: In Progress Open

dbeck@cloudbees.com (JIRA)

unread,
May 7, 2016, 8:38:01 AM5/7/16
to jenkinsc...@googlegroups.com
Daniel Beck resolved as Won't Fix
 

Caused by https://github.com/jenkinsci/external-monitor-job-plugin/commit/4175bb5f4fefe0fd7ffa73e195bd65233f83bdf5 and resolved by upgrading the External Monitor Job Plugin to 1.4.

Change By: Daniel Beck
Status: Open Resolved
Resolution: Won't Fix

aheritier@apache.org (JIRA)

unread,
Jul 22, 2016, 4:40:01 AM7/22/16
to jenkinsc...@googlegroups.com
Arnaud Héritier commented on Bug JENKINS-34648
 
Re: Cannot create new items after upgrade to 2.1

Daniel Beck I need to investigate but based on this comment from Frédéric DROUET on http://stackoverflow.com/a/38519615 it seems that the problem comes back with External Monitor Job Plugin 1.5

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

aheritier@apache.org (JIRA)

unread,
Jul 22, 2016, 4:43:01 AM7/22/16
to jenkinsc...@googlegroups.com

But 1.5 is supposed to add the categorisation for Jenkins 2. I'm lost .. I need to test/investigate

recena@gmail.com (JIRA)

unread,
Jul 22, 2016, 6:18:02 AM7/22/16
to jenkinsc...@googlegroups.com

Arnaud Héritier In a fresh installation works fine (Jenkin 2.7.1 LTS + External Monitor Job Plugin 1.5).

recena@gmail.com (JIRA)

unread,
Jul 22, 2016, 6:19:05 AM7/22/16
to jenkinsc...@googlegroups.com
Manuel Recena Soto edited a comment on Bug JENKINS-34648
[~aheritier] In a fresh installation works fine (Jenkin {{ 2.7.1 }} LTS + External Monitor Job Plugin {{ 1.5 }} ).

dev@tarpoon.org (JIRA)

unread,
Jul 22, 2016, 6:20:02 AM7/22/16
to jenkinsc...@googlegroups.com

Mine was just upgraded from an 1.x version

aheritier@apache.org (JIRA)

unread,
Jul 22, 2016, 6:26:01 AM7/22/16
to jenkinsc...@googlegroups.com

Manuel Recena Soto I agree. I did the test too. With a fresh install it is ok. Seems to be a problem with the upgrade or a combination with another plugin.

dev@tarpoon.org (JIRA)

unread,
Jul 22, 2016, 6:27:01 AM7/22/16
to jenkinsc...@googlegroups.com
Frédéric DROUET edited a comment on Bug JENKINS-34648
Mine was just upgraded from an 1. x 642.4 version

recena@gmail.com (JIRA)

unread,
Jul 22, 2016, 6:32:01 AM7/22/16
to jenkinsc...@googlegroups.com

Arnaud Héritier A restart is required after upgrading the plugin. A new issue should be filed with the right component to track this investigation.

aheritier@apache.org (JIRA)

unread,
Jul 22, 2016, 6:40:01 AM7/22/16
to jenkinsc...@googlegroups.com
Arnaud Héritier updated an issue
 
Change By: Arnaud Héritier
Attachment: Screenshot 2016-07-22 12.35.13.png

aheritier@apache.org (JIRA)

unread,
Jul 22, 2016, 6:43:02 AM7/22/16
to jenkinsc...@googlegroups.com
Arnaud Héritier updated an issue
Change By: Arnaud Héritier
Attachment: Screenshot 2016-07-22 12.41.31.png

aheritier@apache.org (JIRA)

unread,
Jul 22, 2016, 6:44:01 AM7/22/16
to jenkinsc...@googlegroups.com
Arnaud Héritier commented on Bug JENKINS-34648
 
Re: Cannot create new items after upgrade to 2.1

I test an upgrade from 1.642.4 to 2.7.1 and it is ok. The plugin is always in version 1.4

I try to upgrade all plugins and it is also ok

I will analyse more deeply with Frédéric DROUET and will open a dedicated issue with more details

recena@gmail.com (JIRA)

unread,
Jul 22, 2016, 6:49:02 AM7/22/16
to jenkinsc...@googlegroups.com

Arnaud Héritier, note that in the first screenshot the icon is not shown because the item categorization was provided as of 1.5.

aheritier@apache.org (JIRA)

unread,
Jul 22, 2016, 7:14:01 AM7/22/16
to jenkinsc...@googlegroups.com

Manuel Recena Soto yes exactly. It is what 1.5 release brings.
I tried to start an instance from a Frédéric DROUET bundle to reproduce the environment with the same set of plugins and I don't reproduce it too.
We will continue to debug on his instance to see what could be specific in his environment to produce this problem

recena@gmail.com (JIRA)

unread,
Jul 22, 2016, 7:31:02 AM7/22/16
to jenkinsc...@googlegroups.com

dbeck@cloudbees.com (JIRA)

unread,
Jul 22, 2016, 9:01:03 AM7/22/16
to jenkinsc...@googlegroups.com

aheritier@apache.org (JIRA)

unread,
Jul 22, 2016, 10:08:02 AM7/22/16
to jenkinsc...@googlegroups.com

Daniel BeckManuel Recena Soto I identified the bug. It is different and affecting only the latest version of the plugin : JENKINS-36875

recena@gmail.com (JIRA)

unread,
Jul 22, 2016, 1:10:01 PM7/22/16
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages