jakarta-jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43545] New: - AbstractVisualizer should implement TestElement interface
Date Wed, 03 Oct 2007 22:18:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43545>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43545

           Summary: AbstractVisualizer should implement TestElement
                    interface
           Product: JMeter
           Version: 2.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: pbm-rico@gmx.net


I followed the jmeter_tutorial.pdf to create new component using the TestBean
framework.

Page 13 in the tutorial states:

"By extending different abstract classes, you can control the type of element
your component will be (ie AbstractSampler, AbstractVisualizer,
GenericController, etc [...]"

Both, AbstractSampler and GenericController implement TestElement, but
AbstractVisualizer does not, which leads to a ClassCastException when you follow
these instructions:

2007/10/03 15:02:56 ERROR - jmeter.gui.action.AddToTree: 
java.lang.ClassCastException
        at
org.apache.jmeter.testbeans.gui.TestBeanGUI.createTestElement(TestBeanGUI.java:205)
        at org.apache.jmeter.gui.GuiPackage.createTestElement(GuiPackage.java:297)
        at org.apache.jmeter.gui.action.AddToTree.doAction(AddToTree.java:68)
        at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:77)
        at org.apache.jmeter.gui.action.ActionRouter.access$0(ActionRouter.java:68)
        at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:62)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

Solution: Make AbstractVisualizer implement TestElement.

Thanks,
Rico.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Mime
View raw message