Task `Provide backend for application` fails without any errors when deploying docker-based APS package
Modified on: Fri, 17 Nov 2023 12:07 PMOriginal Publishing Date:
2020-01-22
2020-01-22
Symptoms
Task Provide backend for application Application name (instance #YYY)
fails without any errors:
Method name
taskProvideApplicationInstanceBackend on SCREF:SaaSManagerTasks:0
The following exception is shown in core.log:
Aug 16 00:49:52.558 : DBG [task:66:973 p:-default-threadpool;-w:-Idle:352 pau]: c.p.p.tracer exit by exception: com.parallels.pa.service.endpoint.ejb.ApsEndpointManagerBean.provideApplicationBackendjava.lang.NullPointerException: null
at com.parallels.pa.service.endpoint.ejb.ApsEndpointManagerBean.lambda$6(ApsEndpointManagerBean.java:373)
at com.parallels.pa.service.endpoint.ejb.ApsEndpointManagerBean.call(ApsEndpointManagerBean.java:270)
at com.parallels.pa.service.endpoint.ejb.ApsEndpointManagerBean.runContainer(ApsEndpointManagerBean.java:367)
at com.parallels.pa.service.endpoint.ejb.ApsEndpointManagerBean.provideApplicationBackend(ApsEndpointManagerBean.java:359)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Cause
Docker image was not configured properly.
Resolution
Make sure that the parameters in deployment.xml
file were set correctly:
<imageName>username/packagename</imageName>
<applicationPort>1443</applicationPort>
<applicationUrlPath>endpoint</applicationUrlPath>
If the values of applicationPort
and applicationUrlPath
were changed, make sure that they were also changed in related files inside the deploy-image
folder.