Bug 53844 - JDBC related elements should check class of Variable Name supposed to contain JDBC Connection Configuration to avoid ClassCastException
JDBC related elements should check class of Variable Name supposed to contain...
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: Main
2.7
All All
: P2 enhancement (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks: 52916
  Show dependency tree
 
Reported: 2012-09-08 13:39 UTC by Philippe Mouawad
Modified: 2012-09-08 13:47 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Mouawad 2012-09-08 13:39:25 UTC
As JDBC Elements use a JMeter Context variable to get the DataSourceElement.
It can happen that Test Plan contains a User Defined Variable or other dynamic variable set through Beanshell or other script Elements with the same name.

This will result in a ClassCastException which is not clear, hard to understand and to track.
Comment 1 Philippe Mouawad 2012-09-08 13:47:12 UTC
Date: Sat Sep  8 13:40:48 2012
New Revision: 1382301

URL: http://svn.apache.org/viewvc?rev=1382301&view=rev
Log:
Bug 53844 - JDBC related elements should check class of Variable Name supposed to contain JDBC Connection Configuration to avoid ClassCastException
Bugzilla Id: 53844

Modified:
    jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/config/DataSourceElement.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/component_reference.xml