Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

[resolved] The method getHeaders() is undefined for the type Response

Hi All,
I'm getting below exception when I try to execute the rest webservices through tRestClient component.
java.lang.Error: Unresolved compilation problems:
The method getHeaders() is undefined for the type Response
The method readEntity(Class<String>) is undefined for the type Response
The method getHeaders() is undefined for the type Response

when I check the logs in the code section here I'm getting the exception.
globalMap.put("tRESTClient_1_HEADERS",webClient_tRESTClient_1.getResponse().getHeaders());

Attached the screen shots of tRestclient component cofiguration.
Can any one please advice me on this?.
Labels (4)
1 Solution

Accepted Solutions
_AnonymousUser
Specialist III
Specialist III
Author

Hi All,
I resolved the issue by installing latest version 5.5.1 of TOS for ESB in my system.I am suspecting the issue might be because of jar files or there may be a bug in the tRestClient component.

View solution in original post

3 Replies
_AnonymousUser
Specialist III
Specialist III
Author

is this configuration issue with in the component or am I missing anything?
_AnonymousUser
Specialist III
Specialist III
Author

Hi All,
I resolved the issue by installing latest version 5.5.1 of TOS for ESB in my system.I am suspecting the issue might be because of jar files or there may be a bug in the tRestClient component.
spruett
Contributor II
Contributor II

I have a similar problem in one of my jobs.  This issue appears to be with the tRESTClient (i.e., that's where the error shows in the Code window), but when I disable a tREST component lower in the job the complaint goes away.  I'm running v.5.4.1, and it appears like these two components won't play together.