Endevor Web Services list package failed with JsonParseException, how to fix that ?

Document ID : KB000017157
Last Modified Date : 14/03/2019
Show Technical Document Details
Question:

Endevor Eclipse plugin  'list package' failed with JsonParseException, how to fix that ? This is happening after applying maintenance to 18.0.12 GA. 

Answer:

1) If you are using URL such as http://mainframe:32200/Eclipse-BasedUI to create Eclipse repository , you will get Jason Parse Exception:

com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
 

Solution: 

Remove any character after the port number in the repository URL, use this URL format <protocol>://<Name of the Web Services host>:<Port number> to create the repository. 

2) JsonParseException could also occur if you have version mismatch between Web Services and Eclipse UI plugin. 

Steps to install V18 latest Eclipse UI plugin: 
Check the API version by 

Navigate to the following URL in your web browser:
<protocal>://host:port/EndevorService
 

If your browser display 

CA Endevor SCM - API version 18.1.0

Then you can install Eclipse UI plugin version 18.1.0,  otherwise install Eclipse UI plugin 18.0.2 via 
http://plugins.ca.com/endevor-plugin/

 

 

Additional Information:

check Create a New Repository in Eclipse Help for more information.

Eclipse Plugin Compatibility Matrix: 
https://docops.ca.com/ca-endevor-SCM/18-0/en/release-notes/eclipse-plugin-compatibility

This can happen if post-18.0 GA (18.0.12) maintenance has been applied and plugin version 18.1.0 is used.