javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter from {"":["0","0","0","1","0"],"commitShaSource":{"stapler-class":"org.jenkinsci.plugins.github.status.sources.BuildDataRevisionShaSource","$class":"org.jenkinsci.plugins.github.status.sources.BuildDataRevisionShaSource"},"reposSource":{"stapler-class":"org.jenkinsci.plugins.github.status.sources.AnyDefinedRepositorySource","$class":"org.jenkinsci.plugins.github.status.sources.AnyDefinedRepositorySource"},"contextSource":{"stapler-class":"org.jenkinsci.plugins.github.status.sources.DefaultCommitContextSource","$class":"org.jenkinsci.plugins.github.status.sources.DefaultCommitContextSource"},"statusResultSource":{"stapler-class":"org.jenkinsci.plugins.github.status.sources.DefaultStatusResultSource","$class":"org.jenkinsci.plugins.github.status.sources.DefaultStatusResultSource"},"statusBackrefSource":{"stapler-class":"org.jenkinsci.plugins.github.status.sources.BuildRefBackrefSource","$class":"org.jenkinsci.plugins.github.status.sources.BuildRefBackrefSource"},"errorHandling":false,"stapler-class":"org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter","$class":"org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter"}

Google Groups | ken...@lausdahl.com (JIRA) | 5 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [JIRA] (JENKINS-38665) GitHub plugin Set status for GitHub commit throws exception on job save

    Google Groups | 5 months ago | ken...@lausdahl.com (JIRA)
    javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter from {"":["0","0","0","1","0"],"commitShaSource":{"stapler-class":"org.jenkinsci.plugins.github.status.sources.BuildDataRevisionShaSource","$class":"org.jenkinsci.plugins.github.status.sources.BuildDataRevisionShaSource"},"reposSource":{"stapler-class":"org.jenkinsci.plugins.github.status.sources.AnyDefinedRepositorySource","$class":"org.jenkinsci.plugins.github.status.sources.AnyDefinedRepositorySource"},"contextSource":{"stapler-class":"org.jenkinsci.plugins.github.status.sources.DefaultCommitContextSource","$class":"org.jenkinsci.plugins.github.status.sources.DefaultCommitContextSource"},"statusResultSource":{"stapler-class":"org.jenkinsci.plugins.github.status.sources.DefaultStatusResultSource","$class":"org.jenkinsci.plugins.github.status.sources.DefaultStatusResultSource"},"statusBackrefSource":{"stapler-class":"org.jenkinsci.plugins.github.status.sources.BuildRefBackrefSource","$class":"org.jenkinsci.plugins.github.status.sources.BuildRefBackrefSource"},"errorHandling":false,"stapler-class":"org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter","$class":"org.jenkinsci.plugins.github.status.GitHubCommitStatusSetter"}

    Root Cause Analysis

    1. org.kohsuke.stapler.NoStaplerConstructorException

      There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.github.status.sources.BuildRefBackrefSource

      at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames()
    2. Stapler
      RequestImpl$TypePair.convertJSON
      1. org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:177)
      2. org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:684)
      3. org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:81)
      4. org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:600)
      4 frames