Tech Tips: Error 500 - No signature of method: org.apache.commons.logging.impl.SLF4JLocationAwareLog.error()

Document ID : KB000009011
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

I have executed 645 suites over the last 2.5 hours and I am not seeing any job hanging. I only seem to get that error message when I first trigger the 30 suites at the same time. 

 

Error 500 - No signature of method: org.apache.commons.logging.impl.SLF4JLocationAwareLog.error() is applicable for argument types: (java.lang.String, java.lang.String) values: [error occurred in getTestReport: , Data source rejected establishment of connection, message from server: "Too many connections"] Possible solutions: error(java.lang.Object), error(java.lang.Object, java.lang.Throwable), iterator(), every(), grep() 

 

Only see this with ANT.

Environment:
DevTest 9.5.1 running on Linux.
Cause:

DevTest is incorrectly formatting an error message, which causes this part of the error: No signature of method: org.apache.commons.logging.impl.SLF4JLocationAwareLog.error() is applicable for argument types: (java.lang.String, java.lang.String) 

 

That doesn’t prevent the actual error from appearing, which is the next part: “Too many connections" 

 

Too many connections is being caused by not having the correct DB connection pool size.

Resolution:

We have fixed the first part by fixing the LOG.error method calls in the code. This is fixed in DevTest 10.2. 

 

The latter has more to do with the number of available database connections and the number of suites that spin up at the same time. This can be resolved by increasing the database connection pool size, naturally. This error was reported when trying to spin up 30+ suites at the same time, so we recommend increasing the DB connection pool size to 30. 

 

Since this is only happening with ANT, you can switch execution over to lisa-invoke.