portal fails to display APIs in drop-downs for viewing & adding endpoints to Application

Document ID : KB000009271
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

portal fails to display APIs in drop-downs for viewing & adding endpoints to Application

Cause:

If you check the catalina.out you would find similar error as below

[Fatal Error] :-1:-1: Premature end of file.
01/21 02:45:01.011 ERROR (SimpleThreadPoolWorker-9:) - [general] -- MetaInfo.setupForInternalRead Failed - invalid XML
01/21 02:45:01.011 ERROR (SimpleThreadPoolWorker-9:) - [APIListXS general] -- java.lang.NullPointerException

Resolution:

1. Navigate to /opt/Deployments/lrs/repository/META/HEAD/sitebuilder/content/groups/APIs

2. Run the following command and list the filesĀ  ls -lrt

3. Now look for the files with extension .xml-temp and if look at the file size it will be 0

4. move all the files with .xml-temp extension to /tmp for now

5. Restart portal service and now try to add the api's to the application.