This week's book giveaway is in the Artificial Intelligence and Machine Learning forum.
We're giving away four copies of Transfer Learning for Natural Language Processing (MEAP) and have Paul Azunre on-line!
See this thread for details.
Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning 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
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

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: 157
14
  • 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








 
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic