Closed adigupta05 closed 1 month ago
supplierComplaint-srv-2024-07-19 09_13_08.718+0000.txt Attaching the logs.
Hi @adigupta05, from the logs I can't see where a destination is not being read. The only error I find is com.sap.cds.services.ServiceException: Plant is a required field.
To me, this looks unrelated.
Regardless, please update to the latest Cloud SDK version 5.10.0
. Also, I can see you have a mix of Cloud SDK versions, with some version 3 modules still being used. Please remove them from your project:
+- com.sap.cloud.sdk.testutil:testutil-core:jar:3.78.0:test | +- com.sap.cloud.sdk.cloudplatform:auditlog:jar:3.78.0:test | +- com.sap.cloud.sdk.cloudplatform:servlet:jar:3.78.0:test | +- com.sap.cloud.sdk.testutil:testutil-resources:jar:3.78.0:test
In addition, please make sure the behaviour you are seeing is not caused by caching. To test for this, simply disable the cache temporarily. If this impacts the behaviour, turn the cache back on with a shorter duration. Alternatively, you can also explicitly empty the cache at runtime by calling e.g. com.sap.cloud.sdk.cloudplatform.cache.CacheManager.invalidateAll()
.
If you believe caching is not working as documented, please increase the log level of com.sap.cloud.sdk.connectivity
packages to DEBUG and share an example where a cached value is served, but shouldn't be served.
I assume the issue is resolved in the meantime. Therefore I'm closing the item.
Hi Team, When we are configuring a destination in the BTP and trying to fetch it from our Java Application, it is working fine as expected. But whenever, we update the same destination it does not work and we have to delete that destination and create it after sometime.
Can you please let us know if there is any specific behaviour of Destination Service which we need to take care. This is causing blocker for us as again and again we have to wait for sometime and create a new destination.
Impact / Priority
It is impacting the functionality
Error Message
--- maven-dependency-plugin:2.8:tree (default-cli) @ cmh-common --- [INFO] com.sap.ic:cmh-common:jar:1.0.0 [INFO] +- com.sap.cds:cds-starter-spring-boot:jar:2.10.1:compile [INFO] | +- com.sap.cds:cds-services-api:jar:2.10.1:compile [INFO] | | +- com.sap.cds:cds4j-api:jar:2.10.1:compile [INFO] | | - com.sap.cloud.environment.servicebinding.api:java-core-api:jar:0.10.2:compile [INFO] | +- com.sap.cds:cds-services-impl:jar:2.10.1:runtime [INFO] | | +- com.sap.cds:cds-services-utils:jar:2.10.1:compile [INFO] | | | +- io.opentelemetry:opentelemetry-api:jar:1.25.0:compile [INFO] | | | | - io.opentelemetry:opentelemetry-context:jar:1.25.0:compile [INFO] | | | - com.sap.cloud.mt:tools:jar:2.10.1:compile [INFO] | | +- com.sap.cds:cds-services-messaging:jar:2.10.1:runtime [INFO] | | | - jakarta.jms:jakarta.jms-api:jar:3.1.0:runtime [INFO] | | +- com.sap.cds:cds4j-core:jar:2.10.1:compile [INFO] | | +- com.sap.cloud.environment.servicebinding.api:java-access-api:jar:0.10.2:compile [INFO] | | - org.apache.commons:commons-csv:jar:1.10.0:runtime [INFO] | +- com.sap.cds:cds-feature-jdbc:jar:2.10.1:runtime [INFO] | | +- com.sap.cds:cds4j-runtime:jar:2.10.1:runtime [INFO] | | | - com.sap.cds:cds4j-jdbc-spi:jar:2.10.1:runtime [INFO] | | - com.sap.cds:cds4j-tx:jar:2.10.1:runtime [INFO] | +- com.sap.cds:cds-framework-spring-boot:jar:2.10.1:runtime [INFO] | | - com.sap.cds:cds-adapter-api:jar:2.10.1:compile [INFO] | +- org.springframework.boot:spring-boot-starter-web:jar:3.2.2:compile [INFO] | | +- org.springframework.boot:spring-boot-starter-json:jar:3.1.6:compile [INFO] | | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.15.3:compile [INFO] | | | - com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.15.3:compile [INFO] | | +- org.springframework.boot:spring-boot-starter-tomcat:jar:3.1.6:compile [INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:10.1.19:compile [INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:10.1.16:compile [INFO] | | | - org.apache.tomcat.embed:tomcat-embed-websocket:jar:10.1.19:compile [INFO] | | - org.springframework:spring-webmvc:jar:6.0.14:compile [INFO] | | - org.springframework:spring-expression:jar:6.0.14:compile [INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:3.1.6:compile [INFO] | | +- com.zaxxer:HikariCP:jar:5.0.1:compile [INFO] | | - org.springframework:spring-jdbc:jar:6.0.14:compile [INFO] | | - org.springframework:spring-tx:jar:6.0.14:compile [INFO] | - org.yaml:snakeyaml:jar:2.2:compile [INFO] +- com.sap.cds:cds-starter-cloudfoundry:jar:2.10.1:compile [INFO] | +- com.sap.cds:cds-feature-hana:jar:2.10.1:compile [INFO] | | - com.sap.cloud.db.jdbc:ngdbc:jar:2.20.17:compile [INFO] | +- com.sap.cds:cds-feature-mt:jar:2.10.1:compile [INFO] | | +- com.sap.cds:cds-integration-cloud-sdk:jar:2.10.1:compile [INFO] | | | - com.sap.cloud.sdk.frameworks:resilience4j:jar:4.31.0:compile [INFO] | | +- com.sap.cloud.mt:cds-mtx:jar:2.10.1:compile [INFO] | | +- com.sap.cloud.mt:multi-tenant-runtime:jar:2.10.1:compile [INFO] | | - com.sap.cloud.mt:multi-tenant-subscription:jar:2.10.1:compile [INFO] | | +- com.sap.cloud.instancemanager:client:jar:3.14.0:compile [INFO] | | - org.apache.commons:commons-collections4:jar:4.4:compile [INFO] | +- com.sap.cds:cds-feature-cloudfoundry:jar:2.10.1:compile [INFO] | | - com.sap.cloud.environment.servicebinding:java-sap-vcap-services:jar:0.10.2:compile [INFO] | +- com.sap.cds:cds-feature-xsuaa:jar:2.10.1:compile [INFO] | +- com.sap.cds:cds-feature-identity:jar:2.10.1:compile [INFO] | | - com.sap.cloud.security:java-api:jar:3.3.1:compile [INFO] | +- com.sap.cloud.security.xsuaa:xsuaa-spring-boot-starter:jar:3.3.1:compile [INFO] | | +- ch.qos.logback:logback-core:jar:1.4.14:compile [INFO] | | +- ch.qos.logback:logback-classic:jar:1.4.14:compile [INFO] | | +- com.sap.cloud.security.xsuaa:spring-xsuaa:jar:3.3.1:compile [INFO] | | | - org.apache.logging.log4j:log4j-to-slf4j:jar:2.20.0:compile [INFO] | | | - org.apache.logging.log4j:log4j-api:jar:2.20.0:compile [INFO] | | +- org.springframework.security:spring-security-oauth2-jose:jar:6.1.5:compile [INFO] | | | +- org.springframework.security:spring-security-core:jar:6.1.8:compile [INFO] | | | | - org.springframework.security:spring-security-crypto:jar:6.1.5:compile [INFO] | | | +- org.springframework.security:spring-security-oauth2-core:jar:6.1.5:compile [INFO] | | | - com.nimbusds:nimbus-jose-jwt:jar:9.37.2:compile [INFO] | | | - com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile [INFO] | | - org.springframework.security:spring-security-oauth2-resource-server:jar:6.1.5:compile [INFO] | +- com.sap.cloud.security:resourceserver-security-spring-boot-starter:jar:3.3.1:compile [INFO] | | +- com.sap.cloud.security:spring-security:jar:3.3.1:compile [INFO] | | - org.springframework.boot:spring-boot-autoconfigure:jar:3.1.6:compile [INFO] | - org.springframework.boot:spring-boot-starter-security:jar:3.1.6:compile [INFO] | +- org.springframework:spring-aop:jar:6.0.14:compile [INFO] | +- org.springframework.security:spring-security-config:jar:6.1.5:compile [INFO] | - org.springframework.security:spring-security-web:jar:6.1.7:compile [INFO] +- com.sap.cds:cds-starter-spring-boot-odata:jar:2.10.1:compile [INFO] | - com.sap.cds:cds-adapter-odata-v4:jar:2.10.1:runtime [INFO] | - com.sap.cds.repackaged:odata-v4-lib:jar:2.10.1:runtime [INFO] | - com.fasterxml:aalto-xml:jar:1.3.2:runtime [INFO] +- io.pivotal.cfenv:java-cfenv-boot:jar:2.4.1:compile [INFO] | +- io.pivotal.cfenv:java-cfenv:jar:2.4.1:compile [INFO] | +- io.pivotal.cfenv:java-cfenv-jdbc:jar:2.4.1:compile [INFO] | - org.springframework.boot:spring-boot:jar:3.1.6:compile [INFO] | - org.springframework:spring-context:jar:6.0.14:compile [INFO] +- com.sap.cloud.sdk:sdk-core:jar:5.3.0:compile [INFO] | +- com.sap.cloud.sdk.cloudplatform:cloudplatform-connectivity:jar:5.3.0:compile [INFO] | | +- com.sap.cloud.sdk.cloudplatform:resilience-api:jar:5.3.0:compile [INFO] | | - org.bouncycastle:bcpkix-jdk18on:jar:1.77:compile [INFO] | | - org.bouncycastle:bcutil-jdk18on:jar:1.77:compile [INFO] | +- com.sap.cloud.sdk.cloudplatform:connectivity-destination-service:jar:5.3.0:compile [INFO] | | +- com.github.ben-manes.caffeine:caffeine:jar:3.1.8:compile [INFO] | | +- commons-io:commons-io:jar:2.15.1:compile [INFO] | | - com.sap.cloud.environment.servicebinding.api:java-consumption-api:jar:0.10.2:compile [INFO] | +- com.sap.cloud.sdk.cloudplatform:connectivity-oauth:jar:5.3.0:compile [INFO] | | - com.sap.cloud.security.xsuaa:token-client:jar:3.3.1:compile [INFO] | +- com.sap.cloud.sdk.cloudplatform:cloudplatform-core:jar:5.3.0:compile [INFO] | +- com.sap.cloud.sdk.cloudplatform:tenant:jar:5.3.0:compile [INFO] | +- com.sap.cloud.sdk.cloudplatform:security:jar:5.3.0:compile [INFO] | +- com.sap.cloud.sdk.cloudplatform:resilience:jar:5.3.0:compile [INFO] | | - com.sap.cloud.sdk.cloudplatform:resilience4j:jar:5.3.0:compile [INFO] | | +- io.github.resilience4j:resilience4j-circuitbreaker:jar:2.2.0:compile [INFO] | | | - io.github.resilience4j:resilience4j-core:jar:2.2.0:compile [INFO] | | +- io.github.resilience4j:resilience4j-bulkhead:jar:2.2.0:compile [INFO] | | +- io.github.resilience4j:resilience4j-timelimiter:jar:2.2.0:compile [INFO] | | +- io.github.resilience4j:resilience4j-retry:jar:2.2.0:compile [INFO] | | +- io.github.resilience4j:resilience4j-ratelimiter:jar:2.2.0:compile [INFO] | | - javax.cache:cache-api:jar:1.1.1:compile [INFO] | - com.sap.cloud.sdk.cloudplatform:caching:jar:5.3.0:compile [INFO] +- com.sap.cp.auditlog:audit-java-client-api:jar:2.4.3:compile [INFO] +- com.sap.cp.auditlog:audit-java-client-impl:jar:2.4.3:compile [INFO] | +- com.sap.cloud.security:java-security:jar:3.3.1:compile [INFO] | +- com.sap.cloud.security:env:jar:3.3.1:compile [INFO] | | +- com.sap.cloud.environment.servicebinding:java-sap-service-operator:jar:0.10.2:compile [INFO] | | - org.json:json:jar:20231013:compile [INFO] | +- com.sap.cp.auditlog:auditlog-common:jar:2.2.16:compile [INFO] | - org.apache.httpcomponents:httpclient:jar:4.5.14:compile [INFO] | +- commons-logging:commons-logging:jar:1.2:compile [INFO] | - commons-codec:commons-codec:jar:1.15:compile [INFO] +- com.sap.hcp.cf.logging:cf-java-logging-support-logback:jar:3.7.0:runtime [INFO] | - com.sap.hcp.cf.logging:cf-java-logging-support-core:jar:3.7.0:compile [INFO] | - com.fasterxml.jackson.jr:jackson-jr-objects:jar:2.15.3:compile [INFO] +- com.sap.hcp.cf.logging:cf-java-logging-support-servlet-jakarta:jar:3.7.0:compile [INFO] | - com.auth0:java-jwt:jar:4.4.0:compile [INFO] +- com.sap.cloud.sdk.cloudplatform:servlet-jakarta:jar:5.3.0:compile [INFO] | +- org.slf4j:slf4j-api:jar:2.0.9:compile [INFO] | - io.vavr:vavr:jar:0.10.4:compile [INFO] | - io.vavr:vavr-match:jar:0.10.4:compile [INFO] +- jakarta.servlet:jakarta.servlet-api:jar:6.0.0:provided [INFO] +- com.sap.core.jdsr:com.sap.js.passport.api:jar:1.4.0:compile [INFO] +- org.projectlombok:lombok:jar:1.18.30:provided [INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.16.0:compile [INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.15.3:compile [INFO] | - org.codehaus.woodstox:stax2-api:jar:4.2.1:compile [INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.16.0:compile [INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.16.0:compile [INFO] +- com.github.vladimir-bukhtoyarov:bucket4j-core:jar:7.5.0:compile [INFO] +- org.jsoup:jsoup:jar:1.16.1:compile [INFO] +- org.javers:javers-core:jar:6.2.4:compile [INFO] | +- org.picocontainer:picocontainer:jar:2.15:runtime [INFO] | - io.github.classgraph:classgraph:jar:4.8.78:runtime [INFO] +- javax.mail:javax.mail-api:jar:1.6.2:compile [INFO] +- com.sun.mail:javax.mail:jar:1.6.2:compile [INFO] | - javax.activation:activation:jar:1.1:compile [INFO] +- org.apache.jclouds.provider:aws-s3:jar:2.5.0:compile [INFO] | - org.apache.jclouds.api:s3:jar:2.5.0:compile [INFO] | +- org.apache.jclouds.api:sts:jar:2.5.0:compile [INFO] | | - org.apache.jclouds:jclouds-core:jar:2.5.0:compile [INFO] | | +- com.google.inject:guice:jar:5.0.1:compile [INFO] | | | +- javax.inject:javax.inject:jar:1:compile [INFO] | | | - aopalliance:aopalliance:jar:1.0:compile [INFO] | | +- com.google.inject.extensions:guice-assistedinject:jar:5.0.1:compile [INFO] | | +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile [INFO] | | - javax.annotation:javax.annotation-api:jar:1.2:compile [INFO] | - org.apache.jclouds:jclouds-blobstore:jar:2.5.0:compile [INFO] +- com.google.code.gson:gson:jar:2.8.9:compile [INFO] +- com.sun.xml.bind:jaxb-core:jar:4.0.0:compile [INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:4.0.1:compile [INFO] | | - jakarta.activation:jakarta.activation-api:jar:2.1.2:compile [INFO] | - org.eclipse.angus:angus-activation:jar:2.0.1:runtime [INFO] +- javax.xml.bind:jaxb-api:jar:2.3.0:compile [INFO] +- com.sun.xml.bind:jaxb-impl:jar:3.0.0:runtime [INFO] +- org.junit.vintage:junit-vintage-engine:jar:5.2.0:test [INFO] | +- org.apiguardian:apiguardian-api:jar:1.0.0:test [INFO] | - org.junit.platform:junit-platform-engine:jar:1.9.3:test [INFO] | +- org.opentest4j:opentest4j:jar:1.2.0:test [INFO] | - org.junit.platform:junit-platform-commons:jar:1.9.3:test [INFO] +- org.springframework.boot:spring-boot-starter-test:jar:3.1.6:test [INFO] | +- org.springframework.boot:spring-boot-starter:jar:3.1.6:compile [INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:3.1.6:compile [INFO] | | | - org.slf4j:jul-to-slf4j:jar:2.0.9:compile [INFO] | | - jakarta.annotation:jakarta.annotation-api:jar:2.1.1:compile [INFO] | +- org.springframework.boot:spring-boot-test:jar:3.1.6:test [INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:3.1.6:test [INFO] | +- com.jayway.jsonpath:json-path:jar:2.8.0:test [INFO] | +- net.minidev:json-smart:jar:2.4.11:test [INFO] | | - net.minidev:accessors-smart:jar:2.4.11:test [INFO] | +- org.assertj:assertj-core:jar:3.24.2:test [INFO] | +- org.hamcrest:hamcrest:jar:2.2:test [INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.9.3:test [INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.9.3:test [INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.9.3:test [INFO] | | - org.junit.jupiter:junit-jupiter-engine:jar:5.9.3:test [INFO] | +- org.mockito:mockito-junit-jupiter:jar:5.3.1:test [INFO] | +- org.skyscreamer:jsonassert:jar:1.5.1:test [INFO] | | - com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test [INFO] | +- org.springframework:spring-core:jar:6.0.14:compile [INFO] | | - org.springframework:spring-jcl:jar:6.0.14:compile [INFO] | +- org.springframework:spring-test:jar:6.0.14:test [INFO] | - org.xmlunit:xmlunit-core:jar:2.9.1:test [INFO] +- junit:junit:jar:4.13.2:test [INFO] | - org.hamcrest:hamcrest-core:jar:2.2:test [INFO] +- org.mockito:mockito-core:jar:3.9.0:test [INFO] | +- net.bytebuddy:byte-buddy:jar:1.14.10:test [INFO] | +- net.bytebuddy:byte-buddy-agent:jar:1.14.10:test [INFO] | - org.objenesis:objenesis:jar:3.2:test [INFO] +- com.sap.cloud.sdk.testutil:testutil-core:jar:3.78.0:test [INFO] | +- com.sap.cloud.sdk.cloudplatform:auditlog:jar:3.78.0:test [INFO] | +- com.sap.cloud.sdk.cloudplatform:servlet:jar:3.78.0:test [INFO] | +- com.sap.cloud.sdk.s4hana:s4hana-core:jar:5.3.0:test [INFO] | +- com.sap.cloud.sdk.s4hana:s4hana-connectivity:jar:5.3.0:test [INFO] | +- com.sap.cloud.sdk.testutil:testutil-resources:jar:3.78.0:test [INFO] | +- org.slf4j:jcl-over-slf4j:jar:2.0.9:runtime [INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile [INFO] | +- com.google.guava:guava:jar:32.0.1-jre:compile [INFO] | | +- com.google.guava:failureaccess:jar:1.0.1:compile [INFO] | | +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile [INFO] | | - com.google.j2objc:j2objc-annotations:jar:2.8:compile [INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.15.3:test [INFO] | +- com.mikesamuel:json-sanitizer:jar:1.2.3:compile [INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.24.1:compile [INFO] | +- com.github.tomakehurst:wiremock:jar:2.27.2:test [INFO] | | +- org.eclipse.jetty:jetty-server:jar:11.0.18:test [INFO] | | | +- org.eclipse.jetty.toolchain:jetty-jakarta-servlet-api:jar:5.0.2:test [INFO] | | | +- org.eclipse.jetty:jetty-http:jar:11.0.18:test [INFO] | | | - org.eclipse.jetty:jetty-io:jar:11.0.18:test [INFO] | | +- org.eclipse.jetty:jetty-servlet:jar:11.0.18:test [INFO] | | | - org.eclipse.jetty:jetty-security:jar:11.0.18:test [INFO] | | +- org.eclipse.jetty:jetty-servlets:jar:11.0.18:test [INFO] | | | - org.eclipse.jetty:jetty-util:jar:11.0.18:test [INFO] | | +- org.eclipse.jetty:jetty-webapp:jar:11.0.18:test [INFO] | | | - org.eclipse.jetty:jetty-xml:jar:11.0.18:test [INFO] | | +- org.eclipse.jetty:jetty-proxy:jar:11.0.18:test [INFO] | | | - org.eclipse.jetty:jetty-client:jar:11.0.18:test [INFO] | | | - org.eclipse.jetty:jetty-alpn-client:jar:11.0.18:test [INFO] | | +- org.xmlunit:xmlunit-legacy:jar:2.9.1:test [INFO] | | +- org.xmlunit:xmlunit-placeholders:jar:2.9.1:test [INFO] | | +- net.sf.jopt-simple:jopt-simple:jar:5.0.3:test [INFO] | | +- com.github.jknack:handlebars-helpers:jar:4.0.7:test [INFO] | | +- com.flipkart.zjsonpatch:zjsonpatch:jar:0.4.4:test [INFO] | | - commons-fileupload:commons-fileupload:jar:1.5:test [INFO] | +- org.ow2.asm:asm:jar:9.3:test [INFO] | - org.apache.httpcomponents:httpcore:jar:4.4.16:compile [INFO] +- com.sap.cloud.sdk.datamodel:odata-core:jar:5.3.0:compile [INFO] | +- com.sap.cloud.sdk.datamodel:odata-client:jar:5.3.0:compile [INFO] | +- com.sap.cloud.sdk.cloudplatform:connectivity-apache-httpclient4:jar:5.3.0:compile [INFO] | +- com.sap.cloud.sdk.datamodel:fluent-result:jar:5.3.0:compile [INFO] | - org.apache.commons:commons-lang3:jar:3.12.0:compile [INFO] +- com.sap.cloud.sdk.datamodel:openapi-core:jar:5.3.0:compile [INFO] | +- com.sap.cloud.sdk.cloudplatform:connectivity-apache-httpclient5:jar:5.3.0:compile [INFO] | | - org.apache.httpcomponents.core5:httpcore5:jar:5.2.3:compile [INFO] | +- org.apache.httpcomponents.client5:httpclient5:jar:5.2.1:compile [INFO] | | - org.apache.httpcomponents.core5:httpcore5-h2:jar:5.2.3:compile [INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.15.3:compile [INFO] | - org.springframework:spring-web:jar:6.0.19:compile [INFO] | +- org.springframework:spring-beans:jar:6.0.14:compile [INFO] | - io.micrometer:micrometer-observation:jar:1.11.6:compile [INFO] | - io.micrometer:micrometer-commons:jar:1.11.6:compile [INFO] - org.bouncycastle:bcprov-jdk18on:jar:1.78:compile
Project Details
https://github.tools.sap/ComplaintHandling/ICHAMP/blob/30a94ab14bcb1e08a5b39dd825f04497005325b2/cmh-common/src/main/java/com/sap/ic/cmh/network/service/DestinationService.java#L117
Checklist