jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject svn commit: r1843812 - in /jmeter/trunk: src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java xdocs/changes.xml
Date Sun, 14 Oct 2018 08:05:32 GMT
Author: fschumacher
Date: Sun Oct 14 08:05:32 2018
New Revision: 1843812

URL: http://svn.apache.org/viewvc?rev=1843812&view=rev
Log:
Log an informational message instead of an stack trace

This will happen when JavaFX is not found while looking
for the RenderInBrowser component.

Closes #408 on github

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java?rev=1843812&r1=1843811&r2=1843812&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
(original)
+++ jmeter/trunk/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java
Sun Oct 14 08:05:32 2018
@@ -465,7 +465,13 @@ implements ActionListener, TreeSelection
                 }
                 renderer.setBackgroundColor(getBackground());
                 map.put(renderer.getClass().getName(), renderer);
-            } catch (Exception | NoClassDefFoundError e) { // NOSONAR See bug 60583
+            } catch (NoClassDefFoundError e) { // NOSONAR See bug 60583
+                if (e.getMessage() != null && e.getMessage().contains("javafx"))
{
+                    log.info("Add JavaFX to your Java installation if you want to use renderer:
{}", clazz);
+                } else {
+                    log.warn("Error loading result renderer: {}", clazz, e);
+                }
+            } catch (Exception e) {
                 log.warn("Error loading result renderer: {}", clazz, e);
             }
         }

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1843812&r1=1843811&r2=1843812&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml [utf-8] (original)
+++ jmeter/trunk/xdocs/changes.xml [utf-8] Sun Oct 14 08:05:32 2018
@@ -118,6 +118,7 @@ Summary
     <li>Updated to tika-core and tika-parsers 1.19.1 (from 1.18)</li>
     <li><bug>62818</bug>Updated to xercesImpl to 2.12.0 (from 2.11.0).
Reported by Stefan Seide (stefan at trilobyte-se.de)</li>
     <li><bug>62821</bug><pr>405</pr>Use SHA-512 checksums instead
of MD5 to verify jar downloads</li>
+    <li><pr>408</bug>Log an informational message instead of an stack trace,
when JavaFX is not found for the <code>RenderInBrowser</code> component.</li>
 </ul>
 
  <!-- =================== Bug fixes =================== -->



Mime
View raw message