jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dzmitry_Kashlach <>
Subject How to cast String to Integer in JMeter?
Date Sat, 29 Dec 2012 06:04:16 GMT
   Hello to everyone!
I've created test-plan for performance testing of MySQL database. I read
parameters via CSV DatasetConfig, after that I pass them to JDBC Connection
   My problem is that CSV DatasetConfig returns String parameters. There is
database "port" among them. 
When I use this parameter in JDBC Connection Configuration, I get the
following exception in JDBC Sampler:

   Response message:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot
load connection class because of underlying exception:
'java.lang.NumberFormatException: For input string: "port"'.


Do you know good way of casting String to Integer before using it in JDBC
Connection Configuration?

Thank you in advance.

View this message in context:
Sent from the JMeter - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message