Web IDe Full Stack应用程序中没有数据库错误连接

2020-09-04 07:50发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中) 嗨朋友, 新的SC...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


嗨朋友,

新的SCP应用程序编程模型教程需要帮助。 完成这些步骤后,本教程不会将数据从数据库中提取到UI5应用程序中,并且会引发"未连接数据库错误"

执行以下步骤。

1。 内置数据库模块。 可以在数据库浏览器中查看数据。

2。 如文档中所述构建了服务和UI模块。

能否请您帮助我了解导致数据库连接错误的原因?

下面是错误日志:

=======================================

{" write_at":" 2018-08-26T11:22:35.844Z"," write_ts":875295798676526," component_type":"应用程序"," component_id":" d660c40c-a412-4f02-83d4-a8681e9304a5" ," space_name":" dev"," component_name":" f67hun69hH2oJyFE-bookshop-srv"," component_instance":" 0"," organization_id":"-"," correlation_id":"-"," organization_name":" -"," space_id":" 18fc4795-1592-43c6-ab0e-624a0878525c"," container_id":" 10.0.137.48"," type":" log"," logger":" org.apache.tomcat.jdbc。 pool.ConnectionPool","线程":" localhost-startStop-1","级别":" ERROR","类别":[]," msg":"无法创建池的初始连接。"," stacktrace" :["" java.sql.SQLException:网址不能为空"," \ tat java.sql.DriverManager.getConnection(DriverManager.java:649)"," \ tat java.sql.DriverManager.getConnection(DriverManager.java: 208)"," \ tat org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:308)"," \ tat org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java: 203)"," \ tat org.apache.tomcat.jdbc.pool .ConnectionPool.createConnection(ConnectionPool.java:735)"," \ tat org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:667)"," \ tat org.apache.tomcat.jdbc.pool .ConnectionPool.init(ConnectionPool.java:482)"," \ tat org.apache.tomcat.jdbc.pool.ConnectionPool。(ConnectionPool.java:154)" {" write_at":" 2018-08-26T11 :23:19.549Z"," write_ts":875339503821153," component_id":" d660c40c-a412-4f02-83d4-a8681e9304a5"," component_name":" f67hun69hH2oJyFE-bookshop-srv"," DCComponent":""," organization_name ":"-"," component_type":"应用程序"," space_name":" dev"," component_instance":" 0"," organization_id":"-"," correlation_id":"-"," CSNComponent": ""," space_id":" 18fc4795-1592-43c6-ab0e-624a0878525c","应用程序":" f67hun69hH2oJyFE-bookshop-srv"," container_id":" 10.0.137.48"," type":" log"," 记录器":" com.sap.cloud.sdk.service.prov.v2.rt.xsa.util.ConnectionUtil","线程":" http-nio-0.0.0.0-3000-exec-4","级别" :"错误","类别":[]," msg":"无法找到资源\" jdbc/java-hdi-contain er \""," stacktrace":[" javax.naming.NamingException:网址不能为空","" \ tat org.apache.naming.NamingContext.lookup(NamingContext.java:856)"," \ tat org。 apache.naming.NamingContext.lookup(NamingContext.java:159)"," \ tat org.apache.naming.NamingContext.lookup(NamingContext.java:827)"," \ tat org.apache.naming.NamingContext.lookup( NamingContext.java:159)","\t org.apache.naming.NamingContext.lookup(NamingContext.java:827)"," \ t org.apache.naming.NamingContext.lookup(NamingContext.java:159)", " \ tat org.apache.naming.NamingContext.lookup(NamingContext.java:827)"," \ tat org.apache.naming.NamingContext.lookup(NamingContext.java:173)"," \ tat org.apache.naming .SelectorContext.lookup(SelectorContext.java:163)"," \ tat javax.naming.InitialContext.lookup(InitialContext.java:417)"," \ tat com.sap.cloud.sdk.service.prov.v2.rt .xsa.util.ConnectionUtil.getConnection(ConnectionUtil.java:48)" {" write_at":" 2018-08-26T11:23:19.551Z"," write_ts":875339505327133," component_id":" d660c40c-a412-4f02 -83d4-a8681e9 304a5"," component_name":" f67hun69hH2oJyFE-bookshop-srv"," DCComponent":""," organization_name":"-"," component_type":" application"," space_name":" dev"," component_instance": " 0"," organization_id":"-"," correlation_id":"-"," CSNComponent":""," space_id":" 18fc4795-1592-43c6-ab0e-624a0878525c"," Application":" f67hun69hH2oJyFE- bookshop-srv"," container_id":" 10.0.137.48"," type":" log"," logger":" com.sap.cloud.sdk.service.prov.v2.rt.cds.CDSDataSourceParam"," 线程":" http-nio-0.0.0.0-3000-exec-4","级别":" ERROR","类别":[]," msg":"连接对象为空"}} {" write_at": " 2018-08-26T11:23:19.609Z"," write_ts":875339563662603," component_id":" d660c40c-a412-4f02-83d4-a8681e9304a5"," component_name":" f67hun69hH2OJyFE-bookshop-srv"," DCComponent" :""," organization_name":"-"," component_type":"应用程序"," space_name":" dev"," component_instance":" 0"," organization_id":"-"," correlation_id":"- "," CSNComponent":""," space_id":" 18fc4795-1592-43c6-ab0e-624a0878525c"," Application":" f67hun69hH2oJyFE-bookshop-srv"," co ntainer_id":" 10.0.137.48"," type":" log"," logger":" com.sap.cloud.sdk.service.prov.v2.rt.core.CloudSDKODataErrorCallback"," thread":" http- nio-0.0.0.0-3000-exec-4","级别":"错误","类别":[]," msg":"请求URL:https://f67hun69hh2ojyfe-bookshop-srv.cfapps.us10。 hana.ondemand.com/odata/v2/CatalogService/Books\nStatusCode:500","stacktrace":["com.sap.cloud.sdk.service.prov.v2.rt.cds.exceptions.CDSRuntimeException:No connection to 数据库"," \ tat com.sap.cloud.sdk.service.prov.v2.rt.cds.CDSDataProvider.getConnection(CDSDataProvider.java:615)"," \ tat com.sap.cloud.sdk.service.prov .v2.rt.cds.CDSDataProvider.readEntitySet(CDSDataProvider.java:184)"," \ tat com.sap.cloud.sdk.service.prov.v2.rt.core.extensions.ExtensionDataProvider.readEntitySet(ExtensionDataProvider.java: 228)"," \ tat com.sap.cloud.sdk.service.prov.v2.rt.data.provider.HybridDataProvider.readEntitySet(HybridDataProvider.java:124)"

=========================================

谢谢你,最好的问候,
维纳(Venu)

(57.5 kB)
3条回答
我是小鹏鹏啊
2020-09-04 07:57

在您的my-service.cds文件中,您是否已将注释@ cds.persistence.skip添加到您的实体声明中?

一周热门 更多>