Error - Could Not Configure Datastore From Input Stream
Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 https://forum.hibernate.org/viewtopic.php?f=1&t=948277&view=previous million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up FluentNHibernate - Could not configure datastore from input stream (XmlDocument) up vote 0 down vote favorite I have a legacy WCF service using FluentNHibernate (along side EF and stored procs). The service was working fine for over an http://stackoverflow.com/questions/22100523/fluentnhibernate-could-not-configure-datastore-from-input-stream-xmldocument year. Recently we change the apppool recycle settings from default to make apppool recycle at 10 AM every day. Since that change, at least twice, my WCF service has failed with following exception FluentNHibernate.Cfg.FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail. ---> FluentNHibernate.Cfg.FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail. ---> NHibernate.MappingException: Could not configure datastore from input stream (XmlDocument) ---> System.NullReferenceException: Object reference not set to an instance of an object. at NHibernate.Cfg.MappingsQueue.GetNextAvailableResource() at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) --- End of inner exception stack trace --- at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception) at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream, String name) at NHibernate.Cfg.Configuration.AddDocument(XmlDocument doc, String name) at FluentNHibernate.PersistenceModel.Configure(Configuration cfg) at FluentNHibernate.Cfg.MappingConfiguration.Apply(Configuration cfg) at FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration() --- End of inner exception stack trace --- at FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration() at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() --- End of inner exception stack trace --- at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() A few interesting things to note Both t
Speaker BureauLog inRegisterSearchSearchCancelError: You don't have JavaScript enabled. This tool uses JavaScript and https://community.oracle.com/thread/1629597?start=0 much of it will not work correctly without it enabled. Please turn JavaScript back on and reload https://developer.jboss.org/thread/25072?tstart=0 this page. Please enter a title. You can not post a blank message. Please type your message and error - try again. More discussions in Java Technology & XML All PlacesJavaJava EE (Java Enterprise Edition)Java Technology & XML This discussion is archived 1 Reply Latest reply on Dec 28, 2006 1:58 PM by 843834 org.dom4j.DocumentException: hibernate.sourceforge.net error - could Nested exception 843834 Nov 2, 2006 10:44 AM Hi everyone, I'm trying to configure hibernate using spring and I'm getting this parsing error. I've looked on the web and it says its a common problem but there's no common solution. Do I need to add jars/dtds? I've included the trace below. Your help would be great appreciated. Thanks [02/11/06 10:28:16:659 GMT] 00000020 SystemOut O 2006-11-02 10:28:16,644 [server.startup : 5] ERROR - Could not configure datastore from input stream org.dom4j.DocumentException: hibernate.sourceforge.net Nested exception: hibernate.sourceforge.net at org.dom4j.io.SAXReader.read(SAXReader.java:358) at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:287) at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:457) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:957) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:924) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:415) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:239) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:155) at org.springframework.beans.factory.suppo
not work correctly without it enabled. Please turn JavaScript back on and reload this page. All Places > JBoss AS > Persistence > Discussions Please enter a title. You can not post a blank message. Please type your message and try again. 1 Reply Latest reply on May 6, 2005 2:28 PM by Shawn Garbett Jboss 4.0.2 and Hibernate 3.0.2 problem Shawn Garbett May 6, 2005 11:05 AM I have a Hibernate har archive that worked on Jboss 4.0.1sp1. I upgraded to 4.0.2. Both of these have the EJB-3.0 preview 5 installed. I changed the install of EJB 3.0 for 4.0.2 according to the directions.The failure happens during deployment. Here's the deployment start:09:51:08,971 INFO [Configuration] Searching for mapping documents in jar: admin.har 09:51:08,972 INFO [Configuration] Found mapping documents in jar: org/centerstone/admin/CostCenter.hbm.xmlThen a bit of time passes with the messages like this: 09:51:24,475 WARN [UDP] discarded message from different group (Tomcat-Cluster). Sender was shawn:33970The failure finally occurs about 3 minutes later: 09:54:23,054 ERROR [Configuration] Could not configure datastore from input stream org.dom4j.DocumentException: Connection timed out Nested exception: Connection timed out at org.dom4j.io.SAXReader.read(SAXReader.java:353) .... Nested exception: java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) ... 09:54:23,078 ERROR [Hibernate] Starting failed jboss.har:service=AdminHibernate org.hibernate.MappingException: org.dom4j.DocumentException: Connection timed out Nested exception: Connection timed out at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:404) at org.hibernate.cfg.Configuration.addJar(Configuration.java:497) ... Caused by: org.dom4j.DocumentException: Connection timed out Nested exception: Connection timed out at org.dom4j.io.SAXReader.read(SAXReader.java:353) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:394) ... The contents of hibernate-service.xml in the archive are as follows: