facebook

One new bug and one old bug

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #226636 Reply

    Kevin_L
    Member

    Hi,

    I would like to report two bugs for version 3.8.4.

    One new bug, I have this HibernateException

    PROBLEM:

    
    net.sf.hibernate.PropertyNotFoundException: Could not find a getter for sEditor in class nas.epowr.RubyReports.Hibernate.Reports
        at net.sf.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:182)
        at net.sf.hibernate.mapping.Property.getGetter(Property.java:175)
    

    SOLUTION:

    I was able to fix this bug by changing the property name in hibernate mapping file. It should be SEditor. MyEclipse added wrong property name for the sEditor methods. It is fixed now. The physical table name is s_editor. May be myEclipse got confused with it. 
    

    I have been using MyElipse since 3.8.2 and I had the same problem in 3.8.2 and I still have this following problem in 3.8.4

    PROBLEM:
    Hibernate Session is keep closing on and on. Your apps is stuck with it.

    You have this Hibernate Exception error. Session is closed

    SOLUTION

    Add session.isOpen() == false in if condition statment

     public static Session currentSession() throws HibernateException {
            Session session = (Session) threadLocal.get();
    
            if (session == null || session.isOpen() == false) {
                if (sessionFactory == null) {
                    try {
                        cfg.configure(CONFIG_FILE_LOCATION);
                        sessionFactory = cfg.buildSessionFactory();
                    }
                    catch (Exception e) {
                        System.err.println("%%%% Error Creating SessionFactory %%%%");
                        e.printStackTrace();
                    }
                }
                session = sessionFactory.openSession();
                threadLocal.set(session);
            }
    
            return session;
        }
    #226638 Reply

    Riyad Kalla
    Member

    I would like to report two bugs for version 3.8.4.

    One new bug, I have this HibernateException

    Strange, I will let the hib dev know.

    Hibernate Session is keep closing on and on. Your apps is stuck with it.

    You have this Hibernate Exception error. Session is closed

    Thank you for the enhancement, I will file it so we can update the template.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: One new bug and one old bug

You must be logged in to post in the forum log in