在Cloud Foundry中部署S4SDK应用程序时出现问题



项目使用:mvn archetype:generate -DarchetypeGroupId=com.sap.cloud.s4hana.archetypes -DarchetypeArtifactId=scp-cf-spring -DarchetypeVersion=2.3.1生成,项目在本地运行良好。添加了用于spring安全性的jar,定义了名为"的env;目的地";并执行了对S/4HANA系统的调用,这在本地运行良好。

然而,当我通过cf推送部署它时,我会收到下面的错误。

如果需要提供任何其他细节,请告诉我。

日志看起来像这样:

2018-09-06T17:16:20.34+0530[APP/PROC/WEB/0]输出======||======|__/===///_/

2018-09-06T17:16:2.34+0530〔APP/PROC/WEB/0〕输出::弹簧引导::(v2.0.4.REASE)

2018-09-06T17:16:210.05+0530[APP/PROC/WEB/0]输出{"written_at":"2018-09-06T11:46:2.949Z","writtet_ts":100919511280466,"component_type":"application","component_id":369864de-0a0b-4138-bb98-48928417e366","space_name":"dev",","component_instance":"0","organization_id":";-&"correlation_id":&quot-&"organization_name":&quot-&"space_id":"1b0be89e-290e-4ae7-98f9-72a107f60e78"container_id":"10.0.138.125"类型":"log"记录器":"com.sap.cec.mkt.agency.Application"线程":"main"级别":"INFO"类别":[],";msg":"在28673099-cf61-4378-41d5-4344上启动PID为8的应用程序(/home/vcap/app/BOOT-INF/classes started by vcap in/home/vcap/app)"}

2018-09-06T17:16:210.05+0530[APP/PROC/WEB/0]输出{"written_at":"2018-09-06T11:46:210.55Z","writtet_ts":100919615470771,"component_type":"application","component_id":369864de-0a0b-4138-bb98-48928417e366","space_name":"dev","component_instance":"0","organization_id":";-&"correlation_id":&quot-&"organization_name":&quot-&"space_id":"1b0be89e-290e-4ae7-98f9-72a107f60e78"container_id":"10.0.138.125"类型":"log"记录器":"com.sap.cec.mkt.agency.Application"线程":"main"级别":"DEBUG"类别":[],";msg":"使用Spring Boot v2.0.4.RELEASE、Spring v5.0.8.RELEASE运行"}

2018-09-06T17:16:210.05+0530[APP/PROC/WEB/0]输出{"written_at":"2018-09-06T11:46:210.56Z","writtet_ts":100919616000979,"component_type":"application","component_id":369864de-0a0b-4138-bb98-48928417e366","space_name":"dev","component_instance":"0","organization_id":";-&"correlation_id":&quot-&"organization_name":&quot-&"space_id":"1b0be89e-290e-4ae7-98f9-72a107f60e78"container_id":"10.0.138.125"类型":"log"记录器":"com.sap.cec.mkt.agency.Application"线程":"main"级别":"INFO"类别":[],";msg":"以下配置文件处于活动状态:cloud"}

2018-09-06T17:16:2.305+0530〔APP/PROC/WEB/0〕输出{"written_at":"2018-09-06T11:46:23054Z","writtet_ts":100921614055008,"component_type":"application","component_id":369864de-0a0b-4138-bb98-48928417e366","space_name":"dev",","component_instance":"0","organization_id":";-&"correlation_id":&quot-&"organization_name":&quot-&"space_id":"1b0be89e-290e-4ae7-98f9-72a107f60e78"container_id":"10.0.138.125"类型":"log"记录器":"org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext"线程":"main"级别":"WARN"类别":[],";msg":"上下文初始化期间遇到异常-取消刷新尝试:org.springframework.beans.factory.BeanDefinitionStoreException:读取候选组件类URL失败[jar:file:/home/vcap/app/BOOT-INF/lib/bapi-api-2.3.1.jar!/com/sap/cloud/sdk/s4hana/datamodel/bapi/functions/DefaultForeignExchangeDealGetFunction.class];嵌套异常是java.util.zip.ZipException:无效的存储块长度"}

2018-09-06T17:16:3.24+0530[APP/PROC/WEB/0]输出{"written_at":"2018-09-06T11:46:3.149Z","writtet_ts":100921709659596,"component_type":"application","component_id":369864de-0a0b-4138-bb98-48928417e366","space_name":"dev","component_instance":"0","organization_id":";-&"correlation_id":&quot-&"organization_name":&quot-&"space_id":"1b0be89e-290e-4ae7-98f9-72a107f60e78"container_id":"10.0.138.125"类型":"log"记录器":"org.springframework.boot.SpringApplication"线程":"main"级别":"错误"类别":[],";msg":"应用程序运行失败"stacktrace":[quot;org.springframework.beans.factory.BeanDefinitionStoreException:读取候选组件类URL失败[jar:file:/home/vcap/app/BOOT-INF/lib/bapi-api-2.3.1.jar!.com/sap/cloud/sdk/s4hana/datamodel/bapi/functions/DefaultForeignExchangeDealGetFunction.class];嵌套异常是java.util.zip.ZipException:无效的存储块长度"quot;\tat org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.scandidateComponents(ClassPathScan宁CandidateComponent Provider.java:454)"\tat org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponent(ClassPathScan宁CandidatecomponentProvider.java:316)"quot;\tat org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:275)"\tat org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnorationParser.java:132)"\tat org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:288)"\tat org.springframework.context.annotations.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245

这似乎是maven缓存中损坏的库的问题。https://github.com/spring-projects/spring-boot/issues/6443和https://gitter.im/spring-projects/spring-boot/archives/2017/08/03.要解决这个问题,您应该清理您的maven缓存。此处介绍了一些实现此功能的选项。

相关内容

  • 没有找到相关文章

最新更新