This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Micro Frontends in Action and have Michael Geers on-line!
See this thread for details.
Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

liquibase.exception.DatabaseException: java.sql.SQLException: Connection is closed

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HeY ALL

I got this exception liquibase.exception.DatabaseException: java.sql.SQLException: Connection is closed for mysql hibernate spring boot ?
 : Could not release lock

liquibase.exception.LockException: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: java.sql.SQLException: Connection is closed

And I got one table inserted inside schema  which is databasechangelock
ANY help?
 
Rancher
Posts: 202
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you closing the SqlConnection at some point?

Can you post the source code of what you are doing?
 
alex moran
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Zachary Griggs wrote:Are you closing the SqlConnection at some point?

Can you post the source code of what you are doing?




No I am not closing sql connection not working in  MYSQL MAC OS although window works without isssue..it's jhipister config datasource:
   type: com.zaxxer.hikari.HikariDataSource
   url: jdbc:mysql://localhost:3306/xxxx?useUnicode=true&serverTimezone=UTC
   username: root
   password: root
   hikari:
     poolName: Hikari
     auto-commit: false
     data-source-properties:
       cachePrepStmts: true
       prepStmtCacheSize: 250
       prepStmtCacheSqlLimit: 2048
       useServerPrepStmts: true
       connectionTimeout: 3000
       
 jpa:
   database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
   database: MYSQL
   show-sql: false
   properties:
     hibernate.id.new_generator_mappings: true
     hibernate.connection.provider_disables_autocommit: true
     hibernate.cache.use_second_level_cache: true
     hibernate.cache.use_query_cache: false
     hibernate.generate_statistics: false
     hibernate.cache.region.factory_class: com.hazelcast.hibernate.HazelcastCacheRegionFactory
     hibernate.cache.hazelcast.instance_name:zzz
     hibernate.cache.use_minimal_puts: true
     hibernate.cache.hazelcast.use_lite_member: true








 
I child proofed my house but they still get in. Distract them with this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic