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

Hibernate Java Discussion :

ExceptionInInitializerError au lancement du programme


Sujet :

Hibernate Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Homme Profil pro
    Responsable Applicatif / Développeur
    Inscrit en
    Mai 2007
    Messages
    495
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Responsable Applicatif / Développeur

    Informations forums :
    Inscription : Mai 2007
    Messages : 495
    Par défaut ExceptionInInitializerError au lancement du programme
    j'ai cette erreur au lancement de mon application, je précise qu'elle fonctionnait sur un autre pc.

    j'ai importer les jar hibernate.
    j'avais du faire une autre manip sur l'autre pc mais je ne m'en souviens plus.

    mon erreur au lancement :

    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
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
    Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
            at bdd.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:20)
            at bdd.util.HibernateUtil.<clinit>(HibernateUtil.java:10)
            at bdd.BDDManager.getUtilisateurs(BDDManager.java:77)
            at ProjetPlayer.ProjetPlayerView.<init>(ProjetPlayerView.java:68)
            at ProjetPlayer.ProjetPlayerApp.startup(ProjetPlayerApp.java:32)
            at org.jdesktop.application.Application$1.run(Application.java:171)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
            at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
            at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
            at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
            at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)
            at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
            at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)
            at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:165)
            at bdd.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:15)
            ... 13 more
    Caused by: java.lang.ClassNotFoundException: org.slf4j.impl.StaticLoggerBinder
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
            ... 21 more
    Je précise que je n'ai pas modifié le code qui fonctionnait sur l'autre pc.

  2. #2
    Membre Expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Par défaut
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Caused by: java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
    L'erreur est explicite, il te manque un jar, un petit tour sur findJar

  3. #3
    Membre éclairé
    Homme Profil pro
    Responsable Applicatif / Développeur
    Inscrit en
    Mai 2007
    Messages
    495
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Responsable Applicatif / Développeur

    Informations forums :
    Inscription : Mai 2007
    Messages : 495
    Par défaut
    Bonsoir, merci pour la réponse.
    Oui je me disais bien qu'il manquait des rar, mais même en allant voir le site je ne sais pas lesquels installer.

    J'en ai installé plusieurs de cette page http://www.findjar.com/class/org/slf...gerBinder.html mais cela ne fonctionne toujours pas.

    J'ai installé nlog4j, les slf4j, je ne sais pas quoi installer d'autre.

    merci

  4. #4
    Membre Expert
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2007
    Messages
    2 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur développement logiciels

    Informations forums :
    Inscription : Juin 2007
    Messages : 2 938
    Par défaut
    T'as quoi comme erreur maintenant?

  5. #5
    Membre éclairé Avatar de amadoulamine1
    Inscrit en
    Avril 2005
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Avril 2005
    Messages : 260
    Par défaut
    Salut
    Il te manque surement slf4j-simple

Discussions similaires

  1. pile corrompue dès le lancement du programme
    Par YéTeeh dans le forum C++
    Réponses: 4
    Dernier message: 24/04/2006, 14h10
  2. Créer un object au premier lancement du programme ?
    Par david06600 dans le forum Langage
    Réponses: 1
    Dernier message: 01/03/2006, 12h04
  3. Réponses: 1
    Dernier message: 30/11/2005, 23h14
  4. Delphi 2005 Indy 9 Erreur au lancement du programme
    Par Houben Jacques dans le forum Web & réseau
    Réponses: 4
    Dernier message: 08/11/2005, 12h05
  5. [DCOM] Accès refusé au lancement du programme à distance
    Par raoulmania dans le forum Web & réseau
    Réponses: 7
    Dernier message: 22/06/2005, 13h01

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