Answered question

Dynatrace integration : "String index out of range: -1" ?


I'm trying to send NeoLoad results to Dynatrace after I've followed the documentation, but there is an error in the DynatraceEvent action when I launch the test script:

"java.lang.StringIndexOutOfBoundsException: String index out of range: -1"


Nothing is writen in Dynatrace an I have no further informations :/

Thank you.

Hello Antoine,

In the source code the line raising the error is this one :

final String entities = entitiesBuilder.substring(0, entitiesBuilder.length() - 1);

You must check your parameters. You may have added more than needed. (values, number of parameters)

Best Regards,
Fousseyni B.

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful

Other answers

Hello Antoine,

Did you check the value of each parameter to look for some added spaces ? It is maybe because you paste space character or some additional character.

Best Regards,
Fousseyni B.

The problem was: one of the 2 tags I entered in parameters was on a "Technology", not on a "Transaction" or a "Service" on Dynatrace.
It looks like NeoLoad can't mesure tagged "Technologies"...
Thank you for all your responses.