Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-31779

javax.servlet.ServletException Caused by: org.apache.commons.jelly.JellyTagException: in PIT Mutation Report

      Steps followed :
      1.Installed PIT Mutation Plugin ---version :1.0-13.
      2. Ran Pit tests , which generated mutations.xml and other html files in (target/pit-reports/*)
      3. Click on the ninja icon(PIT Mutation Report) in Jenkins job.
      4. getting below exception

      Caused by: org.apache.commons.jelly.JellyTagException: jar:file:/upapps/tmx/ci/plugins/pitmutation/WEB-INF/lib/classes.jar!/org/jenkinsci/plugins/pitmutation/PitProjectAction/nodata.jelly:4:64: <st:include> No page found 'sidepanel.jelly' for class org.jenkinsci.plugins.pitmutation.PitProjectAction

      Please find attached stack trace .

      Thanks,
      Firozkhan

          [JENKINS-31779] javax.servlet.ServletException Caused by: org.apache.commons.jelly.JellyTagException: in PIT Mutation Report

          Leroy Kendall added a comment - - edited

          I was able to fix this. Here is the diff:

          ---- src/main/java/org/jenkinsci/plugins/pitmutation/PitProjectAction.java ----
          index e7a76b4..73a7b7c 100644
          @@ -15,12 +15,16 @@ public class PitProjectAction extends Actionable implements ProminentProjectActi
             public PitProjectAction(AbstractProject<?, ?> project) {
               this.project = project;
           
          -    PitPublisher cp = (PitPublisher) project.getPublishersList().get(PitPublisher.DESCRIPTOR);
          +//    PitPublisher cp = (PitPublisher) project.getPublishersList().get(PitPublisher.DESCRIPTOR);
           //    if (cp != null) {
           //      onlyStable = cp.getOnlyStable();
           //    }
             }
           
          +  public AbstractProject<?, ?> getProject() {
          +    return project;
          +  }
          +
             /**
              * Getter for property 'lastResult'.
              *
          

          Leroy Kendall added a comment - - edited I was able to fix this. Here is the diff: ---- src/main/java/org/jenkinsci/plugins/pitmutation/PitProjectAction.java ---- index e7a76b4..73a7b7c 100644 @@ -15,12 +15,16 @@ public class PitProjectAction extends Actionable implements ProminentProjectActi public PitProjectAction(AbstractProject<?, ?> project) { this .project = project; - PitPublisher cp = (PitPublisher) project.getPublishersList().get(PitPublisher.DESCRIPTOR); + // PitPublisher cp = (PitPublisher) project.getPublishersList().get(PitPublisher.DESCRIPTOR); // if (cp != null ) { // onlyStable = cp.getOnlyStable(); // } } + public AbstractProject<?, ?> getProject() { + return project; + } + /** * Getter for property 'lastResult' . *

          Firoz Khan added a comment -

          Great to see fix, Thank you Leroy Kendall . All these days as alternative I have configured HTML report to show up PIT results in CI.

          Firoz Khan added a comment - Great to see fix, Thank you Leroy Kendall . All these days as alternative I have configured HTML report to show up PIT results in CI.

          Code changed in jenkins
          User: Ed Kimber
          Path:
          src/main/java/org/jenkinsci/plugins/pitmutation/PitProjectAction.java
          http://jenkins-ci.org/commit/pitmutation-plugin/aa2a09a00c8854fc08e9af819500c5fc9beb58f3
          Log:
          JENKINS-31779 Fix by Leroy Kendall

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ed Kimber Path: src/main/java/org/jenkinsci/plugins/pitmutation/PitProjectAction.java http://jenkins-ci.org/commit/pitmutation-plugin/aa2a09a00c8854fc08e9af819500c5fc9beb58f3 Log: JENKINS-31779 Fix by Leroy Kendall

          Edward Kimber added a comment -

          leroykendall Thanks very much for the fix!! I have put your changes in a new release which should show up in the update center soon.

          Edward Kimber added a comment - leroykendall Thanks very much for the fix!! I have put your changes in a new release which should show up in the update center soon.

          edwardk Stil have the same problem with 1.0-13 and there is no newer version yet. Probably you are very busy. It would be appreciated this fix is released? Can we help?

          Michel Breevoort added a comment - edwardk Stil have the same problem with 1.0-13 and there is no newer version yet. Probably you are very busy. It would be appreciated this fix is released? Can we help?

          Igor Lubenets added a comment -

          Hello edwardk,

          could you please say, when are you going to release new version? We have the same problem as described.

          Igor Lubenets added a comment - Hello edwardk , could you please say, when are you going to release new version? We have the same problem as described.

          ilubenets to workaround this issue I suggest just to downgrade maven.pitest.plugin.version to 1.1.9

          Andrew Khalymon added a comment - ilubenets to workaround this issue I suggest just to downgrade maven.pitest.plugin.version to 1.1.9

          Igor Lubenets added a comment -

          akhalymon yes, it works on version 1.1.9. Thanks a lot!

          Igor Lubenets added a comment - akhalymon yes, it works on version 1.1.9. Thanks a lot!

          Michel Breevoort added a comment - - edited

          akhalymon Thnx, with version 1.1.9 it works

          Michel Breevoort added a comment - - edited akhalymon Thnx, with version 1.1.9 it works

          Sean Flanigan added a comment -

          Seems like it might be a duplicate.

          Sean Flanigan added a comment - Seems like it might be a duplicate.

            edwardk Edward Kimber
            firozkhan408 firoz khan
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: