Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Returns 404 on calling an external service

Offen
#1,300 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Aktiv
Tech-Stack
java
Bereich
api, backend, cloud

Rechercherichtung

Start with Generic-Handler/srv/src/main/java/com/sap/ipe/ble/irp/handler/services/HttpDestinationService.java at lines 75–94 and inspect how the SAP Cloud SDK 5.34.0 client builds and executes the request. Reproduce the external-service call using the stated endpoint and deployment flow, then verify that the call succeeds and the two extension fields are updated as expected.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug
Describe the Bug

We are facing 404 Not Found error when we try to invoke a service that is exposed in our extension application . This issue has happened after the upgrading the sdk library version 5.34.0.Please help to rectify the issue.

https://github.tools.sap/SAP-Returnable-Packaging-Management/Extension/blob/mod_upgrade/Generic-Handler/srv/src/main/java/com/sap/ipe/ble/irp/handler/services/HttpDestinationService.java#L75C5-L94C6

Endpoint which we are trying to invoke is up and running.
https://returnables-ext-srv-extensibility.cfapps.eu10-004.hana.ondemand.com/odata/v4/com.sap.ipe.ble.remotehandler.RemoteHandlerService/Handle

Steps to Reproduce
  1. Login to https://portugal-ns3rvsp2-irp-approuter-test.cfapps.eu10-004.hana.ondemand.com/cp.portal/site#Shell-home using the creadentials : [email protected] / Rpm@2702

  2. Click on tile "Manage Posting Documents"

  3. Select a posting document and click on the button "Correction Postings" and click on "Correction Postings" button in the dailog.

Expected Behavior

We should we allowed to call the service in the background and the columns "Manage Posting Document Ext Feild1" should be updated with value CAP and "Manage Posting Document Ext Feild2" should be updated with value 9.

Screenshots

No response

Used Versions
  • Java and Maven version via mvn --version:

Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5)
Maven home: C:\Program Files\apache-maven-3.9.16
Java version: 25.0.4.1, vendor: SAP SE, runtime: C:\Program Files\SapMachine\JDK\25
Default locale: en_IN, platform encoding: UTF-8
OS name: "windows 11", version: "10.0", arch: "amd64", family: "windows"

  • SAP Cloud SDK version: 5.34.0

  • Spring Boot Version: 4.1.1

  • CAP version: 5.1.0

