-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
 Post subject: Error Creating SessionFactory-Could not parse mapping doc.
PostPosted: Tue Feb 19, 2008 5:29 am 
Newbie

Joined: Tue Feb 19, 2008 5:17 am
Posts: 5
Location: Hyderabad
Hi ,
I am doing a web application using spring and Hibernate using jboss server.
I am using Hibernate3.0 and db server is MySql5.
I am getting the following exception while connecting to database.
Here is the log.

###########Exception############

Feb 19, 2008 2:34:04 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
Feb 19, 2008 2:34:04 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
Feb 19, 2008 2:34:04 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
Feb 19, 2008 2:34:04 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
Feb 19, 2008 2:34:05 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource: com/mysafe/db/config/UserDetails.hbm.xml
Feb 19, 2008 2:34:05 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource: com/mysafe/db/config/UserDetails.hbm.xml
%%%% Error Creating SessionFactory %%%%--org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/mysafe/db/config/UserDetails.hbm.xml
org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/mysafe/db/config/UserDetails.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:523)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1511)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1479)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1458)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1432)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1352)
at org.prime.hibernate.factory.HibernateSessionFactory.rebuildSessionFactory(HibernateSessionFactory.java:57)
at org.prime.hibernate.factory.HibernateSessionFactory.getSession(HibernateSessionFactory.java:39)
at org.prime.hibernate.dao.BaseDaoImpl.getQueryForList(BaseDaoImpl.java:98)
at com.mysafe.db.dao.LoginDaoImpl.validateUser(LoginDaoImpl.java:33)
at com.mysafe.webapp.actioncommand.LoginActionCommand.executeCommand(LoginActionCommand.java:52)
at com.mysafe.webapp.action.LoginAction.doAction(LoginAction.java:41)
at com.mysafe.common.base.action.BaseFormAction.process(BaseFormAction.java:34)
at org.prime.spring.BaseFormController.onSubmit(BaseFormController.java:36)
at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:250)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:820)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:469)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:520)
... 37 more
Caused by: org.dom4j.DocumentException: FWK005 parse may not be called while parsing. Nested exception: FWK005 parse may not be called while parsing.
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:460)
... 38 more
%%%% Error Creating SessionFactory %%%%--java.lang.NullPointerException
java.lang.NullPointerException
at org.hibernate.cfg.HbmBinder.getExtendsNeeded(HbmBinder.java:2968)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:109)
at org.hibernate.cfg.Configuration.add(Configuration.java:424)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:465)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:520)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1511)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1479)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1458)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1432)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1352)
at org.prime.hibernate.factory.HibernateSessionFactory.rebuildSessionFactory(HibernateSessionFactory.java:57)
at org.prime.hibernate.factory.HibernateSessionFactory.getSession(HibernateSessionFactory.java:39)
at org.prime.hibernate.dao.BaseDaoImpl.getQueryForList(BaseDaoImpl.java:98)
at com.mysafe.db.dao.LoginDaoImpl.validateUser(LoginDaoImpl.java:33)
at com.mysafe.webapp.actioncommand.LoginActionCommand.executeCommand(LoginActionCommand.java:52)
at com.mysafe.webapp.action.LoginAction.doAction(LoginAction.java:41)
at com.mysafe.common.base.action.BaseFormAction.process(BaseFormAction.java:34)
at org.prime.spring.BaseFormController.onSubmit(BaseFormController.java:36)
at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:250)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:820)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerException
at org.prime.hibernate.dao.BaseDaoImpl.getQueryForList(BaseDaoImpl.java:101)
at com.mysafe.db.dao.LoginDaoImpl.validateUser(LoginDaoImpl.java:33)
at com.mysafe.webapp.actioncommand.LoginActionCommand.executeCommand(LoginActionCommand.java:52)
at com.mysafe.webapp.action.LoginAction.doAction(LoginAction.java:41)
at com.mysafe.common.base.action.BaseFormAction.process(BaseFormAction.java:34)
at org.prime.spring.BaseFormController.onSubmit(BaseFormController.java:36)
at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:250)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:45)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:820)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:755)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:360)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerException

