- This topic has 21 replies, 8 voices, and was last updated 17 years, 6 months ago by jnoob.
-
AuthorPosts
-
wangkai_stevenParticipanti 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.
Rosa RobertsMemberi 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?
Haris PecoMembervoyeclipse,
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
FigaMemberHi All,
When I try to use the HQL Editor on a table this message is displayed :
Session factory not created for configuration: HibernateTest
jnoobMemberHi,
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 Sourceat 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 Sourceat 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 moreSomeone please help, thanks alot.
jnoobMemberAnother point, when running on the same .bat file in another machine, it works, only my machine has the error.
jnoobMemberBUMP BUMP BUMP
-
AuthorPosts