Answered question

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

Hello,

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"

Code error: NL-DYNATRACE_EVENT_ACTION-02

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

Thank you.

Antoine M.
Antoine M.

Antoine M.

Level
1
175 / 750
points
Fousseyni B.
Fousseyni B.

Fousseyni B.

Level
2
1014 / 2000
points

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

Fousseyni B.
Fousseyni B.

Fousseyni B.

Level
2
1014 / 2000
points

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.

Antoine M.
Antoine M.

Antoine M.

Level
1
175 / 750
points

Thank you for your responses.
There is no more white spaces on the parameters of the two actions (monitoring & event), but the error is still present.

Fousseyni B.
Fousseyni B.

Fousseyni B.

Level
2
1014 / 2000
points

Hello Antoine,

Can you enable the debug mode for logging and display the log content ?

Best Regards,
Fousseyni B.

Antoine M.
Antoine M.

Antoine M.

Level
1
175 / 750
points

There is the log content.

Regards,

Antoine M.
Antoine M.

Antoine M.

Level
1
175 / 750
points

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.
Regards,