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 :

[HIbernate 3] Migration et Erreur "could not instantiate id generator"


Sujet :

Hibernate Java

  1. #1
    Membre à l'essai
    Inscrit en
    Avril 2007
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Avril 2007
    Messages : 16
    Points : 11
    Points
    11
    Par défaut [HIbernate 3] Migration et Erreur "could not instantiate id generator"
    Bonjour,
    Je tente de migrer mon hibernate 2 en hibernate 3.1. J'ai suivi le guide de migration, changer mes session.find, mes dtd 2 et mes net.sf.hibernate. Tout compile, mais dès le lancement de la 1ère page de mon appli web, j'ai une belle erreur.
    En ayant creusé et grâce au logs, Je me rends compte que tout l'erreur intervient dans un setSessionFactory.

    Code déclenchant l'erreur
    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
    	public static void initialize (String configFileName) throws HibernateException {
    		logger.info("Entrée dans initialize");
    		if (null == configFileName && sessionFactoryMap.size() > 0){
    			logger.info("null == configFileName && sessionFactoryMap.size() > 0");
    			return;
    		}
    		else if (null != sessionFactoryMap.get(configFileName)) {
    			logger.info("null != sessionFactoryMap.get(configFileName)");
    			return;
    		}
    		else {
    			logger.info("Avant Configuration");
    			Configuration cfg = new Configuration();
    			logger.info("Après Configuration");
    			if (null == configFileName) {
    				logger.info("null == configFileName");
    				cfg.configure();
    			}else {
    				logger.info("null != configFileName");
    				cfg.configure(configFileName);
    			}
    			logger.info("setSessionFactory(configFileName, cfg.buildSessionFactory())");
    			setSessionFactory(configFileName, cfg.buildSessionFactory());
    			logger.info("setSessionFactory effectué");
    		}
    Le fichier de log avec les erreurs
    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
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    2007-05-21 17:44:36 INFO  [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
    2007-05-21 17:44:36 INFO  [FacesConfigurator] Reading config jar:file:/C:/DOCUME~1/DEVELOP6/LOCALS~1/Temp/myfaces41052.jar!/META-INF/faces-config.xml
    2007-05-21 17:44:36 INFO  [FacesConfigurator] Reading config jar:file:/C:/DOCUME~1/DEVELOP6/LOCALS~1/Temp/myfaces41053.jar!/META-INF/faces-config.xml
    2007-05-21 17:44:37 INFO  [FacesConfigurator] Reading config jar:file:/C:/DOCUME~1/DEVELOP6/LOCALS~1/Temp/myfaces41054.jar!/META-INF/faces-config.xml
    2007-05-21 17:44:37 INFO  [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
    2007-05-21 17:44:37 INFO  [FacesConfigurator] Reading config /WEB-INF/faces-config.xml
    2007-05-21 17:44:38 INFO  [StartupServletContextListener] ServletContext C:\JOnAS-4.3.5\work\webapps\jonas\extranet_formation\ initialized.
    2007-05-21 17:44:49 INFO  [LoginBean] entrée dans donneValParam
    2007-05-21 17:44:49 INFO  [LoginBean] entrée dans donneValParam
    2007-05-21 17:44:49 INFO  [Parametres] com.bull.crnpc.hibernate.dao._RootDAO.initialize()
    2007-05-21 17:44:49 INFO  [Parametres] com.bull.crnpc.hibernate.dao._RootDAO.initialize()
    2007-05-21 17:44:49 INFO  [_BaseRootDAO] Entrée dans initialize
    2007-05-21 17:44:49 INFO  [_BaseRootDAO] Entrée dans initialize
    2007-05-21 17:44:49 INFO  [_BaseRootDAO] Avant Configuration
    2007-05-21 17:44:49 INFO  [_BaseRootDAO] Avant Configuration
    2007-05-21 17:44:49 INFO  [Environment] Hibernate 3.1.3
    2007-05-21 17:44:49 INFO  [Environment] hibernate.properties not found
    2007-05-21 17:44:49 INFO  [Environment] using CGLIB reflection optimizer
    2007-05-21 17:44:49 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling
    2007-05-21 17:44:49 INFO  [_BaseRootDAO] Après Configuration
    2007-05-21 17:44:49 INFO  [_BaseRootDAO] Après Configuration
    2007-05-21 17:44:49 INFO  [_BaseRootDAO] null == configFileName
    2007-05-21 17:44:49 INFO  [_BaseRootDAO] null == configFileName
    2007-05-21 17:44:49 INFO  [Configuration] configuring from resource: /hibernate.cfg.xml
    2007-05-21 17:44:49 INFO  [Configuration] Configuration resource: /hibernate.cfg.xml
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: StatutSuiviValidation.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.StatutSuiviValidation -> STATUT_SUIVI_VALIDATION
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeActivites.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeActivites -> TE_ACTIVITES
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeAntennes.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeAntennes -> TE_ANTENNES
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeBalAffectes.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeBalAffectes -> TE_BAL_AFFECTES
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeCategorie.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeCategorie -> TE_CATEGORIE
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeCfa.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeCfa -> TE_CFA
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeCheminRubrique.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeCheminRubrique -> TE_CHEMIN_RUBRIQUE
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeCleExtraCompta.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeCleExtraCompta -> TE_CLE_EXTRA_COMPTA
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeComptes.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeComptes -> TE_COMPTES
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeComptesResultat.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeComptesResultat -> TE_COMPTES_RESULTAT
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeControle.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeControle -> TE_CONTROLE
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeDetailComptes.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeDetailComptes -> TE_DETAIL_COMPTES
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeDiplomes.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeDiplomes -> TE_DIPLOMES
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeDonnees.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeDonnees -> TE_DONNEES
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeDroitModule.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeDroitModule -> TE_DROIT_MODULE
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeEffectifs.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeEffectifs -> TE_EFFECTIFS
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeEmploi.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeEmploi -> TE_EMPLOI
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeEnvoyees.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeEnvoyees -> TE_ENVOYEES
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeExercices.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeExercices -> TE_EXERCICES
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeExtraCompta.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeExtraCompta -> TE_EXTRA_COMPTA
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeFichiersDonnees.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeFichiersDonnees -> TE_FICHIERS_DONNEES
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeFonction.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeFonction -> TE_FONCTION
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeFormations.hbm
    2007-05-21 17:44:50 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeFormations -> TE_FORMATIONS
    2007-05-21 17:44:50 INFO  [Configuration] Reading mappings from resource: TeFormationsAn.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeFormationsAn -> TE_FORMATIONS_AN
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeGpeCategoriecompte.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeGpeCategoriecompte -> TE_GPE_CATEGORIECOMPTE
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeHeuresCoherence.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeHeuresCoherence -> TE_HEURES_COHERENCE
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeHeuresPersonnes.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeHeuresPersonnes -> TE_HEURES_PERSONNES
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeHeuresSuivi.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeHeuresSuivi -> TE_HEURES_SUIVI
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeLienCleCpte.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeLienCleCpte -> TE_LIEN_CLE_CPTE
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeModuleExtranet.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeModuleExtranet -> TE_MODULE_EXTRANET
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeNomFichier.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeNomFichier -> TE_NOM_FICHIER
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeParametre.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeParametre -> TE_PARAMETRE
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TePersonnel.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TePersonnel -> TE_PERSONNEL
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeProfilUtil.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeProfilUtil -> TE_PROFIL_UTIL
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeRefVariableXtra.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeRefVariableXtra -> TE_REF_VARIABLE_XTRA
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeRepartition.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeRepartition -> TE_REPARTITION
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeRepartitionChrgPerso.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeRepartitionChrgPerso -> TE_REPARTITION_CHRG_PERSO
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeReserve.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeReserve -> TE_RESERVE
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeReserveValidation.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeReserveValidation -> TE_RESERVE_VALIDATION
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeSaisieExercicePr.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeSaisieExercicePr -> TE_SAISIE_EXERCICE_PR
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeSalaires.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeSalaires -> TE_SALAIRES
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeSections.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeSections -> TE_SECTIONS
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeStatut.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeStatut -> TE_STATUT
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeSuiviExercicePrCfa.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeSuiviExercicePrCfa -> TE_SUIVI_EXERCICE_PR_CFA
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeTableauXtra.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeTableauXtra -> TE_TABLEAU_XTRA
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeTitreExtraCompta.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeTitreExtraCompta -> TE_TITRE_EXTRA_COMPTA
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeTranspoCompte.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeTranspoCompte -> TE_TRANSPO_COMPTE
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeTypePr.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeTypePr -> TE_TYPE_PR
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeUtilisateur.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeUtilisateur -> TE_UTILISATEUR
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeValParametreCfa.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeValParametreCfa -> TE_VAL_PARAMETRE_CFA
    2007-05-21 17:44:51 INFO  [Configuration] Reading mappings from resource: TeVariableExtraCompta.hbm
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping class: com.bull.crnpc.hibernate.TeVariableExtraCompta -> TE_VARIABLE_EXTRA_COMPTA
    2007-05-21 17:44:51 INFO  [Configuration] Configured SessionFactory: sfdev
    2007-05-21 17:44:51 INFO  [_BaseRootDAO] setSessionFactory(configFileName, cfg.buildSessionFactory())
    2007-05-21 17:44:51 INFO  [_BaseRootDAO] setSessionFactory(configFileName, cfg.buildSessionFactory())
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping collection: com.bull.crnpc.hibernate.TeCfa.cfaUtilisateur -> TE_UTILISATEUR
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping collection: com.bull.crnpc.hibernate.TeCfa.cfaAntenne -> TE_ANTENNES
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping collection: com.bull.crnpc.hibernate.TeParametre.param -> TE_VAL_PARAMETRE_CFA
    2007-05-21 17:44:51 INFO  [HbmBinder] Mapping collection: com.bull.crnpc.hibernate.TeProfilUtil.profilUtil -> TE_UTILISATEUR
    2007-05-21 17:44:52 INFO  [NamingHelper] JNDI InitialContext properties:{}
    2007-05-21 17:44:52 INFO  [DatasourceConnectionProvider] Using datasource: EXTRANET_FORM
    2007-05-21 17:44:52 INFO  [SettingsFactory] RDBMS: MySQL, version: 4.1.20
    2007-05-21 17:44:52 INFO  [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.8 ( $Date: 2005/04/14 20:36:13 $, $Revision: 1.27.4.64 $ )
    2007-05-21 17:44:52 INFO  [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
    2007-05-21 17:44:52 INFO  [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
    2007-05-21 17:44:52 INFO  [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    2007-05-21 17:44:52 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] JDBC batch size: 15
    2007-05-21 17:44:52 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] Scrollable result sets: enabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] Connection release mode: auto
    2007-05-21 17:44:52 INFO  [SettingsFactory] Maximum outer join fetch depth: 2
    2007-05-21 17:44:52 INFO  [SettingsFactory] Default batch fetch size: 1
    2007-05-21 17:44:52 INFO  [SettingsFactory] Generate SQL with comments: disabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    2007-05-21 17:44:52 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
    2007-05-21 17:44:52 INFO  [SettingsFactory] Query language substitutions: {}
    2007-05-21 17:44:52 INFO  [SettingsFactory] Second-level cache: enabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] Query cache: disabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
    2007-05-21 17:44:52 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] Structured second-level cache entries: disabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] Statistics: disabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
    2007-05-21 17:44:52 INFO  [SettingsFactory] Default entity-mode: pojo
    2007-05-21 17:44:52 INFO  [SessionFactoryImpl] building session factory
    2007-05-21 17:44:52 WARN  [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: file:/C:/JOnAS-4.3.5/work/jonas/localhost/extranet_formation/loader/ehcache-failsafe.xml
    2007-05-21 17:44:52 ERROR [Parametres] HibernateException - donneValParam could not instantiate id generator
    2007-05-21 17:44:52 ERROR [Parametres] HibernateException - donneValParam could not instantiate id generator
    2007-05-21 17:44:52 ERROR [HtmlLayoutRenderer] PanelLayout must not have children, only facets allowed!
    Le code qui catch l'exception
    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
    public String donneValParam(String nom)
    {
    	String val = null;
    	TeParametreDAO dao;
        try {
    		List list = null;
    		logger.info("com.bull.crnpc.hibernate.dao._RootDAO.initialize()");
            com.bull.crnpc.hibernate.dao._RootDAO.initialize();
            logger.info("TeParametreDAO.getInstance()");
            dao = TeParametreDAO.getInstance();
            logger.info("Requete");
            list = dao.find("from TeParametre p where p.NomParametre='"+nom+"'");
    		if (list!=null){
    			logger.info("list!=null");
    			TeParametre u;
    			for (Iterator it=list.iterator();it.hasNext();) {
    				u = (TeParametre)it.next();
    				val = u.getGValeurParam();
    			}
    		}
        }
        catch (HibernateException e){
        	logger.error("HibernateException - donneValParam "+e.getMessage());
        }
        return val;
    }
    J'ai mis en vert les logs correspondants au code générant l'erreur, en rouge les logs d'erreur et en orange la méthode lance l'exception
    Quelqu'un aurait un soupçon d'idée ? Parce que là, je nage complètement.
    J'espère avoir été clair.
    Merci d'avance.

  2. #2
    Membre à l'essai
    Inscrit en
    Avril 2007
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Avril 2007
    Messages : 16
    Points : 11
    Points
    11
    Par défaut
    J'ai peut-être trouvé quelque chose.
    Dans mon fichier de mapping, mon "generator class = vm". A quoi ça correspond exactement ? C'est une classe ?
    Vu qu'elle est pas intégrée, est-ce encore compatible avec Hibernate 3 ?

  3. #3
    Membre à l'essai
    Inscrit en
    Avril 2007
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Avril 2007
    Messages : 16
    Points : 11
    Points
    11
    Par défaut
    Il fallait changer les class=vm par class=native. Les erreurs restantes provenaient d'un conflit de jar.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 1
    Dernier message: 19/03/2012, 16h39
  2. [HB/MySQL] Could not instantiate id generator
    Par Asterius dans le forum Hibernate
    Réponses: 5
    Dernier message: 20/12/2007, 14h37
  3. Réponses: 1
    Dernier message: 22/11/2006, 12h21
  4. Réponses: 1
    Dernier message: 12/07/2006, 11h26

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