IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Grails Java Discussion :

Erreur "LockException dialect"


Sujet :

Grails Java

Vue hybride

abdo2011 Erreur "LockException... 13/12/2012, 12h21
fxrobin Ton problème vient plutôt de... 13/12/2012, 12h57
abdo2011 merci fxrobin pour votre... 13/12/2012, 13h41
macumba Il faut que tu ajoutes le... 14/12/2012, 09h08
abdo2011 merci pour votre réponse... 14/12/2012, 10h51
Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2011
    Messages
    15
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2011
    Messages : 15
    Par défaut Erreur "LockException dialect"
    je fait import de projet "grails.org" a partir de svn de grails et je installe tous les plugins nécessaire mais lorsque je run l'application l' exception "liquibase.exception.LockException" apparaitre.
    dans le console s' affiche :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    Error 2012-12-13 11:58:23,946 [pool-6-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: liquibase.exception.LockException: groovy.lang.MissingPropertyException: No such property: dialect for class: liquibase.database.core.MySQLDatabase
    Message: liquibase.exception.LockException: groovy.lang.MissingPropertyException: No such property: dialect for class: liquibase.database.core.MySQLDatabase
       Line | Method
    ->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
    |   138 | run      in java.util.concurrent.FutureTask
    |   885 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
    |   907 | run      in     ''
    ^   619 | run . .  in java.lang.Thread
    Caused by LockException: groovy.lang.MissingPropertyException: No such property: dialect for class: liquibase.database.core.MySQLDatabase
    ->> 121 | acquireLock in liquibase.lockservice.LockService
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
    |    61 | waitForLock in     ''
    |    63 | update . in liquibase.LiquibaseDsl
    |    43 | migrate  in autobase.Autobase
    |   103 | doCall . in AutobaseGrailsPlugin$__clinit__closure9
    |   114 | doCall   in AutobaseGrailsPlugin$_closure2
    |   303 | innerRun in java.util.concurrent.FutureTask$Sync
    |   138 | run      in java.util.concurrent.FutureTask
    |   885 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
    |   907 | run      in     ''
    ^   619 | run . .  in java.lang.Thread
    Caused by MissingPropertyException: No such property: dialect for class: liquibase.database.core.MySQLDatabase
    ->>  51 | updateSql in grails.plugin.databasemigration.MysqlAwareCreateTableGenerator
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
    |    44 | generateSql in     ''
    |    30 | generateSql in liquibase.sqlgenerator.SqlGeneratorChain
    |   150 | generateSql in liquibase.sqlgenerator.SqlGeneratorFactory
    |    38 | generateSql in liquibase.sqlgenerator.core.CreateDatabaseChangeLogLockTableGenerator
    |    19 | generateSql in     ''
    |    30 | generateSql in liquibase.sqlgenerator.SqlGeneratorChain
    |   150 | generateSql in liquibase.sqlgenerator.SqlGeneratorFactory
    |    22 | applyVisitors in liquibase.executor.AbstractExecutor
    |    36 | access$000 in liquibase.executor.jvm.JdbcExecutor
    |    82 | doInStatement in liquibase.executor.jvm.JdbcExecutor$1ExecuteStatementCallback
    |    55 | execute  in liquibase.executor.jvm.JdbcExecutor
    |   104 | execute  in     ''
    |    70 | execute  in     ''
    |   571 | checkDatabaseChangeLogLockTable in liquibase.database.AbstractDatabase
    |    94 | acquireLock in liquibase.lockservice.LockService
    |    61 | waitForLock in     ''
    |    63 | update   in liquibase.LiquibaseDsl
    |    43 | migrate  in autobase.Autobase
    |   103 | doCall   in AutobaseGrailsPlugin$__clinit__closure9
    |   114 | doCall . in AutobaseGrailsPlugin$_closure2
    |   303 | innerRun in java.util.concurrent.FutureTask$Sync
    |   138 | run . .  in java.util.concurrent.FutureTask
    |   885 | runTask  in java.util.concurrent.ThreadPoolExecutor$Worker
    |   907 | run . .  in     ''
    ^   619 | run      in java.lang.Thread
    merci d'avance

  2. #2
    Membre Expert
    Avatar de fxrobin
    Homme Profil pro
    Architecte SI, Java Fan, API Manager
    Inscrit en
    Novembre 2007
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Architecte SI, Java Fan, API Manager
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Novembre 2007
    Messages : 875
    Par défaut
    Ton problème vient plutôt de MySQL que du Lock en lui même

    "missing dialect MySQL".

    As-tu bien le .jar de mysql dans les dépendences de ton projet ?

  3. #3
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2011
    Messages
    15
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2011
    Messages : 15
    Par défaut
    merci fxrobin pour votre réponse
    oui j'ai le driver mysql .jar dans mon dossier lib de mon projet.

  4. #4
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Octobre 2005
    Messages
    218
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Octobre 2005
    Messages : 218
    Par défaut
    Il faut que tu ajoutes le dialect MySQL dans conf/Datasource.groovy.
    Exemple pour postgres, recherche l'équivalent pour MySQL.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    development {
    dataSource {
    dialect = 'org.hibernate.dialect.PostgreSQLDialect'
    ...

  5. #5
    Membre averti
    Homme Profil pro
    Étudiant
    Inscrit en
    Avril 2011
    Messages
    15
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2011
    Messages : 15
    Par défaut
    Citation Envoyé par macumba Voir le message
    Il faut que tu ajoutes le dialect MySQL dans conf/Datasource.groovy.
    Exemple pour postgres, recherche l'équivalent pour MySQL.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    development {
    dataSource {
    dialect = 'org.hibernate.dialect.PostgreSQLDialect'
    ...
    merci pour votre réponse macumba
    je déjà mis cette ligne de dialect dans mon fichier datasource et j'ai testé avec différent dialect mysql (MySQLInnoDBDialect,MySQL5InnoDBDialect,...) mais toujours la même exception.

  6. #6
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Octobre 2005
    Messages
    218
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Octobre 2005
    Messages : 218
    Par défaut
    Sinon pour le dialect, je l'ai également au niveau de hibernate :
    hibernate {
    ...
    dialect = 'org.hibernate.dialect.PostgreSQLDialect'
    }

    Si ca ne marche pas tu pourrais poster ton datasource.groovy svp.
    Histoire de voir si je vois qqchose d'autre...

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo