https://issues.apache.org/bugzilla/show_bug.cgi?id=51063
Summary: Classpath error when adding a custom Java Request
component
Product: JMeter
Version: 2.4
Platform: PC
Status: NEW
Severity: blocker
Priority: P2
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
I created a jar file with my class that implements JavaSamplerClient. I put
that jar file in lib/ext but when I try to add in JMeter a Java Request
sampler, I get:
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
org.apache.jmeter.protocol.java.config.gui.JavaConfigGui.actionPerformed(JavaConfigGui.java:163)
at javax.swing.JComboBox.fireActionEvent(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at
org.apache.jmeter.protocol.java.config.gui.JavaConfigGui.configure(JavaConfigGui.java:226)
at
org.apache.jmeter.protocol.java.control.gui.JavaTestSamplerGui.configure(JavaTestSamplerGui.java:85)
at
org.apache.jmeter.gui.tree.JMeterTreeModel.addComponent(JMeterTreeModel.java:132)
at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:70)
at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:82)
at
org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:42)
at
org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:61)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown
Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Uncompilable source code - package
org.apache.jmeter.samplers does not exist
at
mypackage.MyClass.CreateRequest.<clinit>(CreateDebtorRequest.java:17)
... 26 more
I suspect that something is wrong in the Class.forName and doesn't include
anywhere the jar with the SampleResult class.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]