-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: java.lang.NullPointerException quand reverse engineering!
PostPosted: Tue Mar 22, 2011 6:38 am 
Newbie

Joined: Wed Jan 25, 2006 3:47 am
Posts: 7
Bonjour,

J'ai créé trois nouvelles tables dans ma base de données:

Code:
Table climate_classification
============================
I_GROUP, I_LNG, C_LBLCLS
----------------------------
I_GROUP          int(11) PK
I_LNG            int(11) PK
C_LBLCLS         varchar(25)

Table climate_coordinate_bkp
============================
R_LAT, R_LGT, C_CLS
----------------------------
R_LAT            double(9,7) PK
R_LGT            double(10,7) PK
C_CLS            varchar(3) PK

Table climate_group
===================
C_CLS, I_GROUP
-------------------
C_CLS            varchar(3) PK
I_GROUP          int(11) PK


J'ai donc une table climate_classification qui me liste les groupes principaux de climat, selon köppen, une table climate_group qui me liste les "sous" climats et une table climate_coordinate qui me donne les aires des "sous" climats.
J'ai défini I_GROUP de ma table climate_group en clé étrangère provenant de climate_classification et j'ai défini C_CLS de la table climate_coordinate en clé étrangère provenant de climate_group.

Lorsque j'essaye de générer les fichiers de mapping hbm et les classes JAVA en utilisant l'Hibernate Tools for Eclipse (Version: 3.4.0.v20110215-1252-H31-GA) je reçois l'erreur suivante:

Code:
java.lang.NullPointerException
   at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:100)
   at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:96)
   at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1354)
   at org.hibernate.cfg.JDBCMetaDataConfiguration.secondPassCompileForeignKeys(JDBCMetaDataConfiguration.java:34)
   at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1261)
   at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1206)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate$2.execute(CodeGenerationLaunchDelegate.java:420)
   at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
   at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:72)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.buildConfiguration(CodeGenerationLaunchDelegate.java:387)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.runExporters(CodeGenerationLaunchDelegate.java:320)
   at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:254)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
   at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:702)
   at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:923)
   at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1126)
   at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


A votre avis d'où vient le problème? Serait ce mes contraintes qui posent problème? Je n'ai pas trouvé de solution via Google.

Merci de votre aide


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.