小编Eli*_*ana的帖子

JPA @SqlResultSetMapping无法处理将空SQL结果映射到空POJO-而是引发异常

我正在使用JPA 2.1(Eclipselink供应商)@SqlResultSetMapping将sql查询映射到none实体POJO,当sql结果不为空但my表为空时,它可以工作带空值的空表

我的POJO的构建失败,但有以下例外:

 2016-05-30 11:44:17,154 [tp520017379-230] ERROR - Exception [EclipseLink-6177] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.QueryException
    Exception Description: The column result [st_agg] was not found in the results of the query.
    Query: ResultSetMappingQuery(name="nodeStatusAggQuery" sql="select max(status) as st_agg, max(clock_accuracy_health) as cac_agg, max(clock_analysis_health) as can_agg, max(ptp_net_analysis_health) as na_agg from sync_node where ncd_id = ? and type =?")
    javax.persistence.PersistenceException: Exception [EclipseLink-6177] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.QueryException
    Exception Description: The column result [st_agg] was not found in the results of the query. …
Run Code Online (Sandbox Code Playgroud)

java orm jpa eclipselink jpa-2.1

5
推荐指数
2
解决办法
962
查看次数

spring boot 2执行器 jvm.gc.memory.alulated 指标

我正在使用 Spring Boot 2.2.5 并通过 Spring Boot Actuator 和 Grafana 监控我的应用程序指标。

我的应用程序是用Docker(OpenJdk11)打包的,并配置了4GB内存

我的 gc 暂停时间很长,大约需要 1-2 秒,并且它与高jvm.gc.memory.allocated相关。

jvm.gc.memory.allocated 指标有时会达到30GB

谁能解释jvm.gc.memory.alulated指标?这是什么意思 ?

garbage-collection memory-management spring-boot spring-boot-actuator openjdk-11

3
推荐指数
1
解决办法
3425
查看次数