Existing route fails to load after upgrading to IG 2023.x
The purpose of this article is to provide assistance if you find an existing route fails to load after upgrading IG. You will notice messages such as "An error occurred while reading the route defined in the file" and "Expecting a value" in the logs.
Symptoms
A route that worked in IG 7.x or 6.x fails to load after upgrading to IG 2023.x.
An error similar to the following is shown in the logs when this happens: [main] ERROR o.f.o.handler.router.RouterHandler @system - An error occurred while reading the route defined in the file '/app/openig/config/routes/10-route-name.json'. [CONTINUED]org.forgerock.json.JsonValueException: /path/to/config/field: Expecting a value [CONTINUED] at org.forgerock.json.JsonValue.required(JsonValue.java:1294) [CONTINUED]Wrapped by: org.forgerock.openig.heap.HeapException: Invalid object declaration
Recent Changes
Upgraded to IG 2023.2 or later.
Causes
The route contains one or more settings that were removed in IG 2023.2.
Solution
This issue can be resolved by checking the failing route identified in the log for any settings that have been removed and replacing them with the appropriate settings. Refer to Removed in IG 2023.2 for details of which settings have been removed and what they should be replaced with.
The field noted in the log beside the “Expecting a value” message will give you a hint as to what the expected setting should be.
See Also
Related Training
N/A
Related Issue Tracker IDs
N/A