#########################################

Here is my hibernate.cfg.xml file :::

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

<hibernate-configuration>
<session-factory>
<property name="connection.url">
jdbc:mysql://<server address>:3307/<database>?zeroDateTimeBehavior=convertToNull
</property>

<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="connection.username">root</property>
<property name="connection.password">007</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="show_sql">true</property>

<property name="hibernate.c3p0.max_size">15</property>
<property name="hibernate.c3p0.min_size">2</property>
<property name="hibernate.c3p0.timeout">5000</property>
<property name="hibernate.c3p0.max_statements">100</property>
<property name="hibernate.c3p0.idle_test_period">300</property>
<property name="hibernate.c3p0.acquire_increment">2</property>

<mapping resource="com/mypack/db/config/UserDetails.hbm.xml" />

</session-factory>


</hibernate-configuration>

##########################################


Here is my UserDetails.hbm.xml file::::


<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping auto-import="true" default-lazy="false">
<class name="com.mypack.db.entity.UserDetails" table="user_details">
<id name="userid" type="java.lang.Integer">
<column name="userid" />
<generator class="increment" />
</id>
<property name="userName" type="java.lang.String">
<column name="userName" length="30" not-null="true" />
</property>
<property name="password" type="java.lang.String">
<column name="password" length="30" not-null="true" />
</property>
<property name="firstName" type="java.lang.String">
<column name="firstName" length="30" not-null="true" />
</property>
<property name="lastName" type="java.lang.String">
<column name="lastName" length="30" not-null="true" />
</property>
<property name="email" type="java.lang.String">
<column name="email" length="30" not-null="true" />
</property>
<property name="phoneNo" type="java.lang.String">
<column name="phoneNo" length="45" not-null="true" />
</property>
</class>
</hibernate-mapping>

#############################

Please help me to solve this problem.

Thanks in Advance,
SAi.

_________________
Thanks,
SAi


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 19, 2008 11:19 am 
Senior
Senior

Joined: Fri Jun 01, 2007 12:41 pm
Posts: 121
Sai,
Your hibernate.cfg.xml file has mapping file location as

Code:
<mapping resource="com/mypack/db/config/UserDetails.hbm.xml" />


but your exception trace shows the path as com/mysafe/db/config/UserDetails.hbm.xml

Quote:
INFO: Reading mappings from resource: com/mysafe/db/config/UserDetails.hbm.xml
%%%% Error Creating SessionFactory %%%%--org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/mysafe/db/config/UserDetails.hbm.xml
org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/mysafe/db/config/UserDetails.hbm.xml


Correct your mapping path in hibernate.cfg.xml. Refer to this doc:
http://www.hibernate.org/hib_docs/refer ... figuration


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 19, 2008 11:24 am 
Newbie

Joined: Tue Feb 19, 2008 5:17 am
Posts: 5
Location: Hyderabad
Thanks for your reply.
I have given the correct path.
I have changed the package structure to com/mysafe/db/config/UserDetails.hbm.xml in hibernate.cfg.xml file.
But, still i am getting same problem.

_________________
Thanks,
SAi


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 19, 2008 11:37 am 
Senior
Senior

Joined: Fri Jun 01, 2007 12:41 pm
Posts: 121
Where did you keep the hibernate.cfg.xml file in your source code. And also post the code where your initialize Hibernate. Make sure hibernate.cfg.xml is in the top level directory...directory under src directory.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 20, 2008 6:56 am 
Regular
Regular

Joined: Wed Jun 20, 2007 1:53 am
Posts: 75
Sai,
Make sure your Hibernate.cfg.xml is in classpath


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 21, 2008 11:54 am 
Newbie

Joined: Tue Feb 19, 2008 5:17 am
Posts: 5
Location: Hyderabad
I have placed hibernate.cfg.xml file in src folder.
Still i am having same problem while connecting to the db first time.
once it get connected to db then there is no exception.

what is meant by Make sure your Hibernate.cfg.xml is in classpath ??
what to do for that?

While loading the hibernat.cfg.xml only its giving an exception, its not able to parse the .hbm files.



