You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2011/04/14 20:03:10 UTC
DO NOT REPLY [Bug 51063] New: Classpath error when adding a custom
Java Request component
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: notifications@jakarta.apache.org
ReportedBy: erik@apption.com
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org
DO NOT REPLY [Bug 51063] Classpath error when adding a custom Java
Request component
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51063
--- Comment #2 from erik@apption.com 2011-04-14 14:13:15 EDT ---
Indeed - sorry I trusted too much netbeans and maven.
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org
DO NOT REPLY [Bug 51063] Classpath error when adding a custom Java
Request component
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51063
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
OS/Version| |All
--- Comment #1 from Sebb <se...@apache.org> 2011-04-14 14:10:38 EDT ---
This is a bug in your code:
Caused by: java.lang.RuntimeException: Uncompilable source code - package
org.apache.jmeter.samplers does not exist
at
mypackage.MyClass.CreateRequest.<clinit>(CreateDebtorRequest.java:17)
--
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: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org