cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello,

I followed this blog post to access an OData service with the Cloud Platform SDK. I Used a custom OData Service instead of the standard Businesspartner OData service and a R3 ERP on-Premise backend system instead of S/4 HANA.

If I deploy the app to my Cloud Foundry subaccount it is working fine and my OData service is executed via Cloud Connector and destination service on my on-premise backend.

If I try to execute the same application on the local tomee server the on-premise backend system is not reached.

My destination on my subaccount looks like this:

If I pass all the information (URL,User,Password) to the local destination it is not working...

The same erroppr apperas on executing the integration tests.

What must I do to access my on-premise backlend from localhost?

Best regards,

Chris

View Entire Topic
christoffer_fuss
Participant
0 Likes

the connection is working now, dont know why but the integration test is still not working:

I check in the integration test for the tiles request the status code 200 but I get 404 (not found).

In the localhost I get the status 200 but not in the integration test. Here is then log:

[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 8.018 s <<< FAILURE! - in de.datatrain.TPServletTest
[ERROR] testService(de.datatrain.TPServletTest)  Time elapsed: 1.872 s  <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <404>.

        at de.datatrain.TPServletTest.testService(TPServletTest.java:57)

Dez 08, 2019 1:31:41 PM org.apache.coyote.AbstractProtocol stop
INFORMATION: Stopping ProtocolHandler ["http-nio-56655"]
Dez 08, 2019 1:31:41 PM org.apache.coyote.AbstractProtocol pause
INFORMATION: Pausing ProtocolHandler ["http-nio-56655"]
Dez 08, 2019 1:31:41 PM org.apache.catalina.core.StandardService stopInternal
INFORMATION: Stopping service [Tomcat]
[main] INFO org.apache.cxf.management.jmx.InstrumentationManagerImpl - unregistering MBean org.apache.cxf:bus.id=openejb.cxf.bus,type=Bus,instance.id=1907808127
Dez 08, 2019 1:31:41 PM org.apache.coyote.AbstractProtocol destroy
INFORMATION: Destroying ProtocolHandler ["http-nio-56655"]
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures: 
[ERROR]   TPServletTest.testService:57 1 expectation failed.
Expected status code <200> but was <404>.

[INFO]
[ERROR] Tests run: 2, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for jcocf - Root 1.0-SNAPSHOT:
[INFO]
[INFO] jcocf - Root ....................................... SUCCESS [  0.547 s]
[INFO] jcocf - Application ................................ SUCCESS [ 13.939 s]
[INFO] jcocf - Unit Tests ................................. SUCCESS [  3.722 s]
[INFO] jcocf - Integration Tests .......................... FAILURE [ 22.132 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  40.557 s
[INFO] Finished at: 2019-12-08T13:31:41+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project jcocf-integration-tests: There are test failures.
[ERROR]
[ERROR] Please refer to H:\dev\jcocf\integration-tests\target\surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :jcocf-integration-tests