Defects
SBM: Error "JSON parse error: Cannot deserialize value of type 'java.lang.Long'"
ID: | D27969 | |
Published: | 10 May 2023 | |
Updated: | 23 May 2023 |
Defect Id
DEF348195
Originally Reported Against
SBM 12.1
Also Affects
SBM 12.1 Hotfix
SBM 12.1 Hotfix
SBM 12.1 Hotfix
Description
When accessing the Dashboard, Activities or Calendar views, some users get the following error:
JSON parse error: Cannot deserialize value of type 'java.lang.Long' from
String "container-14.2": not a valid Long value; nested exception in
com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize
value of type 'java.lang.Long' from String "container-14.2": not a valid Long value
at [Source: (PushbackInputStream); line: 1, column: 99] (through reference chain:
com.serena.workcenter.json.JSONGetViewsRequest["containerId"])
Resolution
Workaround:
1. Stop IIS
2. Open for edit file: C:\Program Files\Micro Focus\SBM\Application Engine\bin\javascript\swc\navviewcoms.min.js
3. Find the following string in the file. (There should be only 1 in whole file.)
f.currentLeftNavContainerId=a.attr("id")
4. Change this string so it becomes:
f.currentLeftNavContainerId=a.data('submenuid') || a.attr('data-submenuid')
5. Save the file
6. Open the SBM System Administrator, and go to File > Put files to database
7. Start IIS