You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR 22385 --- [ restartedMain] t.j.c.liquibase.AsyncSpringLiquibase : Liquibase could not start correctly, your database is NOT ready: FATAL: la autentificación password falló para el usuario «postgresql»
#27053
Open
yeferdiplomado opened this issue
Aug 23, 2024
· 4 comments
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode, sharing)
git version 2.43.0
node: v20.15.1
npm: 10.7.0
Docker version 27.1.2, build d01f264
JDL for the Entity configuration(s) entityName.json files generated in the .jhipster directory
JDL entity definitions
@ChangelogDate("20240730201612")
entity Acuerdo {
acuerdo String
version String
codigo String
fecha LocalDate
}
@ChangelogDate("20240730201613")
entity AdjuntoProyectoFase {
nombreAdjunto String
fechaCreacion LocalDate
fechaModificacion LocalDate
estadoAdjunto Integer
adjuntoProyectoFase String
nombreArchivoOriginal String
fechaInicio LocalDate
fechaFin LocalDate
archivo AnyBlob
archivoContentType String
proyectoFaseProyectoId Long
proyectoFaseProyectoTitulo String
adjuntoProyectoFaseFaseId Long
adjuntoProyectoFaseFaseFase String
file String
}
@ChangelogDate("20240730201614")
entity AdjuntoRetroalimentacion {
nombreAdjunto String
fechaCreacion LocalDate
fechaModificacion LocalDate
estadoAdjunto Integer
adjuntoRetroalimentacion String
nombreArchivoOriginal String
fechaInicio LocalDate
fechaFin LocalDate
archivo AnyBlob
archivoContentType String
file String
}
@ChangelogDate("20240730201615")
entity Categorizacion {
categoria String
descripcion String
}
@ChangelogDate("20240730201616")
entity CicloPropedeutico {
ciclo String
}
@ChangelogDate("20240730201617")
entity Cronograma {
actividad String
duracion Integer
fechaInicio LocalDate
fechaFin LocalDate
ordenVista Integer
}
@ChangelogDate("20240730201618")
entity CronogramaCiecyt {
tituloCronograma String
fechaInicio LocalDate
fechaFin LocalDate
observaciones String
}
@ChangelogDate("20240730201619")
entity CronogramaCiecytFases {
inicioFase LocalDate
finFase LocalDate
textoExplicativo String
}
@ChangelogDate("20240730201620")
entity Departamento {
codigoDane String
departamento String
}
@ChangelogDate("20240730201621")
entity Elemento {
elemento String
descripcion String
}
@ChangelogDate("20240730201622")
entity ElementoModalidad
@ChangelogDate("20240730201623")
entity ElementoProyecto {
dato String
elementoProyectoProyectoDescripcion String
elementoFasesId Long
}
@ChangelogDate("20240730201624")
entity Entidad {
entidad String
nit String
}
@ChangelogDate("20240730201625")
entity EntidadFinanciadora {
valor Double
aprobada Boolean
}
@ChangelogDate("20240730201626")
entity Facultad {
codigoFacultad String
facultad String
}
@ChangelogDate("20240730201627")
entity Fases {
fase String
notificable Boolean
}
@ChangelogDate("20240730201628")
entity FichaTecnica {
tituloProfesional String
tituloPostgrado String
experiencia String
}
@ChangelogDate("20240730201629")
entity Formato {
formato String
version String
codigo String
fecha LocalDate
}
@ChangelogDate("20240730201630")
entity GrupoSemillero {
nombre String
tipo Boolean
}
@ChangelogDate("20240730201631")
entity ImpactosEsperados {
impacto String
plazo Integer
indicador String
supuestos String
ordenVista Integer
}
@ChangelogDate("20240730201632")
entity InformacionPasantia {
duracionHoras Integer
direccion String
email String
lunes Boolean
martes Boolean
miercoles Boolean
jueves Boolean
viernes Boolean
sabado Boolean
domingo Boolean
horasMes Integer
bonoAlimenticio Boolean
apoyoEconomico Boolean
auxilioTransporte Boolean
capacitacion Boolean
otroApoyo String
nombreEmpresa String
nitEmpresa String
direccionEmpresa String
sectorEconomicoEmpresa String
representanteLegalEmpresa String
asesorEmpresa String
cargoAsesorEmpresa String
emailAsesorEmpresa String
municipioEmpresa String
telefonoContactoEmpresa String
emailEmpresa String
departamentoEmpresa String
identificacionRepresentanteLegal String
profesionAsesorEmpresa String
celularAsesorEmpresa String
}
@ChangelogDate("20240730201633")
entity IntegranteProyecto {
integrante String
descripcion String
}
@ChangelogDate("20240730201634")
entity InvestigacionTipo {
investigacionTipo String
investigacionTipoDescripcion String
tipo String
tipoDescripcion String
}
@ChangelogDate("20240730201635")
entity LineaInvestigacion {
linea String
codigoLinea String
}
@ChangelogDate("20240730201636")
entity Menu {
nombre String
url String
icono String
activo Boolean
esPublico Boolean
orden Integer
rol String
}
@ChangelogDate("20240730201637")
entity Modalidad {
modalidad String
}
@ChangelogDate("20240730201638")
entity Municipio {
region String
codigoDaneDepartamento String
departamento String
codigoDaneMunicipio String
municipio String
}
@ChangelogDate("20240730201639")
entity Pregunta {
encabezado String
descripcion String
pregunta String
puntaje Float
puntajeMaximo Float
}
@ChangelogDate("20240730201640")
entity PreguntaAuthority
@ChangelogDate("20240730201641")
entity PreguntaModalidad
@ChangelogDate("20240730201642")
entity PresupuestoValor {
descripcion String
justificacion String
cantidad Integer
valorUnitario Double
especie Double
dinero Double
ordenVista Integer
}
@ChangelogDate("20240730201643")
entity Producto {
producto String
}
@ChangelogDate("20240730201644")
entity ProductoProyecto {
aplica Boolean
descripcion String
}
@ChangelogDate("20240730201645")
entity Programa {
programa String
descripcion String
codigoInterno String
codigoSnies String
creditos Integer
ciclo String
resolucion String
titulo String
duracionSemestres Integer
}
@ChangelogDate("20240730201646")
entity Proyecto {
titulo String
url String
lugarEjecucion String
duracion String
fechaIni LocalDate
fechaFin LocalDate
contrapartidaPesos Double
contrapartidaEspecie Double
palabrasClave String
convocatoria String
tipo String
referencias String
programa String
departamento String
municipio String
viable Boolean
enviado Boolean
fechaEnvioPropuesta ZonedDateTime
fechaEnvioProyecto ZonedDateTime
nota Float
conclusion String
recomendaciones String
viabilidad String
preEnviado Boolean
fechaPreEnvioPropuesta ZonedDateTime
fechaViabilidadPropuesta ZonedDateTime
fechaSustentacionProyecto ZonedDateTime
sustentar Boolean
recomendacionesJuradoProyecto String
recomendacionesAsesorPropuesta String
recomendacionesAsesorProyecto String
recomendacionesJuradoSustentacion String
proyectoEnviado Boolean
}
@ChangelogDate("20240730201647")
entity ProyectoFase {
titulo String
cumplida Boolean
fechaCumplimiento LocalDate
observaciones String
}
@ChangelogDate("20240730201648")
entity ProyectoRespuestas {
respuesta String
observaciones String
viable Boolean
puntaje Float
siNo Boolean
elemento String
preguntaTipoPreguntaId Long
preguntaTipoPreguntaTipoPregunta String
encabezado String
dato String
respuestaTexto String
respuestaNumero Float
faseId Long
authority String
puntajeMaximo Integer
}
@ChangelogDate("20240730201649")
entity ResultadosEsperados {
resultado String
indicador String
beneficiario String
ordenVista Integer
}
@ChangelogDate("20240730201650")
entity Retroalimentacion {
titulo String
retroalimentacion String
fechaRetroalimentacion LocalDate
estadoRetroalimentacion LocalDate
estadoProyectoFase Integer
}
@ChangelogDate("20240730201651")
entity RolMenu {
permitirAcceso Boolean
permitirCrear Boolean
permitirEditar Boolean
permitirEliminar Boolean
authName String
}
@ChangelogDate("20240730201652")
entity RolesModalidad {
rol String
cantidad Integer
calificador Boolean
}
@ChangelogDate("20240730201653")
entity Rubro {
rubro String
}
@ChangelogDate("20240730201654")
entity Solicitud {
estado Boolean
asunto String
textoSolicitud String
fechaSolicitud LocalDate
}
@ChangelogDate("20240730201655")
entity TipoPregunta {
tipoPregunta String
tipoDato String
}
@ChangelogDate("20240730201656")
entity UserInfo {
nuip String
codigoItp String
celular String
telefono String
foto TextBlob
fotoContentType String
}
@ChangelogDate("20240730201657")
entity Usuario {
usuario String
descripcion String
}
relationship OneToMany {
Facultad{facultadProyecto} to Proyecto{facultad}
Modalidad{modalidadCicloPropedeutico} to CicloPropedeutico{modalidad}
}
relationship ManyToOne {
AdjuntoProyectoFase{proyectoFaseProyecto(titulo)} to Proyecto
AdjuntoProyectoFase{adjuntoProyectoFaseFase(fase)} to Fases
AdjuntoRetroalimentacion{adjuntoRetroalimentacionProyecto(titulo)} to Proyecto
AdjuntoRetroalimentacion{adjuntoRetroalimentacionFase(fase)} to Fases
Categorizacion{categorizacionProyecto(titulo)} to Proyecto
CicloPropedeutico{cicloPropedeuticoAcuerdo(acuerdo)} to Acuerdo
Cronograma{cronogramaProyecto(titulo)} to Proyecto
CronogramaCiecyt{cronogramaCiecytModalidad(modalidad)} to Modalidad
CronogramaCiecytFases{cronogramaCiecytFasesCronogramaCiecyt(tituloCronograma)} to CronogramaCiecyt
CronogramaCiecytFases{cronogramaCiecytFasesFases(fase)} to Fases
Elemento{elementoFases(fase)} to Fases
ElementoModalidad{elemento(elemento)} to Elemento
ElementoModalidad{modalidad(modalidad)} to Modalidad
ElementoProyecto{elementoProyectoElemento(elemento)} to Elemento
ElementoProyecto{elementoProyectoProyecto(titulo)} to Proyecto
EntidadFinanciadora{entidadFinanciadoraEntidad(entidad)} to Entidad
EntidadFinanciadora{entidadFinanciadoraProyecto(titulo)} to Proyecto
ImpactosEsperados{impactosEsperadoProyecto(titulo)} to Proyecto
IntegranteProyecto{integranteProyectoProyecto(titulo)} to Proyecto
IntegranteProyecto{integranteProyectoRolesModalidad(rol)} to RolesModalidad
LineaInvestigacion{lineaPadre(linea)} to LineaInvestigacion
LineaInvestigacion{lineaInvestigacionFacultad(facultad)} to Facultad
Menu{menuPadre(nombre)} to Menu
Modalidad{modalidadAcuerdo(acuerdo)} to Acuerdo
Pregunta{preguntaTipoPregunta(tipoPregunta)} to TipoPregunta
Pregunta{preguntaElemento(elemento)} to Elemento
Pregunta{preguntaFase(fase)} to Fases
PreguntaAuthority{pregunta3(pregunta)} to Pregunta
PreguntaModalidad{pregunta(pregunta)} to Pregunta
PreguntaModalidad{modalidad2(modalidad)} to Modalidad
PresupuestoValor{presupuestoValorRubro(rubro)} to Rubro
PresupuestoValor{presupuestoValorProyecto(titulo)} to Proyecto
PresupuestoValor{presupuestoValorEntidad(entidad)} to Entidad
ProductoProyecto{productoProyectoProducto(producto)} to Producto
ProductoProyecto{productoProyectoProyecto(titulo)} to Proyecto
Programa{programaFacultad(facultad)} to Facultad
Proyecto{proyectoLineaInvestigacion(linea)} to LineaInvestigacion
Proyecto{proyectoGrupoSemillero(nombre)} to GrupoSemillero
Proyecto{proyectoModalidad(modalidad)} to Modalidad
Proyecto{subLineaLineaInvestigacion(linea)} to LineaInvestigacion
Proyecto{proyectoPrograma(programa)} to Programa
Proyecto{proyectoFases(fase)} to Fases
ProyectoFase{proyectoFaseFases(fase)} to Fases
ProyectoFase{proyectoFaseProyecto(titulo)} to Proyecto
ProyectoRespuestas{proyectoRespuestasPregunta(pregunta)} to Pregunta
ProyectoRespuestas{proyectoRespuestasProyecto(titulo)} to Proyecto
ResultadosEsperados{resultadosEsperadosProyecto(titulo)} to Proyecto
Retroalimentacion{retroalimentacionProyectoFase(titulo)} to ProyectoFase
RolMenu{rolMenuMenu(nombre)} to Menu
RolesModalidad{rolesModalidadModalidad(modalidad)} to Modalidad
Solicitud{solicitudIntegranteProyecto(integrante)} to IntegranteProyecto
}
dto Acuerdo, AdjuntoProyectoFase, AdjuntoRetroalimentacion, Categorizacion, CicloPropedeutico, Cronograma, CronogramaCiecyt, CronogramaCiecytFases, Departamento, Elemento, ElementoModalidad, ElementoProyecto, Entidad, EntidadFinanciadora, Facultad, Fases, FichaTecnica, Formato, GrupoSemillero, ImpactosEsperados, InformacionPasantia, IntegranteProyecto, InvestigacionTipo, LineaInvestigacion, Menu, Modalidad, Municipio, Pregunta, PreguntaAuthority, PreguntaModalidad, PresupuestoValor, Producto, ProductoProyecto, Programa, Proyecto, ProyectoFase, ProyectoRespuestas, ResultadosEsperados, Retroalimentacion, RolMenu, RolesModalidad, Rubro, Solicitud, TipoPregunta, UserInfo, Usuario with mapstruct
paginate Acuerdo, AdjuntoProyectoFase, AdjuntoRetroalimentacion, Categorizacion, CicloPropedeutico, Cronograma, CronogramaCiecyt, CronogramaCiecytFases, Elemento, ElementoProyecto, Entidad, EntidadFinanciadora, Facultad, Fases, FichaTecnica, Formato, GrupoSemillero, ImpactosEsperados, IntegranteProyecto, LineaInvestigacion, Menu, Modalidad, Municipio, Pregunta, PresupuestoValor, Producto, ProductoProyecto, Proyecto, ProyectoFase, ProyectoRespuestas, ResultadosEsperados, Retroalimentacion, RolMenu, RolesModalidad, Rubro, Solicitud, TipoPregunta, Usuario with pagination
service Acuerdo, AdjuntoProyectoFase, AdjuntoRetroalimentacion, Categorizacion, CicloPropedeutico, Cronograma, CronogramaCiecyt, CronogramaCiecytFases, Departamento, Elemento, ElementoModalidad, ElementoProyecto, Entidad, EntidadFinanciadora, Facultad, Fases, FichaTecnica, Formato, GrupoSemillero, ImpactosEsperados, IntegranteProyecto, InvestigacionTipo, LineaInvestigacion, Menu, Modalidad, Municipio, Pregunta, PreguntaAuthority, PreguntaModalidad, PresupuestoValor, Producto, ProductoProyecto, Programa, Proyecto, ProyectoFase, ProyectoRespuestas, ResultadosEsperados, Retroalimentacion, RolMenu, RolesModalidad, Rubro, Solicitud, TipoPregunta, UserInfo, Usuario with serviceImpl
service InformacionPasantia with serviceClass
search Acuerdo, AdjuntoProyectoFase, AdjuntoRetroalimentacion, Categorizacion, CicloPropedeutico, Cronograma, CronogramaCiecyt, CronogramaCiecytFases, Departamento, Elemento, ElementoModalidad, ElementoProyecto, Entidad, EntidadFinanciadora, Facultad, Fases, FichaTecnica, Formato, GrupoSemillero, ImpactosEsperados, InformacionPasantia, IntegranteProyecto, InvestigacionTipo, LineaInvestigacion, Menu, Modalidad, Municipio, Pregunta, PreguntaAuthority, PreguntaModalidad, PresupuestoValor, Producto, ProductoProyecto, Programa, Proyecto, ProyectoFase, ProyectoRespuestas, ResultadosEsperados, Retroalimentacion, RolMenu, RolesModalidad, Rubro, Solicitud, TipoPregunta, UserInfo, Usuario with no
2024-08-23T15:17:40.838-05:00 INFO 28437 --- [ restartedMain] co.edu.itp.ciecyt.CiecytApp : Starting CiecytApp using Java 21.0.4 with PID 28437 (/home/loza/ciecyt_backend_vue/target/classes started by loza in /home/loza/ciecyt_backend_vue)
2024-08-23T15:17:40.839-05:00 DEBUG 28437 --- [ restartedMain] co.edu.itp.ciecyt.CiecytApp : Running with Spring Boot v3.3.1, Spring v6.1.10
2024-08-23T15:17:40.839-05:00 INFO 28437 --- [ restartedMain] co.edu.itp.ciecyt.CiecytApp : The following 2 profiles are active: "dev", "api-docs"
2024-08-23T15:17:43.315-05:00 DEBUG 28437 --- [ restartedMain] co.edu.itp.ciecyt.config.WebConfigurer : Registering CORS filter
2024-08-23T15:17:43.368-05:00 INFO 28437 --- [ restartedMain] co.edu.itp.ciecyt.config.WebConfigurer : Web application configuration, using profiles: dev
2024-08-23T15:17:43.368-05:00 INFO 28437 --- [ restartedMain] co.edu.itp.ciecyt.config.WebConfigurer : Web application fully configured
2024-08-23T15:17:43.726-05:00 DEBUG 28437 --- [ restartedMain] c.e.i.ciecyt.config.AsyncConfiguration : Creating Async Task Executor
2024-08-23T15:17:43.809-05:00 DEBUG 28437 --- [ restartedMain] c.e.i.c.config.LiquibaseConfiguration : Configuring Liquibase
2024-08-23T15:17:45.043-05:00 ERROR 28437 --- [ restartedMain] t.j.c.liquibase.AsyncSpringLiquibase : Liquibase could not start correctly, your database is NOT ready: FATAL: la autentificación password falló para el usuario «postgresql»
org.postgresql.util.PSQLException: FATAL: la autentificación password falló para el usuario «postgresql»
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:698)
at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:207)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:262)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
at org.postgresql.jdbc.PgConnection.(PgConnection.java:273)
at org.postgresql.Driver.makeConnection(Driver.java:446)
at org.postgresql.Driver.connect(Driver.java:298)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:98)
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:111)
at tech.jhipster.config.liquibase.AsyncSpringLiquibase.handleAsyncExecution(AsyncSpringLiquibase.java:106)
at tech.jhipster.config.liquibase.AsyncSpringLiquibase.afterPropertiesSet(AsyncSpringLiquibase.java:88)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:313)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:952)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
at co.edu.itp.ciecyt.CiecytApp.main(CiecytApp.java:70)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:50)
2024-08-23T15:17:46.543-05:00 WARN 28437 --- [ restartedMain] o.h.e.j.e.i.JdbcEnvironmentInitiator : HHH000342: Could not obtain connection to query metadata
java.lang.NullPointerException: Cannot invoke "org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(java.sql.SQLException, String)" because the return value of "org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.sqlExceptionHelper()" is null
at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.delegateWork(JdbcIsolationDelegate.java:116)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.getJdbcEnvironmentUsingJdbcMetadata(JdbcEnvironmentInitiator.java:290)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:123)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:77)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:130)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:238)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:215)
at org.hibernate.boot.model.relational.Database.(Database.java:45)
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.getDatabase(InFlightMetadataCollectorImpl.java:221)
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:189)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:171)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1431)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1502)
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:75)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:390)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:952)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
at co.edu.itp.ciecyt.CiecytApp.main(CiecytApp.java:70)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:50)
2024-08-23T15:17:46.545-05:00 ERROR 28437 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Failed to initialize JPA EntityManagerFactory: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
2024-08-23T15:17:46.545-05:00 WARN 28437 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
2024-08-23T15:17:46.588-05:00 INFO 28437 --- [ restartedMain] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-08-23T15:17:46.605-05:00 ERROR 28437 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:952)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
at co.edu.itp.ciecyt.CiecytApp.main(CiecytApp.java:70)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:50)
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:276)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:238)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:215)
at org.hibernate.boot.model.relational.Database.(Database.java:45)
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.getDatabase(InFlightMetadataCollectorImpl.java:221)
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:189)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:171)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1431)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1502)
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:75)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:390)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)
... 16 common frames omitted
Caused by: org.hibernate.HibernateException: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:191)
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:87)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.getJdbcEnvironmentWithDefaults(JdbcEnvironmentInitiator.java:152)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.getJdbcEnvironmentUsingJdbcMetadata(JdbcEnvironmentInitiator.java:362)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:123)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:77)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:130)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
... 31 common frames omitted
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.954 s
[INFO] Finished at: 2024-08-23T15:17:46-05:00
No application that I create allows me to connect, I always get that error, after creating an application with code . I put the postgres user and the password and the name of the database in the dev.yml file that I create for the application but I always get this error ERROR 28437 --- [ restartedMain] t.j.c.liquibase.AsyncSpringLiquibase : Liquibase could not start correctly, your database is NOT ready: FATAL: password authentication failed for user "postgresql" Even though I enter the username and password correctly, the error appears. I have tried to connect manually from Postgres to the database and it connects normally. $ psql -h localhost -U postgres -d ciecyt_db -W
Contraseña:
psql (16.4 (Ubuntu 16.4-1.pgdg24.04+1))
Conexión SSL (protocolo: TLSv1.3, cifrado: TLS_AES_256_GCM_SHA384, compresión: desactivado)
Digite «help» para obtener ayuda.
ciecyt_db=#
The text was updated successfully, but these errors were encountered:
Caused by: org.hibernate.HibernateException: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided) means the db is not found.
You probably need to start the db using npm run services:up.
@mshima I was able to solve the error, I am trying to migrate an application from my institute that tracks degree work, but I am encountering many problems when creating the project from scratch, running the jdl gives me code errors in the application, I am not very good at programming but I am doing everything possible and looking for help here
2024-09-02T16:30:50.076-06:00 ERROR 7516 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Failed to initialize JPA EntityManagerFactory: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Column 'adjunto_proyecto_fase_fase_id' is duplicated in mapping for entity 'co.edu.itp.ciecyt.domain.AdjuntoProyectoFase' (use '@column(insertable=false, updatable=false)' when mapping multiple properties to the same column)
2024-09-02T16:30:50.077-06:00 WARN 7516 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.MappingException: Column 'adjunto_proyecto_fase_fase_id' is duplicated in mapping for entity 'co.edu.itp.ciecyt.domain.AdjuntoProyectoFase' (use '@column(insertable=false, updatable=false)' when mapping multiple properties to the same column)
2024-09-02T16:30:50.107-06:00 INFO 7516 --- [ restartedMain] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-09-02T16:30:50.145-06:00 ERROR 7516 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed @mshima When running the jdl and then running the application, several code duplications were generated regarding the entities adjuntoproyectofase and adjuntoRetroalimentacion that I gradually eliminated. I find myself in this error.
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode, sharing)
git version 2.43.0
node: v20.15.1
npm: 10.7.0
Docker version 27.1.2, build d01f264
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
org.postgresql.util.PSQLException: FATAL: la autentificación password falló para el usuario «postgresql»
at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:698)
at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:207)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:262)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:54)
at org.postgresql.jdbc.PgConnection.(PgConnection.java:273)
at org.postgresql.Driver.makeConnection(Driver.java:446)
at org.postgresql.Driver.connect(Driver.java:298)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:137)
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:360)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:202)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:461)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:550)
at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:98)
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:111)
at tech.jhipster.config.liquibase.AsyncSpringLiquibase.handleAsyncExecution(AsyncSpringLiquibase.java:106)
at tech.jhipster.config.liquibase.AsyncSpringLiquibase.afterPropertiesSet(AsyncSpringLiquibase.java:88)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:313)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:952)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
at co.edu.itp.ciecyt.CiecytApp.main(CiecytApp.java:70)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:50)
2024-08-23T15:17:46.543-05:00 WARN 28437 --- [ restartedMain] o.h.e.j.e.i.JdbcEnvironmentInitiator : HHH000342: Could not obtain connection to query metadata
java.lang.NullPointerException: Cannot invoke "org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(java.sql.SQLException, String)" because the return value of "org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.sqlExceptionHelper()" is null
at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate.delegateWork(JdbcIsolationDelegate.java:116)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.getJdbcEnvironmentUsingJdbcMetadata(JdbcEnvironmentInitiator.java:290)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:123)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:77)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:130)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:238)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:215)
at org.hibernate.boot.model.relational.Database.(Database.java:45)
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.getDatabase(InFlightMetadataCollectorImpl.java:221)
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:189)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:171)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1431)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1502)
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:75)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:390)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:952)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
at co.edu.itp.ciecyt.CiecytApp.main(CiecytApp.java:70)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:50)
2024-08-23T15:17:46.545-05:00 ERROR 28437 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Failed to initialize JPA EntityManagerFactory: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
2024-08-23T15:17:46.545-05:00 WARN 28437 --- [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
2024-08-23T15:17:46.588-05:00 INFO 28437 --- [ restartedMain] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-08-23T15:17:46.605-05:00 ERROR 28437 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1788)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:952)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
at co.edu.itp.ciecyt.CiecytApp.main(CiecytApp.java:70)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:50)
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:276)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:238)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:215)
at org.hibernate.boot.model.relational.Database.(Database.java:45)
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.getDatabase(InFlightMetadataCollectorImpl.java:221)
at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.(InFlightMetadataCollectorImpl.java:189)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:171)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:1431)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1502)
at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:75)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:390)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:409)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:396)
at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)
... 16 common frames omitted
Caused by: org.hibernate.HibernateException: Unable to determine Dialect without JDBC metadata (please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:191)
at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:87)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.getJdbcEnvironmentWithDefaults(JdbcEnvironmentInitiator.java:152)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.getJdbcEnvironmentUsingJdbcMetadata(JdbcEnvironmentInitiator.java:362)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:123)
at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:77)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:130)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
... 31 common frames omitted
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.954 s
[INFO] Finished at: 2024-08-23T15:17:46-05:00
No application that I create allows me to connect, I always get that error, after creating an application with code . I put the postgres user and the password and the name of the database in the dev.yml file that I create for the application but I always get this error ERROR 28437 --- [ restartedMain] t.j.c.liquibase.AsyncSpringLiquibase : Liquibase could not start correctly, your database is NOT ready: FATAL: password authentication failed for user "postgresql" Even though I enter the username and password correctly, the error appears. I have tried to connect manually from Postgres to the database and it connects normally. $ psql -h localhost -U postgres -d ciecyt_db -W
Contraseña:
psql (16.4 (Ubuntu 16.4-1.pgdg24.04+1))
Conexión SSL (protocolo: TLSv1.3, cifrado: TLS_AES_256_GCM_SHA384, compresión: desactivado)
Digite «help» para obtener ayuda.
ciecyt_db=#
The text was updated successfully, but these errors were encountered: