1. Really strange error: Could not initialize class net.sf.hibernate.impl.SessionFactoryImpl coderanch.comHi, I am newbie to Hibernate, and I was trying to implement it in a Java Web project that I had. Unfortunately, I am facing this mistake whenever I tried to run it: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V If I run it again, then I face this second error: java.lang.NoClassDefFoundError: Could not initialize class net.sf.hibernate.impl.SessionFactoryImpl I've been looking around for people facing this same ... |
2. Little bug in SessionFactoryImpl.getCurrentSession() forum.hibernate.orgTransaction txn = null; try { txn = transactionManager.getTransaction(); if ( !JTAHelper.isInProgress( txn.getStatus() ) ) { -----------------------------------------^ throw new ... |
3. SessionFactoryImpl.checkNamedQueries forum.hibernate.orgThe exact timing information is (given by YourKit profiler) Before commenting the checkNamedQueries : buildSessionFactory() : 190,922 ms checkNamedQueries() : 144,015 ms After commenting the checkNamedQueries : buildSessionFactory() : 21,188 ms I just tried commenting the line and so far i couldn't find any errors because of that. In fact i dont know the impact. (i can send the full profile ... |
4. SessionFactoryObjectFactory left over SessionFactoryImpl forum.hibernate.orgHello all, I'm having a little problem with the SessionFactoryObjectFactory (SFOF). It appears to be holding on to a lot of SessionFactoryImpl's (SFI) in the INSTANCES map. This is occuring because unit tests are creating the SFI's and never actually closing them. I'm currently working on tracing down where each of these SFI's are created, and making sure it is closed, ... |
5. Why SessionFactoryImpl not gc? forum.hibernate.orgConnection is provided by c3p0 connection pool version 0.9. i create a SessionFactory, and create many Session objects,and close all of them except one, When i create the SessionFactory second time because of java entity class changed,i find that the un-close session create used the first SessionFactory with the SessionFactory not gc, the SessionFactoryImpl is not gc because the un-closed Session ... |
6. OutOfMemory - Many SessionFactoryImpl objects forum.hibernate.orgNewbie Joined: Fri Jan 16, 2009 12:59 pm Posts: 2 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0.3 Name and version of the database you are using: Oracle 10g App Server JBoss 3.2.7 I am seeing a problem in our application with OutOfMemoryException. According to the heap dump, I have 131 SessionFactoryImpl objects all owned by ... |