print out the value in a debug sampler - you seem to be getting a literal
value as the return of ${__property(port)} instead of your actual port
value -


On Fri, Dec 28, 2012 at 10:04 PM, Dzmitry_Kashlach <
[email protected]> wrote:

>    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
> Configuration.
>    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"'.
>
> <http://jmeter.512774.n5.nabble.com/file/n5715669/8.jpg>
>
> 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:
> http://jmeter.512774.n5.nabble.com/How-to-cast-String-to-Integer-in-JMeter-tp5715669.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to