Symptoms
When trying to add a new resource type based on "Application Service Reference" resource class, the error is displayed:
Internal communication error happened. Please contact support.
- The same error as above is displayed on attempt to navigate to OA > System > Settings > Skins
In /var/log/poa-ui.log
the following errors are observed:
2016-08-24 23:08:29,204 92e9f90126 -3773 DEBUG CORBA #1726842: Plesk.APS._APSManagerStub.getApplicationPackageResources(user_id=38873 (su_user_id=38873)) >>> entry
2016-08-24 23:08:29,219 92e9f90126 -3773 DEBUG CORBA #1726842: Plesk.APS._APSManagerStub.getApplicationPackageResources(user_id=38873 (su_user_id=38873)) <<< exit [15]
2016-08-24 23:08:29,220 92e9f90126 -3773 DEBUG CORBA #1726844: Plesk.APS._APSManagerStub.getApplicationPackageResources(user_id=38873 (su_user_id=38873)) >>> entry
2016-08-24 23:08:29,225 92e9f90126 -3773 DEBUG CORBA #1726844: Plesk.APS._APSManagerStub.getApplicationPackageResources(user_id=38873 (su_user_id=38873)) <<< exit [5]
2016-08-24 23:08:29,225 92e9f90126 -3773 DEBUG CORBA #1726846: Plesk.SaaS._SaaSManagerStub.isSecurityTokenExpired(user_id=38873 (su_user_id=38873)) >>> entry
2016-08-24 23:08:29,228 92e9f90126 -3773 DEBUG CORBA #1726846: Plesk.SaaS._SaaSManagerStub.isSecurityTokenExpired(user_id=38873 (su_user_id=38873)) <<< exit [3]
2016-08-24 23:08:29,441 -3787 DEBUG InjectionFilter Injection filter request:/static/skins/default/v3/icons/32/plesk/loading.gif
2016-08-24 23:08:29,441 -3787 DEBUG OUT implementation of com.plesk.p2.util.api.legacy.RunDataAccess
2016-08-24 23:08:29,441 -3787 DEBUG OUT implementation of com.plesk.p2.util.api.legacy.RunDataAccessInitializer
2016-08-24 23:08:29,442 -3787 DEBUG InjectionFilter Injection filter request processed
2016-08-24 23:08:29,981 92e9f90126 -3773 DEBUG ModuleFinder Exit: screens rtst.saas_ref.ResourceTypeWizard:build by exception:java.lang.reflect.InvocationTargetException
2016-08-24 23:08:29,981 92e9f90126 -3773 DEBUG OUT NAVIGATION ERROR:java.lang.reflect.InvocationTargetException
2016-08-24 23:08:29,981 92e9f90126 -3773 DEBUG OUT java.lang.reflect.InvocationTargetException
...
2016-08-24 23:08:29,983 92e9f90126 -3773 DEBUG OUT Caused by: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input
at [Source: java.io.ByteArrayInputStream@901d0c; line: 1, column: 1]
Cause
Some APS application registered in the system is not properly imported, so its resource types are not available to be listed.
Resolution
Find the incompletely imported APS application and finish the import or remove it from the system.
Troubleshooting
Find the corresponding entries in /var/log/poa.log
that trigger getApplicationPackageResources call at the time of the error. In case there are several getApplicationPackageResources calls within the same UI session, check the last one:
Aug 25 00:01:29 core : DBG [UI:1ca3de18:824153:1472101289207 1:6118:ea6b9b90 lib ]: CORBA_OTHER <0> IDL:Plesk/APS/APSManager_private:1.0::getApplicationPackageResources
Aug 25 00:01:29 core : DBG [UI:1ca3de18:824153:1472101289207 RequestProcessor-719973 pau ]: com.parallels.pa.service.db.ejb.DBServiceBean Executing non-locking query: ' SELECT app_ver
FROM aps_packages WHERE app_id = ? AND ( status = ? OR status = ? OR status = ? ) ORDER BY version_order'. Parameters: [540, r, c, z] [sqlpid: 4942]
Get the ID of the first SELECT statement of the call, 540 in the example above.
Go to PCP > Services > Applications and find the APS application with ID 540. Go to 'Resource Types' and see the same error. It indicates the application that is broken and requires provider's attention.