我在深度潜水9甚至博客系列第7步中遇到以下错误。只有当我确保后端服务安全时才会出现此问题。 如果我只执行步骤直到approuter,应用程序加载没有任何问题。 你能说出可能是什么原因吗?
此致 阿伦。
附加日志:
cf logs --recent approuter-exchangerate
2018-05-03T14:05:05.23+0530 [RTR/6] OUT approuter-exchangerate-i038900trial.cfapps.sap.hana.ondemand.com - [2018-05-03T08:35:05.232+0000] "GET / HTTP/1.1" 302 0 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36" "10.0.136.2:43942" "10.0.137.2:65215" x_forwarded_for:"203.13.146.100, 10.0.136.2" x_forwarded_proto:"https" vcap_request_id:"f2fb8e59-7317-44bf-5c4a-e008c818f936" response_time:0.002824438 app_id:"6a6ee132-1c31-40b3-bb45-098ce441ecde" app_index:"0" x_b3_traceid:"f3cd3d8a7f9e5068" x_b3_spanid:"f3cd3d8a7f9e5068" x_b3_parentspanid:"-"
2018-05-03T14:05:05.23+0530 [RTR/6] OUT
2018-05-03T14:05:05.41+0530 [APP/PROC/WEB/0] OUT #2.0#2018 05 03 08:35:05:411#+00:00#INFO#/Auth/OAuth2#########7gXqF9n7LAceovZ9Ol2ZojAlJlJ4GobV######jgq9z03j#PLAIN##sending redirect to https://i038900trial.authentication.sap.hana.ondemand.com/oauth/authorize?response_type=code&client_id=sb-exchangerate-i038900trial!t2096&redirect_uri=https%3A%2F%2Fapprouter-exchangerate-i038900trial.cfapps.sap.hana.ondemand.com%2Flogin%2Fcallback#
2018-05-03T14:05:05.41+0530 [RTR/7] OUT approuter-exchangerate-i038900trial.cfapps.sap.hana.ondemand.com - [2018-05-03T08:35:05.409+0000] "GET /index.html HTTP/1.1" 302 0 0 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36" "10.0.136.2:57012" "10.0.137.2:65215" x_forwarded_for:"203.13.146.100, 10.0.136.2" x_forwarded_proto:"https" vcap_request_id:"a8b923f0-ecb8-403a-4231-0ec1c522be38" response_time:0.006628218 app_id:"6a6ee132-1c31-40b3-bb45-098ce441ecde" app_index:"0" x_b3_traceid:"1f1cb639f34a713b" x_b3_spanid:"1f1cb639f34a713b" x_b3_parentspanid:"-"
2018-05-03T14:05:05.41+0530 [RTR/7] OUT
2018-05-03T14:05:17.47+0530 [RTR/7] OUT approuter-exchangerate-i038900trial.cfapps.sap.hana.ondemand.com - [2018-05-03T08:35:17.193+0000] "GET /login/callback?code=OTHZw1jZ98 HTTP/1.1" 302 0 0 "https://i038900trial.authentication.sap.hana.ondemand.com/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36" "10.0.136.2:38156" "10.0.137.2:65215" x_forwarded_for:"203.13.146.100, 10.0.136.2" x_forwarded_proto:"https" vcap_request_id:"1603e250-a88f-4737-6d16-2eec8a900de8" response_time:0.27849157 app_id:"6a6ee132-1c31-40b3-bb45-098ce441ecde" app_index:"0" x_b3_traceid:"1a3c5fefd1a296bf" x_b3_spanid:"1a3c5fefd1a296bf" x_b3_parentspanid:"-"
2018-05-03T14:05:17.47+0530 [RTR/7] OUT
2018-05-03T14:05:17.67+0530 [RTR/0] OUT approuter-exchangerate-i038900trial.cfapps.sap.hana.ondemand.com - [2018-05-03T08:35:17.644+0000] "GET /index.html HTTP/1.1" 404 0 0 "https://i038900trial.authentication.sap.hana.ondemand.com/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36" "10.0.136.2:53492" "10.0.137.2:65215" x_forwarded_for:"203.13.146.100, 10.0.136.2" x_forwarded_proto:"https" vcap_request_id:"7e0acbe6-2b0b-4d4c-5cd4-b39878f8369c" response_time:0.034361005 app_id:"6a6ee132-1c31-40b3-bb45-098ce441ecde" app_index:"0" x_b3_traceid:"e11dc7908395d90a" x_b3_spanid:"e11dc7908395d90a" x_b3_parentspanid:"-"
2018-05-03T14:05:17.67+0530 [RTR/0] OUT
cf logs --recent exchangerate
2018-05-03T14:05:17.68+0530 [RTR/2] OUT exchangerate-i038900trial.cfapps.sap.hana.ondemand.com - [2018-05-03T08:35:17.676+0000] "GET /index.html HTTP/1.1" 404 0 0 "https://i038900trial.authentication.sap.hana.ondemand.com/login" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36" "10.0.136.4:55766" "10.0.138.31:62268" x_forwarded_for:"203.13.146.100, 10.0.136.2, 52.58.183.15, 10.0.136.4" x_forwarded_proto:"https" vcap_request_id:"89b449c3-c177-4720-4639-c06e7c067c15" response_time:0.003352738 app_id:"2a48d2f8-b417-4a4f-b380-931f55cd2bf5" app_index:"0" x_b3_traceid:"e11dc7908395d90a" x_b3_spanid:"e11dc7908395d90a" x_b3_parentspanid:"-"
2018-05-03T14:05:17.68+0530 [RTR/2] OUT
答案 0 :(得分:6)
在与另一个具有相同症状的用户一起解决此问题之后,我目前的回答是,Spring安全依赖项在受保护的应用程序的pom.xml
中互不兼容。例如,使用Spring版本0.28.6进行类加载时,如博客中所述使用依赖项会抛出java.lang.NoClassDefFoundError:org/springframework/core/KotlinDetector
,但在0.27。*下它们可以正常工作。
因此,请确保使用博客中描述的依赖项,或者也添加/更新缺少的/其他依赖项。