Bug 64935

Summary: A broken plugin class should not prevent JMeter from starting
Product: JMeter Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2 Keywords: FixedInTrunk
Version: 3.3   
Target Milestone: JMETER_5.4   
Hardware: All   
OS: All   

Description Philippe Mouawad 2020-11-24 14:48:04 UTC
Example:

Following https://github.com/apache/jmeter/commit/43217ec8086c8f2dc485936cd020c9c8107b698e which removed LoggingManager.

Add jmeter-plugins-manager plugin to JMeter prevents JMeter from starting with below exception:

java.lang.NoClassDefFoundError: org/apache/jorphan/logging/LoggingManager
        at org.jmeterplugins.repository.PluginManagerMenuCreator.<clinit>(PluginManagerMenuCreator.java:10) ~[jmeter-plugins-manager-1.4.jar:?]
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_201]
        at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_201]
        at org.apache.jmeter.gui.util.JMeterMenuBar.findMenuCreators(JMeterMenuBar.java:229) ~[ApacheJMeter_core.jar:5.4]        at org.apache.jmeter.gui.util.JMeterMenuBar.createMenuBar(JMeterMenuBar.
java:196) ~[ApacheJMeter_core.jar:5.4]        at org.apache.jmeter.gui.util.JMeterMenuBar.<init>(JMeterMenuBar.java:11
7) ~[ApacheJMeter_core.jar:5.4]        at org.apache.jmeter.gui.MainFrame.init(MainFrame.java:514) ~[ApacheJMet
er_core.jar:5.4]
        at org.apache.jmeter.gui.MainFrame.<init>(MainFrame.java:231) ~[ApacheJM
eter_core.jar:5.4]
Comment 1 Philippe Mouawad 2020-11-24 14:51:15 UTC
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 88be852  Bug 64935 - A broken plugin class should not prevent JMeter from starting
88be852 is described below

commit 88be852762cd5db86ecd7d8b035549a9782a5cb9
Author: pmouawad <p.mouawad@ubik-ingenierie.com>
AuthorDate: Tue Nov 24 15:49:49 2020 +0100

    Bug 64935 - A broken plugin class should not prevent JMeter from
    starting
---
 .../src/main/java/org/apache/jmeter/gui/util/JMeterMenuBar.java     | 6 +++++-
 xdocs/changes.xml                                                   | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)
Comment 2 Felix Schumacher 2020-11-24 15:37:07 UTC
commit 077b58e518c0afe4253379f75ee14ea2d326eae3
AuthorDate: Tue Nov 24 16:00:45 2020 +0100

    Make log messages more consistent
    
    * Use space after colon
    * put parenthesis around placeholder to make start and end of value clearer
    
    Bugzilla Id: 64935
---
 src/core/src/main/java/org/apache/jmeter/gui/util/JMeterMenuBar.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)