-->
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.  [ 2 posts ] 
Author Message
 Post subject: Migration hibernate 2 -->> 3 : Aidez moi svp
PostPosted: Thu Nov 24, 2005 1:29 pm 
Newbie

Joined: Tue Sep 13, 2005 9:09 am
Posts: 17
Je suis en train de migrer (mon programe qui marche bien avec hibernate) de hibernate 2 vers hibernate 3 : J'ai essayé avec la version hibernate 3.0.5 puis hibernate 3.1.rc3 mais j'ai eu toujours le même problème : j'ai lu qu'il faut mettre à jour cglib en 2.1.3 mais sans résultat.

Hibernate version:
3.1.rc3

Full stack trace of any exception that occurs:

org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [fr.notation.bean.notation.EntrEntreprise#784635591]
at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27)
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:65)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:98)
at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:158)
at fr.notation.bean.notation.EntrEntreprise$$EnhancerByCGLIB$$291d112.getCcatju(<generated>)
at fr.notation.service.ServiceNotationCpan.traiterAnoCP(ServiceNotationCpan.java:357)
at fr.notation.service.ServiceNotationCpan.TraiterContrepartiesANoter(ServiceNotationCpan.java:550)
at fr.notation.BatchNotation.execute(BatchNotation.java:44)
at fr.notation.BatchNotation.main(BatchNotation.java:71)

Name and version of the database you are using:
DB2 v7

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:
24/11/2005 18:13:10 DEBUG : Creating new CacheManager with default config
24/11/2005 18:13:10 DEBUG : Configuring ehcache from classpath.
24/11/2005 18:13:10 DEBUG : Configuring ehcache from ehcache.xml found in the classpath: file:/E:/devel/workspace/gdc-notation-hib333/bin/ehcache.xml
24/11/2005 18:13:10 DEBUG : Disk Store Path: C:\DOCUME~1\M80190\LOCALS~1\Temp\
24/11/2005 18:13:10 DEBUG : org.hibernate.cache.UpdateTimestampsCache Cache: Using SpoolingLinkedHashMap implementation
24/11/2005 18:13:10 DEBUG : initialized MemoryStore for org.hibernate.cache.UpdateTimestampsCache
24/11/2005 18:13:10 DEBUG : Initialised cache: org.hibernate.cache.UpdateTimestampsCache
24/11/2005 18:13:10 DEBUG : org.hibernate.cache.StandardQueryCache Cache: Using SpoolingLinkedHashMap implementation
24/11/2005 18:13:10 DEBUG : initialized MemoryStore for org.hibernate.cache.StandardQueryCache
24/11/2005 18:13:10 DEBUG : Initialised cache: org.hibernate.cache.StandardQueryCache
24/11/2005 18:13:10 INFO : Initialisation des services terminée
24/11/2005 18:13:11 DEBUG : org.hibernate.cache.UpdateTimestampsCache: Is element with key DBM03.CPAN_CP_A_NOTER expired?: false


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 25, 2005 9:57 am 
Newbie

Joined: Tue Sep 13, 2005 9:09 am
Posts: 17
J'ai résolu le problème en utilisant session.get au lieu de session.load

j'espère que ça va servir pour d'autre.


Merci qd même


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

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.