You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2012/03/15 09:57:29 UTC
DO NOT REPLY [Bug 52916] New: JDBC Exception if there is an empty
user defined variable
https://issues.apache.org/bugzilla/show_bug.cgi?id=52916
Bug #: 52916
Summary: JDBC Exception if there is an empty user defined
variable
Product: JMeter
Version: 2.5.1
Platform: PC
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: issues@jmeter.apache.org
ReportedBy: cyril.scetbon@free.fr
Classification: Unclassified
If there is an empty user variable defined (maybe someone click the add button
without filling name and value for example), an exception is raised by the JDBC
Request component :
jmeter.threads.JMeterThread: Error while processing sampler 'JDBC Request' :
java.lang.ClassCastException: java.lang.String cannot be cast to
org.apache.avalon.excalibur.datasource.DataSourceComponent
at
org.apache.jmeter.protocol.jdbc.config.DataSourceElement.getConnection(DataSourceElement.java:137)
at
org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:176)
at
org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:411)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:297)
at java.lang.Thread.run(Thread.java:662)
Components shouldn't use undefined variables
Believe me, it was hard to find the cause of this issue ...
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52916] JDBC Exception if there is an empty user
defined variable
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52916
--- Comment #2 from Cyril SCETBON <cy...@free.fr> 2012-03-17 22:42:01 UTC ---
Thank you.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52916] JDBC Exception if there is an empty user
defined variable
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52916
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |p.mouawad@ubik-ingenierie.c
| |om
Resolution| |FIXED
--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> 2012-03-17 21:41:53 UTC ---
Date: Sat Mar 17 21:41:10 2012
New Revision: 1302018
URL: http://svn.apache.org/viewvc?rev=1302018&view=rev
Log:
Bug 52916 - JDBC Exception if there is an empty user defined variable
Modified:
jmeter/trunk/src/core/org/apache/jmeter/config/gui/ArgumentsPanel.java
jmeter/trunk/xdocs/changes.xml
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 52916] JDBC Exception if there is an empty user
defined variable
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52916
Cyril SCETBON <cy...@free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |cyril.scetbon@free.fr
OS/Version| |All
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 52916] While Importing data from excel file, this error is
coming--->java.lang.String cannot be cast to
org.apache.avalon.excalibur.datasource.DataSourceComponent
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52916
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Hardware|PC |All
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 52916] While Importing data from excel file, this error is
coming--->java.lang.String cannot be cast to
org.apache.avalon.excalibur.datasource.DataSourceComponent
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52916
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Last reported Bug was related to error in variable naming which will be easier
to detect now with:
https://issues.apache.org/bugzilla/show_bug.cgi?id=53844
I close issue as fixed.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 52916] While Importing data from excel file, this error is
coming--->java.lang.String cannot be cast to
org.apache.avalon.excalibur.datasource.DataSourceComponent
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52916
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |53844
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 52916] While Importing data from excel file, this error is
coming--->java.lang.String cannot be cast to
org.apache.avalon.excalibur.datasource.DataSourceComponent
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52916
UmaMahesh <um...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ErrorMessage
Status|RESOLVED |REOPENED
CC| |umamahesh.aum@gmail.com
Version|2.5.1 |2.7
Resolution|FIXED |---
Summary|JDBC Exception if there is |While Importing data from
|an empty user defined |excel file, this error is
|variable |coming--->java.lang.String
| |cannot be cast to
| |org.apache.avalon.excalibur
| |.datasource.DataSourceCompo
| |nent
--- Comment #3 from UmaMahesh <um...@gmail.com> ---
please help me,
when i am trying to import data from .txt or .csv file to sqlserver through
JDBC from JMeter, it is showing the following Error:
"java.lang.String cannot be cast to
org.apache.avalon.excalibur.datasource.DataSourceComponent"
But it is taking the request correctly as like below
"[Select Statement] insert into new values ('shatrughun')"
but not exporting to database.
please do the needful help.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 52916] While Importing data from excel file, this error is
coming--->java.lang.String cannot be cast to
org.apache.avalon.excalibur.datasource.DataSourceComponent
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52916
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEEDINFO
--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
Can you attach a simple test plan showing the issue ?
Thank you
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 52916] While Importing data from excel file, this error is
coming--->java.lang.String cannot be cast to
org.apache.avalon.excalibur.datasource.DataSourceComponent
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52916
Bug 52916 depends on bug 53844, which changed state.
Bug 53844 Summary: JDBC related elements should check class of Variable Name supposed to contain JDBC Connection Configuration to avoid ClassCastException
https://issues.apache.org/bugzilla/show_bug.cgi?id=53844
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--
You are receiving this mail because:
You are the assignee for the bug.