• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

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

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 242
27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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








 
reply
    Bookmark Topic Watch Topic
  • New Topic