Dependency tree via mvn dependency:tree
[INFO] --- dependency:3.7.0:tree (default-cli) @ generic-handler ---
[INFO] com.sap.ipe.ble:generic-handler:jar:3.0.0
[INFO] +- com.sap.cds:cds-services-impl:jar:5.1.0:compile
[INFO] |  +- com.sap.cds:cds-services-api:jar:5.1.0:compile
[INFO] |  |  +- com.sap.cds:cds4j-api:jar:5.1.0:compile
[INFO] |  |  \- com.sap.cloud.environment.servicebinding.api:java-core-api:jar:0.31.0:compile
[INFO] |  +- com.sap.cds:cds-services-utils:jar:5.1.0:compile
[INFO] |  |  +- com.sap.cds:cds-adapter-api:jar:5.1.0:compile
[INFO] |  |  +- com.sap.cds:cds4j-runtime:jar:5.1.0:compile
[INFO] |  |  |  \- com.sap.cds:cds4j-jdbc-spi:jar:5.1.0:compile
[INFO] |  |  +- com.sap.cloud.sdk.cloudplatform:connectivity-oauth:jar:5.34.0:compile
[INFO] |  |  |  \- com.auth0:java-jwt:jar:4.6.0:compile
[INFO] |  |  +- io.opentelemetry:opentelemetry-api:jar:1.63.0:compile
[INFO] |  |  |  \- io.opentelemetry:opentelemetry-context:jar:1.63.0:compile
[INFO] |  |  |     \- io.opentelemetry:opentelemetry-common:jar:1.63.0:compile
[INFO] |  |  +- io.opentelemetry:opentelemetry-sdk:jar:1.63.0:compile
[INFO] |  |  |  +- io.opentelemetry:opentelemetry-sdk-common:jar:1.63.0:compile
[INFO] |  |  |  +- io.opentelemetry:opentelemetry-sdk-trace:jar:1.63.0:compile
[INFO] |  |  |  +- io.opentelemetry:opentelemetry-sdk-metrics:jar:1.63.0:compile
[INFO] |  |  |  \- io.opentelemetry:opentelemetry-sdk-logs:jar:1.63.0:compile
[INFO] |  |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.22.2:compile
[INFO] |  |  \- com.github.ben-manes.caffeine:caffeine:jar:3.2.4:compile
[INFO] |  +- com.sap.cds:cds-services-messaging:jar:5.1.0:compile
[INFO] |  |  \- jakarta.jms:jakarta.jms-api:jar:3.1.0:compile
[INFO] |  +- com.sap.cds:cds4j-core:jar:5.1.0:compile
[INFO] |  +- com.sap.cds:cds4j-cql:jar:5.1.0:runtime
[INFO] |  |  \- org.antlr:antlr4-runtime:jar:4.13.2:runtime
[INFO] |  +- org.slf4j:slf4j-api:jar:2.0.18:compile
[INFO] |  +- com.sap.cloud.environment.servicebinding.api:java-access-api:jar:0.31.0:compile
[INFO] |  +- org.apache.commons:commons-csv:jar:1.14.1:compile
[INFO] |  |  \- commons-codec:commons-codec:jar:1.21.0:compile
[INFO] |  \- com.cronutils:cron-utils:jar:9.2.1:compile
[INFO] +- com.sap.cds:cds-feature-auditlog-v2:jar:5.1.0:compile
[INFO] |  +- com.sap.cds:cds-integration-cloud-sdk:jar:5.1.0:compile
[INFO] |  |  +- com.sap.cloud.sdk.cloudplatform:tenant:jar:5.34.0:compile
[INFO] |  |  +- com.sap.cloud.sdk.cloudplatform:security:jar:5.34.0:compile
[INFO] |  |  \- com.sap.cloud.sdk.cloudplatform:resilience:jar:5.34.0:compile
[INFO] |  |     +- com.sap.cloud.sdk.cloudplatform:resilience-api:jar:5.34.0:compile
[INFO] |  |     \- com.sap.cloud.sdk.cloudplatform:resilience4j:jar:5.34.0:compile
[INFO] |  |        +- io.github.resilience4j:resilience4j-core:jar:2.4.0:compile
[INFO] |  |        +- io.github.resilience4j:resilience4j-circuitbreaker:jar:2.4.0:compile
[INFO] |  |        +- io.github.resilience4j:resilience4j-bulkhead:jar:2.4.0:compile
[INFO] |  |        +- io.github.resilience4j:resilience4j-timelimiter:jar:2.4.0:compile
[INFO] |  |        +- io.github.resilience4j:resilience4j-retry:jar:2.4.0:compile
[INFO] |  |        +- io.github.resilience4j:resilience4j-ratelimiter:jar:2.4.0:compile
[INFO] |  |        \- javax.cache:cache-api:jar:1.1.1:compile
[INFO] |  +- com.sap.cloud.sdk.cloudplatform:connectivity-apache-httpclient5:jar:5.34.0:compile
[INFO] |  |  +- com.sap.cloud.sdk.cloudplatform:cloudplatform-core:jar:5.34.0:compile
[INFO] |  |  +- com.sap.cloud.sdk.cloudplatform:cloudplatform-connectivity:jar:5.34.0:compile
[INFO] |  |  |  +- com.mikesamuel:json-sanitizer:jar:1.2.3:compile
[INFO] |  |  |  +- org.bouncycastle:bcprov-jdk18on:jar:1.84:compile
[INFO] |  |  |  \- org.bouncycastle:bcpkix-jdk18on:jar:1.84:compile
[INFO] |  |  |     \- org.bouncycastle:bcutil-jdk18on:jar:1.84:compile
[INFO] |  |  +- com.sap.cloud.sdk.cloudplatform:caching:jar:5.34.0:compile
[INFO] |  |  +- org.slf4j:jcl-over-slf4j:jar:2.0.18:runtime
[INFO] |  |  +- org.apache.httpcomponents.client5:httpclient5:jar:5.6.4:compile
[INFO] |  |  |  \- org.apache.httpcomponents.core5:httpcore5-h2:jar:5.4.3:compile
[INFO] |  |  \- org.apache.httpcomponents.core5:httpcore5:jar:5.4.3:compile
[INFO] |  +- com.sap.cloud.sjb:xs-env:jar:2.27.0:compile
[INFO] |  |  \- com.fasterxml.jackson.core:jackson-core:jar:2.22.2:compile
[INFO] |  +- com.sap.cloud.security:java-security:jar:4.0.0:compile
[INFO] |  |  +- com.sap.cloud.security:java-api:jar:4.0.0:compile
[INFO] |  |  \- com.sap.cloud.security.xsuaa:token-client:jar:4.0.0:compile
[INFO] |  +- com.sap.cloud.security:env:jar:4.0.0:compile
[INFO] |  |  +- com.sap.cloud.environment.servicebinding:java-sap-vcap-services:jar:0.31.0:compile
[INFO] |  |  +- com.sap.cloud.environment.servicebinding:java-sap-service-operator:jar:0.31.0:compile
[INFO] |  |  +- com.sap.cloud.environment.servicebinding.api:java-consumption-api:jar:0.31.0:compile
[INFO] |  |  \- org.json:json:jar:20251224:compile
[INFO] |  \- commons-validator:commons-validator:jar:1.11.0:compile
[INFO] |     +- commons-beanutils:commons-beanutils:jar:1.11.0:compile
[INFO] |     +- commons-digester:commons-digester:jar:2.1:compile
[INFO] |     +- commons-logging:commons-logging:jar:1.3.6:compile
[INFO] |     \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] +- com.sap.cloud.sdk.cloudplatform:scp-cf:jar:5.34.0:compile
[INFO] |  \- com.sap.cloud.sdk:sdk-core:jar:5.34.0:compile
[INFO] |     +- com.sap.cloud.sdk.cloudplatform:connectivity-destination-service:jar:5.34.0:compile
[INFO] |     \- com.sap.cloud.sdk.cloudplatform:servlet-jakarta:jar:5.34.0:compile
[INFO] +- com.sap.cloud.sdk.datamodel:odata-client:jar:5.34.0:compile
[INFO] |  +- com.sap.cloud.sdk.datamodel:fluent-result:jar:5.34.0:compile
[INFO] |  +- com.sap.cloud.sdk.cloudplatform:connectivity-apache-httpclient4:jar:5.34.0:compile
[INFO] |  +- io.vavr:vavr:jar:1.0.1:compile
[INFO] |  |  +- io.vavr:vavr-match:jar:1.0.0:compile
[INFO] |  |  \- org.jspecify:jspecify:jar:1.0.1:compile
[INFO] |  +- com.google.guava:guava:jar:33.7.1-jre:compile
[INFO] |  |  +- com.google.guava:failureaccess:jar:1.0.3:compile
[INFO] |  |  +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] |  |  +- com.google.errorprone:error_prone_annotations:jar:2.50.0:compile
[INFO] |  |  \- com.google.j2objc:j2objc-annotations:jar:3.1:compile
[INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.5.14:compile
[INFO] |  +- org.apache.httpcomponents:httpcore:jar:4.4.16:compile
[INFO] |  +- com.google.code.gson:gson:jar:2.13.2:compile
[INFO] |  \- org.apache.commons:commons-lang3:jar:3.20.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter:jar:4.1.1:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter-logging:jar:4.1.1:compile
[INFO] |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.25.5:compile
[INFO] |  |  |  \- org.apache.logging.log4j:log4j-api:jar:2.25.5:compile
[INFO] |  |  \- org.slf4j:jul-to-slf4j:jar:2.0.18:compile
[INFO] |  +- org.springframework.boot:spring-boot-autoconfigure:jar:4.1.1:compile
[INFO] |  |  \- org.springframework.boot:spring-boot:jar:4.1.1:compile
[INFO] |  |     \- org.springframework:spring-context:jar:7.0.9:compile
[INFO] |  |        +- org.springframework:spring-aop:jar:7.0.9:compile
[INFO] |  |        +- org.springframework:spring-beans:jar:7.0.9:compile
[INFO] |  |        +- org.springframework:spring-expression:jar:7.0.9:compile
[INFO] |  |        \- io.micrometer:micrometer-observation:jar:1.17.1:compile
[INFO] |  |           \- io.micrometer:micrometer-commons:jar:1.17.1:compile
[INFO] |  +- jakarta.annotation:jakarta.annotation-api:jar:3.0.0:compile
[INFO] |  \- org.yaml:snakeyaml:jar:2.6:compile
[INFO] +- commons-io:commons-io:jar:2.22.0:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.48:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:4.1.1:test
[INFO] |  +- org.springframework.boot:spring-boot-test:jar:4.1.1:test
[INFO] |  +- org.springframework.boot:spring-boot-test-autoconfigure:jar:4.1.1:test
[INFO] |  +- com.jayway.jsonpath:json-path:jar:2.10.0:test
[INFO] |  +- jakarta.xml.bind:jakarta.xml.bind-api:jar:4.0.5:test
[INFO] |  |  \- jakarta.activation:jakarta.activation-api:jar:2.1.4:test
[INFO] |  +- net.minidev:json-smart:jar:2.6.0:test
[INFO] |  |  \- net.minidev:accessors-smart:jar:2.6.0:test
[INFO] |  |     \- org.ow2.asm:asm:jar:9.7.1:test
[INFO] |  +- org.assertj:assertj-core:jar:3.27.7:test
[INFO] |  |  \- net.bytebuddy:byte-buddy:jar:1.18.11:test
[INFO] |  +- org.awaitility:awaitility:jar:4.3.0:test
[INFO] |  +- org.hamcrest:hamcrest:jar:3.0:test
[INFO] |  +- org.junit.jupiter:junit-jupiter:jar:6.0.3:test
[INFO] |  |  +- org.junit.jupiter:junit-jupiter-api:jar:6.0.3:test
[INFO] |  |  |  +- org.opentest4j:opentest4j:jar:1.3.0:test
[INFO] |  |  |  +- org.junit.platform:junit-platform-commons:jar:6.0.3:test
[INFO] |  |  |  \- org.apiguardian:apiguardian-api:jar:1.1.2:test
[INFO] |  |  +- org.junit.jupiter:junit-jupiter-params:jar:6.0.3:test
[INFO] |  |  \- org.junit.jupiter:junit-jupiter-engine:jar:6.0.3:test
[INFO] |  |     \- org.junit.platform:junit-platform-engine:jar:6.0.3:test
[INFO] |  +- org.mockito:mockito-core:jar:5.23.0:test
[INFO] |  |  +- net.bytebuddy:byte-buddy-agent:jar:1.18.11:test
[INFO] |  |  \- org.objenesis:objenesis:jar:3.3:test
[INFO] |  +- org.mockito:mockito-junit-jupiter:jar:5.23.0:test
[INFO] |  +- org.skyscreamer:jsonassert:jar:1.5.3:test
[INFO] |  +- org.springframework:spring-core:jar:7.0.9:compile
[INFO] |  +- org.springframework:spring-test:jar:7.0.9:test
[INFO] |  \- org.xmlunit:xmlunit-core:jar:2.11.0:test
[INFO] +- tools.jackson.core:jackson-databind:jar:3.2.2:compile
[INFO] |  \- com.fasterxml.jackson.core:jackson-annotations:jar:2.22:compile
[INFO] \- tools.jackson.core:jackson-core:jar:3.2.2:compile
[INFO] ------------------------------------------------------------------------

Code Examples
private ClassicHttpResponse executeHttpPOST(HttpClient client, HttpPost httpPost, int timeOutConfig) throws ExtensionException{
        ClassicHttpResponse httpResponse;
        try {
            httpResponse = (ClassicHttpResponse) ResilienceDecorator.executeCallable(
                    (Callable) () ->
                            client.execute(httpPost), resilienceConfiguration
                            .timeLimiterConfiguration(ResilienceConfiguration.TimeLimiterConfiguration.of()
                                    .timeoutDuration(Duration.ofMillis(timeOutConfig))));
        }
        catch (Exception exception){
            log.error(Constants.HTTP_POST_ERROR + exception.getLocalizedMessage());
            if (exception.getMessage().contains(Constants.TIME_OUT_EXCEPTION_MESSAGE)) {
                throw new ExtensionException(Translator.toLocale(Constants.TIMEOUT_EXCEPTION));
            }
            else{
                throw new ExtensionException(Translator.toLocale(Constants.PROCESS_REQUEST_ERROR));
            }
        }
        return httpResponse;
    }
Stack Trace

No response

Log File
Log file ...
Affected Development Phase

Release

Impact

Blocked

Timeline

We have our CFD planned on 9th October.

Vorherrschende Sprache
Java
Sterne
41
Forks
33
Ø Merge
22 Std. 16 Min.
Gemergte PRs (30 T.)
19

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus SAP/cloud-sdk-java

Alle Issues in SAP/cloud-sdk-java

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.