The local variable restTemplate may not have been initialized

when calling getForobject I am getting this error.

check this link

see how to initialize restTemplate

2 Likes

It’s about initializing the RestTemplate variable correctly.

1 Like

first initialize the variable to null, it has not been initialized

1 Like

Thanks I initialized it correctly now, I have 1 more doubt how to use list of tiingocandle in getforobject its not working like I used in object mapper with new typereference list ??

Refer this FAQ

1 Like

thanks
my bad :sweat:, should have referred faqs

After doing everything as illustrated in faq I m still not getting the output
There is an IllegalArgumentException in objectmapper