From: Kal A. <ka...@te...> - 2005-08-08 08:14:11
|
Hi George, My first guess would be that perhaps the hibernate2.jar file is not properly loaded, or has got corrupted somehow. Can you list the JAR contents using the jar command. If I do that on my local copy I can see the class listed in there. You might also want to check that there is not an older or newer version of hibernate on your CLASSPATH that is getting loaded first. Cheers, Kal George Tryfon wrote: >Hello Kal > >Using tm4j-0.9.8, I try to call the following code > > TMAPITopicMapImpl tmapiTmImpl = getTmApiTmImpl (); > QueryEvaluator qe = QueryEvaluatorFactory.newQueryEvaluator >(tmapiTmImpl.getWrapped()); > TologResultsSet rSet = qe.execute ("topic($T)?"); > >while the TopicMap is connected to MySQL using Hibernate > >the "qe.execute()" throws the following... > > > </snip stack trace> >The same code works OK when the TopicMap is connected to Ozone or XTM > >I have included all these in my classpath > > libs/hibernate/c3p0.jar > libs/hibernate/cglib2.jar > libs/hibernate/commons-dbcp.jar > libs/hibernate/commons-lang.jar > libs/hibernate/commons-pool.jar > libs/hibernate/connector.jar > libs/hibernate/dom4j.jar > libs/hibernate/ehcache.jar > libs/hibernate/hibernate2.jar > libs/hibernate/jaas.jar > libs/hibernate/jcs.jar > libs/hibernate/jdbc2_0-stdext.jar > libs/hibernate/jta.jar > libs/hibernate/mysql-connector-java-3.0.16-ga-bin.jar > libs/hibernate/odmg.jar > libs/hibernate/proxool.jar > > >and the Hibernate works OK except for the part of the Tolog. >Do you have any ideas on what should I do to overcome the >net.sf.hibernate.LazyInitializationException? > >Thank you and have a nice Summer >George > > > > |