Forum Discussion

pandap's avatar
pandap
Contributor
12 years ago

[Resolved] Issue saving Load Test info to database

When running load test (fixed Rate for specific time for 30 seconds) getting following error while trying to save the request and responses to the database. I am using event handler (LoadTestRunnerListener.afterTestStep) to save the load test information to the database.

Wed Oct 23 14:04:07 EDT 2013:ERROR:java.lang.NullPointerException: Cannot invoke method add() on null object
Wed Oct 23 14:04:07 EDT 2013:ERROR:An error occured [Cannot invoke method add() on null object], see error log for details
Wed Oct 23 14:04:07 EDT 2013:DEBUG:Failed to find shared datasource [datasource#1.MySQLDataSource] for [1.MySQLDataSource]

What had been observed is once the execution is complete and progress bar shows 100% the above error are shown until then all the information is saved to the database. So I assume the threads which are waiting for responses are unable to save to database because they have lost the connection to database.

Do you have any settings which will allow to overcome the above issue.


Thanks,
Prashanth