You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2020/04/25 16:13:08 UTC

[jmeter] branch master updated: Bug 64378 - HTML report generation should not fail if a plugin has registered a graph and is not more present in classpath, issue a warning instead

This is an automated email from the ASF dual-hosted git repository.

pmouawad pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new 4231d54  Bug 64378 - HTML report generation should not fail if a plugin has registered a graph and is not more present in classpath, issue a warning instead
4231d54 is described below

commit 4231d543b3971d640d5161b56f64f08e3c23145e
Author: pmouawad <p....@ubik-ingenierie.com>
AuthorDate: Sat Apr 25 18:12:17 2020 +0200

    Bug 64378 - HTML report generation should not fail if a plugin has registered a graph and is not more present in classpath, issue a warning instead
---
 .../main/java/org/apache/jmeter/report/dashboard/ReportGenerator.java  | 3 +++
 xdocs/changes.xml                                                      | 1 +
 2 files changed, 4 insertions(+)

diff --git a/src/core/src/main/java/org/apache/jmeter/report/dashboard/ReportGenerator.java b/src/core/src/main/java/org/apache/jmeter/report/dashboard/ReportGenerator.java
index d34aa24..70bda72 100644
--- a/src/core/src/main/java/org/apache/jmeter/report/dashboard/ReportGenerator.java
+++ b/src/core/src/main/java/org/apache/jmeter/report/dashboard/ReportGenerator.java
@@ -355,6 +355,9 @@ public class ReportGenerator {
                     .excludesControllers() ? excludeControllerFilter
                     : nameFilter;
             entryPoint.addSampleConsumer(graph);
+        } catch (ClassNotFoundException ex) {
+            log.warn("Unable to add class:{} as consumer for HTML report generation, "
+                    + "check class name or that the plugin that contains it is on classpath", className, ex);
         } catch (ClassCastException | IllegalArgumentException |  ReflectiveOperationException | SecurityException ex) {
             String error = String.format(INVALID_CLASS_FMT, className);
             throw new GenerationException(error, ex);
diff --git a/xdocs/changes.xml b/xdocs/changes.xml
index 3b81fd9..4bc2c02 100644
--- a/xdocs/changes.xml
+++ b/xdocs/changes.xml
@@ -168,6 +168,7 @@ invalidated when tree selection changes.</p>
 
 <h3>Report / Dashboard</h3>
 <ul>
+  <li><bug>64378</bug>HTML report generation should not fail if a plugin has registered a graph and is not more present in classpath, issue a warning instead</li>
 </ul>
 
 <h3>General</h3>