500 – Internal server error or whitelist error page when accessing app URL after binding an app to Spring Cloud Gateway (SCG) service instance
search cancel

500 – Internal server error or whitelist error page when accessing app URL after binding an app to Spring Cloud Gateway (SCG) service instance

book

Article ID: 297121

calendar_today

Updated On:

Products

Support Only for Spring

Issue/Introduction

This issue occurs in Spring Cloud Gateway (SCG) versions before v1.0.7.

After binding an app to SCG service instance, when you restage, restart, or re-push the app to the service instance it was bound to and you try to access the app through the gateway's URL, it results in a whitelist error page and a 500 – Internal server error.

In scg-service-broker.stdout.log you see the following:

2020-05-28 16:34:36.900 INFO 8 --- [ry-client-nio-2] .c.s.p.c.a.CloudFoundryBackingAppManager : App restarted 
2020-05-28 16:34:36.900 INFO 8 --- [ry-client-nio-2] i.p.s.c.s.a.workflow.routes.LockManager : Released instance lock for 565eeb54-e78c-4ac5-9650-4a3ca016a6fc
2020-05-28 16:35:33.810 ERROR 8 --- [ parallel-2] s.c.ServiceBrokerWebFluxExceptionHandler : Unknown exception handled:  

java.lang.IllegalStateException: No binding found at            io.pivotal.spring.cloud.servicebroker.appbroker.workflow.routes.LockManager.lambda$null$1(LockManager.java:58) ~[classes!/:na]
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: 
Error has been observed at the following site(s):
|_ checkpoint ⇢ Handler org.springframework.cloud.servicebroker.controller.ServiceInstanceBindingController#deleteServiceInstanceBinding(Map, String, String, String, String, boolean, String, String) [DispatcherHandler]
Stack trace:
at io.pivotal.spring.cloud.servicebroker.appbroker.workflow.routes.LockManager.lambda$null$1(LockManager.java:58) ~[classes!/:na]
at java.util.Optional.orElseThrow(Optional.java:290) ~[na:1.8.0_222]


Resolution

Upgrade Spring Cloud Gateway (SCG) to 1.0.7. This version contains a fix and upgrading will resolve the issue.