Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stack trace on one of my endpoints

See original GitHub issue

As soon as cats starts up against one of my endpoints, it blows up:

[********* ][*****] ▶ start    Start fuzzing path /v1/my/endpointl
[********* ][*****] ✖ error    Something went wrong while running CATS!
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 14
	at java.base/java.lang.String.checkBoundsBeginEnd(
	at java.base/java.lang.String.substring(
	at com.endava.cats.model.factory.FuzzingDataFactory.lambda$addNewCombination$9(
	at java.base/java.util.HashMap.forEach(
	at com.endava.cats.model.factory.FuzzingDataFactory.addNewCombination(
	at com.endava.cats.model.factory.FuzzingDataFactory.getPayloadCombinationsBasedOnOneOfAndAnyOf(
	at com.endava.cats.model.factory.FuzzingDataFactory.generateSample(
	at com.endava.cats.model.factory.FuzzingDataFactory.getResponsePayloads(
	at com.endava.cats.model.factory.FuzzingDataFactory.getFuzzDataForNonBodyMethods(
	at com.endava.cats.model.factory.FuzzingDataFactory.getFuzzingDataForGet(
	at com.endava.cats.model.factory.FuzzingDataFactory.fromPathItem(
	at com.endava.cats.CatsMain.fuzzPath(
	at com.endava.cats.CatsMain.startFuzzing(
	at com.endava.cats.CatsMain.doLogic(
	at org.springframework.boot.SpringApplication.callRunner(
	at org.springframework.boot.SpringApplication.callRunners(
	at com.endava.cats.CatsMain.main(
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.base/java.lang.reflect.Method.invoke(
	at org.springframework.boot.loader.Launcher.launch(
	at org.springframework.boot.loader.Launcher.launch(
	at org.springframework.boot.loader.PropertiesLauncher.main(

My API does not throw any errors when this happens. Suggestions for what might cause this?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

rottencommented, Jul 26, 2021

I’ll see what I can do.

rottencommented, Jul 18, 2021

Excellent! Thanks! I can confirm the NPE is gone. Now I’ll go back to building my example to see if I can get that IndexOutOfBounds exeception again so we have an example demonstrating the issue. This may take me a couple of days because I have a very full schedule for the next few days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debug information | Error Stack Trace | Google Endpoints
I have a few endpoints on google cloud. I deployed one more by copying my existing one and changed name and logic.
Read more >
Stack Trace: How to Debug Your Application With a Stack Trace
A stack trace is a valuable piece of information that can be used for debugging purposes. Whenever you encounter an error in your...
Read more >
Stack Tracing - FusionReactor Documentation
The stack trace consists of single frames and each frame shows the class, method and (if available) line number of the code which...
Read more >
View stack trace separately from messages in logged ...
The stack trace is now separated from logged messages in logging records so that log analysis tools can present them more clearly.
Read more >
Google cloud endpoint error in production, no stack trace
Is there a setting somewhere to enable? My google cloud endpoint works fine on local, but gives error on production. I am not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found