Tomcat启动时HikariPool关闭

时间:2019-12-18 22:19:26

标签: postgresql hibernate spring-data-jpa spring-jdbc hikaricp

上下文:我开发了使用spring-data,hibernate和PostgreSql(10)数据库的Spring引导应用程序(java 8)。 我的应用程序已部署在多台服务器(Windows和centos)上,但其中的一个升级失败。 所有服务器上的环境(postgres版本,java版本等)都是相同的。

以下是成功启动应用程序(除一个客户端外的所有客户端)的日志:

enter image description here

现在,出现故障的日志(Windows)

enter image description here

我们可以看到该过程在“ ASTQueryTranslatorFactory”步骤之前失败 但我不知道此步骤要进行哪些检查。

此处的属性(application.properties):

spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto = update
spring.jpa.show-sql=${spring.jpa.show-sql}
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
spring.datasource.initialization-mode=always

新版本包含许多更改。关于数据库,某些长度值在我的java类中已更改,

例如Adresse类中的“ typeidpm”:

package com.klinck.mc.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "adresse", schema = "public")
public class Adresse extends DateAudit implements java.io.Serializable {

/**
 * 
 */
private Integer idaiadresse;
private Integer idaidestinataire;
private String typeidpm;
private String validpm;
private String ligne1;
private String ligne2;
private String ligne3;
private String ligne4;
private String codepostal;
private String ville;
private String pays;
private String dept;

public Adresse() {}

@Id
@GeneratedValue(strategy = IDENTITY)
@Column(name = "idaiadresse", unique = true, nullable = false)
public Integer getIdaiadresse() {
    return idaiadresse;
}
public void setIdaiadresse(Integer idaiadresse) {
    this.idaiadresse = idaiadresse;
}
@Column(name = "idaidestinataire")
public Integer getIdaidestinataire() {
    return idaidestinataire;
}

public void setIdaidestinataire(Integer idaidestinataire) {
    this.idaidestinataire = idaidestinataire;
}

@Column(name = "typeidpm", length = 100)
public String getTypeidpm() {
    return typeidpm;
}

我不知道如何找出此错误的原因,因为同一软件包在其他服务器上可以正常工作。

失去2天,很难...

0 个答案:

没有答案