Thanks in Advance,
SAi.

_________________
Thanks,
SAi


Top
 Profile  
 
 Post subject: Same problem here
PostPosted: Thu Mar 27, 2008 7:13 am 
Newbie

Joined: Wed May 24, 2006 3:15 pm
Posts: 4
I am having the same issue.
Also using Hibernate 3 and mysql.

The mappings and hibernate cfg files load fine during development and most of the time in production.

It appears to fail when the server is under some kind of load (not sure about that one). Seems that the dom4j lib is having issues parsing the hbm files while trying to do other things as well. This is just an assumption, theading issues. Things start up fine when I restart in off hours, or else I need to try and restart once or twice.

Here is my log file. Would REALLY like to resolve this.

INFO | jvm 1 | 2008/03/26 02:32:15 | %%%% Error Creating SessionFactory: Could not parse mapping document from resource com/[REMOVED]/[REMOVED]/entity/User.hbm.xml%%%%
INFO | jvm 1 | 2008/03/26 02:32:15 | org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/[REMOVED]/[REMOVED]/entity/User.hbm.xml
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.hibernate.cfg.Configuration.addResource(Configuration.java:575)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.hibernate.cfg.Configuration.configure(Configuration.java:1434)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.xxframework.control.HibernateSessionFactory.currentSession(HibernateSessionFactory.java:66)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.xxframework.DataController.getXXData(DataController.java:255)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.xxframework.DataController.getData(DataController.java:203)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.xxframework.Base.doPost(Base.java:252)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.xxframework.Base.doGet(Base.java:309)
INFO | jvm 1 | 2008/03/26 02:32:15 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
INFO | jvm 1 | 2008/03/26 02:32:15 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
INFO | jvm 1 | 2008/03/26 02:32:15 | at java.lang.Thread.run(Thread.java:595)
INFO | jvm 1 | 2008/03/26 02:32:15 | Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:514)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.hibernate.cfg.Configuration.addResource(Configuration.java:572)
INFO | jvm 1 | 2008/03/26 02:32:15 | ... 27 more
INFO | jvm 1 | 2008/03/26 02:32:15 | Caused by: org.dom4j.DocumentException: FWK005 parse may not be called while parsing. Nested exception: FWK005 parse may not be called while parsing.
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.dom4j.io.SAXReader.read(SAXReader.java:484)
INFO | jvm 1 | 2008/03/26 02:32:15 | at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:505)
INFO | jvm 1 | 2008/03/26 02:32:15 | ... 28 more
INFO | jvm 1 | 2008/03/26 02:32:15 | java.lang.NullPointerException


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 29, 2008 3:08 am 
Newbie

Joined: Tue Feb 19, 2008 5:17 am
Posts: 5
Location: Hyderabad
Hi,

This problem was solved for me.
I am getting this exception because of mistake in fist Jsp file.

You are getting this exception while deploying or connecting to db??

_________________
Thanks,
SAi


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 29, 2008 8:00 am 
Newbie

Joined: Wed May 24, 2006 3:15 pm
Posts: 4
Tomcat starts up.
Then on my first page load, hibernate loads the session.

The error happen when the session is being created, while reading the XML document.

It seems to only happen under some load and appears to be an error in the xml parsing library. AT least that is my guess.

Only started when I upgraded to hibernate 3, potentially with other libaries (which may be the problem)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 31, 2008 6:55 am 
Newbie

Joined: Tue Feb 19, 2008 5:17 am
Posts: 5
Location: Hyderabad
Hi,
are you using Myeclipse generated files?
if so remove the myeclipse generated comments,and work on it.

can u send me the fils whic u have used before connect to DB.

_________________
Thanks,
SAi


Top
 Profile  
 
 Post subject: org.hibernate.InvalidMappingException: Could not parse mapp
PostPosted: Wed Oct 15, 2008 4:27 am 
Newbie

Joined: Wed Oct 15, 2008 4:22 am
Posts: 1
Hai i am vamshi.

I have encountered the same problem as " org.hibernate.InvalidMappingException: Could not parse mapping document from resource "

It was just corrected setting the classpath.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.