facebook

Error: When open the MyEclipse HQL Editor.

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #257044 Reply

    wangkai_steven
    Participant

    i think i get answers. i find if your pc is on internet,you execute hql with no problem.but if you disconnect it,you execute hql may lead to some errors like “hibernate.cfg.xml can’t parse”.i think the problem is dtd that described on hibernate.cfg.xml head.

    #257266 Reply

    Rosa Roberts
    Member

    i think i get answers. i find if your pc is on internet,you execute hql with no problem.but if you disconnect it,you execute hql may lead to some errors like “hibernate.cfg.xml can’t parse”.i think the problem is dtd that described on hibernate.cfg.xml head.

    Thanks for the reply. I’m pretty sure this isn’t my issue. I have connectivety to the internet. Also, I can run my server and queries fine, just not through the hql query view.

    Brian & Peco, did the information I provide help narrow the issue down?

    #257268 Reply

    Haris Peco
    Member

    voyeclipse,

    I suppose that you can send us complete HibernateTestProj and if you do it I will test it

    I saw that you use SQL server and you have got ‘coonection timeout’.It is possible that your database is not setted for jdbc connection (you have to choose mixed authentication when you install db if you want use jdbc connections).However, if you can access from db explorer with exactly same settings then your db is fine

    Thanks
    Peco

    #270128 Reply

    Figa
    Member

    Hi All,

    When I try to use the HQL Editor on a table this message is displayed :

    Session factory not created for configuration: HibernateTest

    #271444 Reply

    jnoob
    Member

    Hi,

    I am having the same problem when running the application through .bat file, when running in eclipse, it works fine. Below is the exception message:

    net.sf.hibernate.HibernateException: problem parsing configuration/hibernate.cf
    .xml
    at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:97
    )
    at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:911)
    at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:897)
    at ais.common.aisdb.HibernateUtilities.<init>(HibernateUtilities.java:5
    )
    at ais.common.aisdb.HibernateUtilities.getInstance(HibernateUtilities.j
    va:66)
    at ais.common.aisdb.AisDbHelper.<init>(AisDbHelper.java:36)
    at ais.common.aisdb.AisDbHelper.getInstance(AisDbHelper.java:52)
    at ais.ui.dao.BaseDAO.getConnection(BaseDAO.java:20)
    at ais.ui.dao.UserGroupFunctionDAO.getFunctionIDsByGroupID(UserGroupFun
    tionDAO.java:65)
    at ais.ui.main.BusAISMenu.retrieveFunctionIDsByGroup(BusAISMenu.java:38
    )
    at ais.ui.main.BusAISMenu.<init>(BusAISMenu.java:72)
    at ais.ui.main.BusAISMenu$7.run(BusAISMenu.java:280)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: org.dom4j.DocumentException: hibernate.sourceforge.net Nested except
    on: hibernate.sourceforge.net
    at org.dom4j.io.SAXReader.read(SAXReader.java:358)
    at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:96
    )
    … 18 more
    Exception in thread “AWT-EventQueue-0” java.lang.ExceptionInInitializerError
    at ais.common.aisdb.HibernateUtilities.<init>(HibernateUtilities.java:6
    )
    at ais.common.aisdb.HibernateUtilities.getInstance(HibernateUtilities.j
    va:66)
    at ais.common.aisdb.AisDbHelper.<init>(AisDbHelper.java:36)
    at ais.common.aisdb.AisDbHelper.getInstance(AisDbHelper.java:52)
    at ais.ui.dao.BaseDAO.getConnection(BaseDAO.java:20)
    at ais.ui.dao.UserGroupFunctionDAO.getFunctionIDsByGroupID(UserGroupFun
    tionDAO.java:65)
    at ais.ui.main.BusAISMenu.retrieveFunctionIDsByGroup(BusAISMenu.java:38
    )
    at ais.ui.main.BusAISMenu.<init>(BusAISMenu.java:72)
    at ais.ui.main.BusAISMenu$7.run(BusAISMenu.java:280)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: net.sf.hibernate.HibernateException: problem parsing configuration/h
    bernate.cfg.xml
    at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:97
    )
    at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:911)
    at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:897)
    at ais.common.aisdb.HibernateUtilities.<init>(HibernateUtilities.java:5
    )
    … 15 more
    Caused by: org.dom4j.DocumentException: hibernate.sourceforge.net Nested except
    on: hibernate.sourceforge.net
    at org.dom4j.io.SAXReader.read(SAXReader.java:358)
    at net.sf.hibernate.cfg.Configuration.doConfigure(Configuration.java:96
    )
    … 18 more

    Someone please help, thanks alot.

    #271445 Reply

    jnoob
    Member

    Another point, when running on the same .bat file in another machine, it works, only my machine has the error.

    #271856 Reply

    jnoob
    Member

    BUMP BUMP BUMP

Viewing 7 posts - 16 through 22 (of 22 total)
Reply To: Error: When open the MyEclipse HQL Editor.

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