<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: About CAP for Java errors in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415187#M4647571</link>
    <description>&lt;P&gt;CAP by default always try to read data from the Database using the PersistenceService. This is also what happens in your case and runs into an error as the database table is not available. If you want to read the data from somewhere else (e.g. the S/4 system) you need to explicitly forward the query to the S/4 system. You might want to look into Remote Services for this: &lt;A href="https://cap.cloud.sap/docs/java/remote-services" target="test_blank"&gt;https://cap.cloud.sap/docs/java/remote-services&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Aug 2021 13:37:51 GMT</pubDate>
    <dc:creator>marcbecker</dc:creator>
    <dc:date>2021-08-17T13:37:51Z</dc:date>
    <item>
      <title>About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaq-p/12415182</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;
  &lt;P&gt;I'm getting the following error, but I'm in trouble because I don't know how to deal with it ...&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
[Handler dispath failed; nested exception is java.lang.NoSuchMethodError;
'com.sap.cloud.sdk.datamodel.odata.client.expression.FieldUntyped com.sap.cloud.sdk.datamodel.odata.cli
ent.expression.FieldReference.ofPath(java.lang.Striong[])'] with root cause&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Timing:&lt;/P&gt;
  &lt;P&gt;This error is occurring in the Read process of the @On event. Correctly, "remote.run (selectQuery);" that is executed inside the Read process&lt;/P&gt;
  &lt;P&gt;There was an error in.&lt;/P&gt;
  &lt;P&gt;I'm not familiar with Java, so I'd appreciate it if you could tell me a little more about how to do it.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;rinn.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 12:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaq-p/12415182</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-11T12:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415183#M4647567</link>
      <description>&lt;P&gt;This is most likely a dependency issue. It seems like you are referencing a Cloud SDK version that is not compatible with the CAP Java version you are using. Please have a look at our public sample which always shows our recommended version combination: &lt;A href="https://github.com/SAP-samples/cloud-cap-samples-java/blob/main/pom.xml#L19-L21" target="test_blank"&gt;https://github.com/SAP-samples/cloud-cap-samples-java/blob/main/pom.xml#L19-L21&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 12:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415183#M4647567</guid>
      <dc:creator>marcbecker</dc:creator>
      <dc:date>2021-08-11T12:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415184#M4647568</link>
      <description>&lt;P&gt;Sorry for my late reply.&lt;/P&gt;&lt;P&gt;I was able to solve the local error here!&lt;/P&gt;&lt;P&gt;However, there is another problem.&lt;/P&gt;&lt;P&gt;First, the data cannot be acquired. 0 results will be returned as a search result ...&lt;/P&gt;&lt;P&gt;Second, I get an error in the deployed application. The content was logged as "Caused by: com.sap.cds.CdsDataStoreException: Error executing the statement".&lt;/P&gt;&lt;P&gt;If you like, I would appreciate your advice on this as well ...&lt;/P&gt;&lt;P&gt;By the way, the URL you are referring to is here.&lt;/P&gt;&lt;P&gt;&lt;A href="https://bnheise.medium.com/sap-tutorial-serving-data-from-an-on-premise-system-in-a-cap-java-application-part-1-2426175ad4fa"&gt;https://bnheise.medium.com/sap-tutorial-serving-data-from-an-on-premise-system-in-a-cap-java-application-part-1-2426175ad4fa&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 07:56:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415184#M4647568</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-17T07:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415185#M4647569</link>
      <description>&lt;P&gt;Can you please provide the full exception stacktrace for the error "Caused by: com.sap.cds.CdsDataStoreException: Error executing the statement"?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 09:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415185#M4647569</guid>
      <dc:creator>marcbecker</dc:creator>
      <dc:date>2021-08-17T09:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415186#M4647570</link>
      <description>&lt;A href="https://answers.sap.com/storage/temp/1968577-errorlog.txt"&gt;errorlog.txt&lt;/A&gt;&lt;P&gt;Thank you for your reply.
Attach the error log.
I was checking and thought, but is there a table in the DB? Was also seen.
Since the attached URL refers to S / 4 (On Premise) data, I have not added the table to the DB on HANA Cloud. Is this necessary?
I'm sorry to ask you various questions ...&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 10:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415186#M4647570</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-17T10:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415187#M4647571</link>
      <description>&lt;P&gt;CAP by default always try to read data from the Database using the PersistenceService. This is also what happens in your case and runs into an error as the database table is not available. If you want to read the data from somewhere else (e.g. the S/4 system) you need to explicitly forward the query to the S/4 system. You might want to look into Remote Services for this: &lt;A href="https://cap.cloud.sap/docs/java/remote-services" target="test_blank"&gt;https://cap.cloud.sap/docs/java/remote-services&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 13:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415187#M4647571</guid>
      <dc:creator>marcbecker</dc:creator>
      <dc:date>2021-08-17T13:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415188#M4647572</link>
      <description>&lt;P&gt;Thank you for posting the link.
I tried the contents of the remote service of the link. &lt;/P&gt;&lt;P&gt;However, there was no change in the error. (Contents that require Persistence Service) What else is missing?&lt;/P&gt;&lt;P&gt;
The following is the contents of each file. (Pom.xml has been added as described in the link.)&lt;/P&gt;&lt;P&gt;application.yaml&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;---
spring:
  config.activate.on-profile: default
  datasource:
    url: "jdbc:sqlite:file::memory:?cache=shared"
    driver-class-name: org.sqlite.JDBC
    hikari:
      maximum-pool-size: 1
  sql:
    init:
      mode: always
cds:
  application.services:
    - name: "OnPremiseService"
      model: "Entity1_SRV"
  remote.services:
    - name: "Entity1_SRV"
      destination:
        name: "dest"
        type: "odata-v2"
        suffix: "/sap/opu/odata/sap"
---
spring:
  config.activate.on-profile: cloud
cds:
  remote.services:
    - name: "Entity1_SRV"
      destination:
        name: "dest"
        type: "odata-v2"
        suffix: "/sap/opu/odata/sap"

&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;OnPremiseService.java&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;package com.sap.cap.productsservice.handlers;


import org.springframework.stereotype.Component;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;


import com.sap.cds.services.handler.annotations.ServiceName;
import com.sap.cds.services.handler.annotations.On;
import com.sap.cds.services.cds.CdsReadEventContext;
import com.sap.cds.services.handler.EventHandler;
import com.sap.cds.Result;
import com.sap.cds.ql.Select;
import com.sap.cds.ql.cqn.CqnSelect;
import com.sap.cds.services.cds.CqnService;
import com.sap.cds.services.cds.CdsService;


import cds.gen.Entity1_srv.*;


@Component
@ServiceName("OnPremiseService")
public class OnPremiseService implements EventHandler {
    @Autowired
    @Qualifier(Entity1Srv_.CDS_NAME)
    CqnService remote1;


    @On(event = CdsService.EVENT_READ, entity = Entity1_.CDS_NAME)
    public void onRead(CdsReadEventContext context) {
        CqnSelect selectQuery = Select.from(Entity1_.CDS_NAME);
        Result result = remote1.run(selectQuery);
        context.setResult(result);
    }


}
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Aug 2021 10:16:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415188#M4647572</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-18T10:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415189#M4647573</link>
      <description>&lt;P&gt;Can you please attach the pom.xml where you added the cds-feature-remote-odata dependency?&lt;BR /&gt;Please also provide the stacktrace of the error you are getting this time, so that I can have a detailed look.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 11:28:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415189#M4647573</guid>
      <dc:creator>marcbecker</dc:creator>
      <dc:date>2021-08-18T11:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415190#M4647574</link>
      <description>&lt;P&gt;Thank you. &lt;/P&gt;&lt;P&gt;Pom(root) are attached below.&lt;/P&gt;&lt;P&gt;The error log and Pom.xml (srv) did not fit, so I will attach it as text.&lt;/P&gt;&lt;P&gt;Pom.xml(root)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 &lt;A href="http://maven.apache.org/xsd/maven-4.0.0.xsd&amp;quot;&amp;gt;" target="test_blank"&gt;http://maven.apache.org/xsd/maven-4.0.0.xsd"&amp;gt;&lt;/A&gt;;
    &amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;

    &amp;lt;groupId&amp;gt;com.sap.cap&amp;lt;/groupId&amp;gt;
    &amp;lt;artifactId&amp;gt;capforjavaapp-parent&amp;lt;/artifactId&amp;gt;
    &amp;lt;version&amp;gt;${revision}&amp;lt;/version&amp;gt;
    &amp;lt;packaging&amp;gt;pom&amp;lt;/packaging&amp;gt;

    &amp;lt;name&amp;gt;capforjavaapp parent&amp;lt;/name&amp;gt;

    &amp;lt;properties&amp;gt;
        &amp;lt;!-- OUR VERSION --&amp;gt;
        &amp;lt;revision&amp;gt;1.0.0-SNAPSHOT&amp;lt;/revision&amp;gt;

        &amp;lt;!-- DEPENDENCIES VERSION --&amp;gt;
        &amp;lt;jdk.version&amp;gt;1.8&amp;lt;/jdk.version&amp;gt;
        &amp;lt;cds.services.version&amp;gt;1.17.0&amp;lt;/cds.services.version&amp;gt;
        &amp;lt;spring.boot.version&amp;gt;2.5.2&amp;lt;/spring.boot.version&amp;gt;
        &amp;lt;cloud.sdk.version&amp;gt;3.46.0&amp;lt;/cloud.sdk.version&amp;gt;

        &amp;lt;node.url&amp;gt;https://nodejs.org/dist/&amp;lt;/node.url&amp;gt;
    &amp;lt;/properties&amp;gt;

    &amp;lt;modules&amp;gt;
        &amp;lt;module&amp;gt;srv&amp;lt;/module&amp;gt;
    &amp;lt;/modules&amp;gt;

    &amp;lt;dependencyManagement&amp;gt;
        &amp;lt;dependencies&amp;gt;
            &amp;lt;!-- CDS SERVICES --&amp;gt;
            &amp;lt;dependency&amp;gt;
                &amp;lt;groupId&amp;gt;com.sap.cds&amp;lt;/groupId&amp;gt;
                &amp;lt;artifactId&amp;gt;cds-services-bom&amp;lt;/artifactId&amp;gt;
                &amp;lt;version&amp;gt;${cds.services.version}&amp;lt;/version&amp;gt;
                &amp;lt;type&amp;gt;pom&amp;lt;/type&amp;gt;
                &amp;lt;scope&amp;gt;import&amp;lt;/scope&amp;gt;
            &amp;lt;/dependency&amp;gt;

            &amp;lt;!-- SPRING BOOT --&amp;gt;
            &amp;lt;dependency&amp;gt;
                &amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;
                &amp;lt;artifactId&amp;gt;spring-boot-dependencies&amp;lt;/artifactId&amp;gt;
                &amp;lt;version&amp;gt;${spring.boot.version}&amp;lt;/version&amp;gt;
                &amp;lt;type&amp;gt;pom&amp;lt;/type&amp;gt;
                &amp;lt;scope&amp;gt;import&amp;lt;/scope&amp;gt;
            &amp;lt;/dependency&amp;gt;

            &amp;lt;!-- CLOUD SDK --&amp;gt; 
            &amp;lt;dependency&amp;gt; 
                &amp;lt;groupId&amp;gt;com.sap.cloud.sdk&amp;lt;/groupId&amp;gt; 
                &amp;lt;artifactId&amp;gt;sdk-bom&amp;lt;/artifactId&amp;gt; 
                &amp;lt;version&amp;gt;${cloud.sdk.version}&amp;lt;/version &amp;gt; 
                &amp;lt;type&amp;gt;pom&amp;lt;/type&amp;gt; 
                &amp;lt;scope&amp;gt;import&amp;lt;/scope&amp;gt; 
            &amp;lt;/dependency&amp;gt;         

        &amp;lt;/dependencies&amp;gt;        
    &amp;lt;/dependencyManagement&amp;gt;

    &amp;lt;build&amp;gt;
        &amp;lt;plugins&amp;gt;
            &amp;lt;!-- JAVA VERSION --&amp;gt;
            &amp;lt;plugin&amp;gt;
                &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
                &amp;lt;artifactId&amp;gt;maven-compiler-plugin&amp;lt;/artifactId&amp;gt;
                &amp;lt;version&amp;gt;3.8.1&amp;lt;/version&amp;gt;
                &amp;lt;configuration&amp;gt;
                    &amp;lt;source&amp;gt;${jdk.version}&amp;lt;/source&amp;gt;
                    &amp;lt;target&amp;gt;${jdk.version}&amp;lt;/target&amp;gt;
                &amp;lt;/configuration&amp;gt;
            &amp;lt;/plugin&amp;gt;

            &amp;lt;!-- MAKE SPRING BOOT PLUGIN RUNNABLE FROM ROOT --&amp;gt;
            &amp;lt;plugin&amp;gt;
                &amp;lt;groupId&amp;gt;org.springframework.boot&amp;lt;/groupId&amp;gt;
                &amp;lt;artifactId&amp;gt;spring-boot-maven-plugin&amp;lt;/artifactId&amp;gt;
                &amp;lt;version&amp;gt;${spring.boot.version}&amp;lt;/version&amp;gt;
                &amp;lt;configuration&amp;gt;
                    &amp;lt;skip&amp;gt;true&amp;lt;/skip&amp;gt;
                &amp;lt;/configuration&amp;gt;
            &amp;lt;/plugin&amp;gt;

            &amp;lt;!-- POM FLATTENING FOR CI FRIENDLY VERSIONS --&amp;gt;
            &amp;lt;plugin&amp;gt;
                &amp;lt;groupId&amp;gt;org.codehaus.mojo&amp;lt;/groupId&amp;gt;
                &amp;lt;artifactId&amp;gt;flatten-maven-plugin&amp;lt;/artifactId&amp;gt;
                &amp;lt;version&amp;gt;1.2.5&amp;lt;/version&amp;gt;
                &amp;lt;configuration&amp;gt;
                    &amp;lt;updatePomFile&amp;gt;true&amp;lt;/updatePomFile&amp;gt;
                    &amp;lt;flattenMode&amp;gt;resolveCiFriendliesOnly&amp;lt;/flattenMode&amp;gt;
                &amp;lt;/configuration&amp;gt;
                &amp;lt;executions&amp;gt;
                    &amp;lt;execution&amp;gt;
                        &amp;lt;id&amp;gt;flatten&amp;lt;/id&amp;gt;
                        &amp;lt;phase&amp;gt;process-resources&amp;lt;/phase&amp;gt;
                        &amp;lt;goals&amp;gt;
                            &amp;lt;goal&amp;gt;flatten&amp;lt;/goal&amp;gt;
                        &amp;lt;/goals&amp;gt;
                    &amp;lt;/execution&amp;gt;
                    &amp;lt;execution&amp;gt;
                        &amp;lt;id&amp;gt;flatten.clean&amp;lt;/id&amp;gt;
                        &amp;lt;phase&amp;gt;clean&amp;lt;/phase&amp;gt;
                        &amp;lt;goals&amp;gt;
                            &amp;lt;goal&amp;gt;clean&amp;lt;/goal&amp;gt;
                        &amp;lt;/goals&amp;gt;
                    &amp;lt;/execution&amp;gt;
                &amp;lt;/executions&amp;gt;
            &amp;lt;/plugin&amp;gt;

            &amp;lt;!-- PROJECT STRUCTURE CHECKS --&amp;gt;
            &amp;lt;plugin&amp;gt;
                &amp;lt;groupId&amp;gt;org.apache.maven.plugins&amp;lt;/groupId&amp;gt;
                &amp;lt;artifactId&amp;gt;maven-enforcer-plugin&amp;lt;/artifactId&amp;gt;
                &amp;lt;version&amp;gt;3.0.0-M3&amp;lt;/version&amp;gt;
                &amp;lt;executions&amp;gt;
                    &amp;lt;execution&amp;gt;
                        &amp;lt;id&amp;gt;Project Structure Checks&amp;lt;/id&amp;gt;
                        &amp;lt;goals&amp;gt;
                            &amp;lt;goal&amp;gt;enforce&amp;lt;/goal&amp;gt;
                        &amp;lt;/goals&amp;gt;
                        &amp;lt;configuration&amp;gt;
                            &amp;lt;rules&amp;gt;
                                &amp;lt;requireMavenVersion&amp;gt;
                                    &amp;lt;version&amp;gt;3.5.0&amp;lt;/version&amp;gt;
                                &amp;lt;/requireMavenVersion&amp;gt;
                                &amp;lt;requireJavaVersion&amp;gt;
                                    &amp;lt;version&amp;gt;${jdk.version}&amp;lt;/version&amp;gt;
                                &amp;lt;/requireJavaVersion&amp;gt;
                                &amp;lt;reactorModuleConvergence /&amp;gt;
                            &amp;lt;/rules&amp;gt;
                            &amp;lt;fail&amp;gt;true&amp;lt;/fail&amp;gt;
                        &amp;lt;/configuration&amp;gt;
                    &amp;lt;/execution&amp;gt;
                &amp;lt;/executions&amp;gt;
            &amp;lt;/plugin&amp;gt;
        &amp;lt;/plugins&amp;gt;
    &amp;lt;/build&amp;gt;
&amp;lt;/project&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Aug 2021 13:10:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415190#M4647574</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-18T13:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415191#M4647575</link>
      <description>&lt;P&gt;Thanks for the details. Everything looks fine in there. From the error stacktrace I can see however that your custom event handler that you implemented above that forwards the CQN statement to the remote service is not triggered.&lt;/P&gt;&lt;P&gt;Is the event handler in the same package or a sub-package as the Spring Boot Application.java class?&lt;BR /&gt;If not, the event handler will not be found during startup by Spring Boots automatic component scan.&lt;BR /&gt;Please move the event handler in that case to such a package.&lt;/P&gt;&lt;P&gt;If you think everything is correct and it still doesn't work, please provide the startup logs of the application.&lt;BR /&gt;I would like to check if we can see that the event handler is being detected in these logs.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 13:23:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415191#M4647575</guid>
      <dc:creator>marcbecker</dc:creator>
      <dc:date>2021-08-18T13:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415192#M4647576</link>
      <description>&lt;P&gt;Thank you for your confirmation. &lt;/P&gt;&lt;P&gt;Details will be attached. If the method of checking the startup log is incorrect, &lt;/P&gt;&lt;P&gt;I would appreciate it if you could tell me how to check it.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 13:52:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415192#M4647576</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-18T13:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415193#M4647577</link>
      <description>&lt;P&gt;folder structure&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1967651-folder.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 13:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415193#M4647577</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-18T13:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415194#M4647578</link>
      <description>&lt;P&gt;The folder structure looks also fine. The logs you attached unfortunately don't show the application startup.&lt;BR /&gt;If you test the application in the cloud please run "cf restart &amp;lt;appname&amp;gt;" and provide the recent logs afterwards.&lt;BR /&gt;If you start the application locally, please simply provide the output that it generates when starting.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2021 15:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415194#M4647578</guid>
      <dc:creator>marcbecker</dc:creator>
      <dc:date>2021-08-18T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415195#M4647579</link>
      <description>&lt;P&gt;Thank you for checking the folder structure.&lt;/P&gt;&lt;P&gt; 
Also, thank you for teaching me how to check the startup log. &lt;/P&gt;&lt;P&gt;This is the startup log.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 01:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415195#M4647579</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-19T01:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415196#M4647580</link>
      <description>&lt;P&gt;Hm, also here everything looks fine. Both services and handlers that I would expect are registered.&lt;BR /&gt;Would it be possible to upload your project somewhere (e.g. git repo) so that I can download it and try to reproduce the issue myself locally?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 07:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415196#M4647580</guid>
      <dc:creator>marcbecker</dc:creator>
      <dc:date>2021-08-19T07:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415197#M4647581</link>
      <description>&lt;P&gt;Thank you for making sure. I uploaded the source to github. However, due to the nature of the project, some modifications and deletions have been made. * S / 4 (On-Premise) connection related, etc.&lt;/P&gt;&lt;P&gt;If you have any questions, please let us know.&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" href="https://github.com/rinn-yamada/ztest"&gt;https://github.com/rinn-yamada/ztest&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 12:34:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415197#M4647581</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-19T12:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415198#M4647582</link>
      <description>&lt;P&gt;Thanks for sharing. I finally figured out why the request doesn't go into your event handler. The reason is that your event handler for "OnPremiseService" register on entities from "Entity1_SRV" by using the entity interfaces from that service (see &lt;A href="https://github.com/rinn-yamada/ztest/blob/main/capforjavaapp/srv/src/main/java/com/sap/cap/productsservice/handlers/OnPremiseService.java#L18"&gt;here&lt;/A&gt; and &lt;A href="https://github.com/rinn-yamada/ztest/blob/main/capforjavaapp/srv/src/main/java/com/sap/cap/productsservice/handlers/OnPremiseService.java#L27"&gt;here&lt;/A&gt;). However "OnPremiseService" is not using the "Entity1_SRV", but has its own model definition "OnPremiseService" (see &lt;A href="https://github.com/rinn-yamada/ztest/blob/main/capforjavaapp/srv/onpremise-service.cds"&gt;here&lt;/A&gt;). Therefore you should also use the entities from that definition to register event handlers, e.g. by changing "import cds.gen.entity1_srv.*;" to "import cds.gen.onpremiseservice.*"&lt;/P&gt;&lt;P&gt;An alternative would be to create the "OnPremiseService" with the model definition of "Entity1_SRV", as you did for the "OnPreService" in the default profile (see &lt;A href="https://github.com/rinn-yamada/ztest/blob/main/capforjavaapp/srv/src/main/resources/application.yaml#L13-L15"&gt;here&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 13:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415198#M4647582</guid>
      <dc:creator>marcbecker</dc:creator>
      <dc:date>2021-08-19T13:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415199#M4647583</link>
      <description>&lt;P&gt;Thank you for your prompt response.&lt;/P&gt;&lt;P&gt;
It means that the service settings etc. were wrong ... &lt;/P&gt;&lt;P&gt;S / 4 is not ready to boot, so I'd like to try it tomorrow! &lt;/P&gt;&lt;P&gt;In addition, we will report the results.
Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 14:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415199#M4647583</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-19T14:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415200#M4647584</link>
      <description>&lt;P&gt;Does the method I modified fit in below? &lt;/P&gt;&lt;P&gt;1. changing "import cds.gen.entity1_srv.*;" to "import cds.gen.onpremiseservice.*"&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1965671-onpremiseservicejava.txt"&gt;onpremiseservicejava.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 05:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415200#M4647584</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-20T05:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: About CAP for Java errors</title>
      <link>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415201#M4647585</link>
      <description>&lt;P&gt;2. An alternative would be to create the "OnPremiseService" with the model definition of "Entity1_SRV", as you did for the "OnPreService" in the default profile&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1965676-applicationyaml.txt"&gt;applicationyaml.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/1965677-onpremiseservicejava2.txt"&gt;onpremiseservicejava2.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 05:53:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/about-cap-for-java-errors/qaa-p/12415201#M4647585</guid>
      <dc:creator>former_member757411</dc:creator>
      <dc:date>2021-08-20T05:53:25Z</dc:date>
    </item>
  </channel>
</rss>

