Bug 53844 - JDBC related elements should check class of Variable Name supposed to contain JDBC Connection Configuration to avoid ClassCastException
Summary: JDBC related elements should check class of Variable Name supposed to contain...
Status: RESOLVED FIXED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: 2.7
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
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
Comment 2 The ASF infrastructure team 2022-09-24 20:37:51 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2919