<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=eboudrant" rel="nofollow">Emmanuel Boudrant</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-654?redirect=false" rel="nofollow">SPR-654</a></strong> and commented</p>
<p dir="auto">I have this exception when I try to update an entity, it seem the session object passed in the HibernateCallback is null :</p>
<p dir="auto">java.lang.NullPointerException<br>
at org.springframework.orm.hibernate.HibernateTemplate.checkWriteOperationAllowed(Lnet.sf.hibernate.Session;)V(HibernateTemplate.java:954)<br>
at org.springframework.orm.hibernate.HibernateTemplate$15.doInHibernate(Lnet.sf.hibernate.Session;)Ljava.lang.Object;(HibernateTemplate.java:362)<br>
at org.springframework.orm.hibernate.HibernateTemplate.execute(Lorg.springframework.orm.hibernate.HibernateCallback;)Ljava.lang.Object;(HibernateTemplate.java:200)<br>
at org.springframework.orm.hibernate.HibernateTemplate.update(Ljava.lang.Object;)V(HibernateTemplate.java:360)<br>
at com.monitoring.dao.impl.BsContractDaoImpl.update(Lcom.monitoring.BsContract;)V(BsContractDaoImpl.java:286)</p>
<p dir="auto">Here the JTA configuration :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;bean id=&quot;jndiTransactionManager&quot;
    class=&quot;org.springframework.transaction.jta.WebLogicServerTransactionManagerFactoryBean&quot;&gt;
&lt;/bean&gt;

&lt;!-- Jta platform tm --&gt;
&lt;bean id=&quot;transactionManager&quot;
    class=&quot;org.springframework.transaction.jta.WebLogicJtaTransactionManager&quot;&gt;
    &lt;property name=&quot;transactionManager&quot;&gt;
        &lt;ref local=&quot;jndiTransactionManager&quot;/&gt;
    &lt;/property&gt;
&lt;/bean&gt; "><pre class="notranslate"><code class="notranslate">&lt;bean id="jndiTransactionManager"
    class="org.springframework.transaction.jta.WebLogicServerTransactionManagerFactoryBean"&gt;
&lt;/bean&gt;

&lt;!-- Jta platform tm --&gt;
&lt;bean id="transactionManager"
    class="org.springframework.transaction.jta.WebLogicJtaTransactionManager"&gt;
    &lt;property name="transactionManager"&gt;
        &lt;ref local="jndiTransactionManager"/&gt;
    &lt;/property&gt;
&lt;/bean&gt; 
</code></pre></div>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.1.1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398054417" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/5366" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/5366/hovercard" href="https://github.com/spring-projects/spring-framework/issues/5366">#5366</a> SessionFactoryUtils.getSession(..) before PROPAGATION_REQUIRED (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=hany" rel="nofollow">hany mohamed shafik</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3984?redirect=false" rel="nofollow">SPR-3984</a></strong> and commented</p>
<p dir="auto">We are currently working on an enterprise project for one of our biggest clients. We are using Spring 2.0 and Spring Web Flow 1.0 Rc4. While deploying the application to Oracle 9ias 10.1.2.0.2 in our development environment, we encountered the following error. We experienced the same error in Spring 2.0 RC2 and it was fixed in Spring 2.0 RC3 by Rick Evans. The ticket No is SPR - 2290. Kindly fix the bug. I will attach the XMLParser Oracle uses so you guys can test it. This is a critical error and we are unable to move forward.</p>
<p dir="auto">EXCEPTION FROM THE LOG FILE:</p>
<hr>
<p dir="auto">06/10/11 17:58:18 Started<br>
06/10/11 17:58:21 drlm: jsp: init<br>
06/10/11 17:58:21 drlm: context: init<br>
06/10/11 17:58:21 drlm: Loading Spring root WebApplicationContext<br>
06/10/11 17:58:52 drlm: Error initializing servlet<br>
org.springframework.beans.factory.BeanDefinitionStoreException: Line 8 in XML document from ServletContext resource [/WEB-INF/drlm-servlet.xml] is invalid; nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'<br>
Caused by: oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'<br>
at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:444)<br>
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:303)<br>
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:290)<br>
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)<br>
at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:151)<br>
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:405)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)<br>
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)<br>
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)<br>
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)<br>
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)<br>
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)<br>
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)<br>
at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)<br>
at javax.servlet.GenericServlet.init(GenericServlet.java:258)<br>
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)<br>
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)<br>
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)<br>
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)<br>
at com.evermind.server.http.HttpApplication.&lt;init&gt;(HttpApplication.java:549)<br>
at com.evermind.server.Application.getHttpApplication(Application.java:890)<br>
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)<br>
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)<br>
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)<br>
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)<br>
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)<br>
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)<br>
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)<br>
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)<br>
at java.lang.Thread.run(Thread.java:534)<br>
06/10/11 17:58:52 drlm: Error preloading servlet<br>
javax.servlet.ServletException: Error initializing servlet<br>
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4846)<br>
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)<br>
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)<br>
at com.evermind.server.http.HttpApplication.&lt;init&gt;(HttpApplication.java:549)<br>
at com.evermind.server.Application.getHttpApplication(Application.java:890)<br>
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)<br>
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)<br>
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)<br>
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)<br>
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)<br>
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)<br>
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)<br>
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)<br>
at java.lang.Thread.run(Thread.java:534)<br>
06/10/11 17:58:52 drlm: drlm: init<br>
06/10/11 17:58:52 drlm: Loading WebApplicationContext for Spring FrameworkServlet 'drlm'<br>
06/10/11 17:58:52 drlm: Error initializing servlet<br>
org.springframework.beans.factory.BeanDefinitionStoreException: Line 8 in XML document from ServletContext resource [/WEB-INF/drlm-servlet.xml] is invalid; nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'<br>
Caused by: oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'<br>
at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:444)<br>
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:303)<br>
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:290)<br>
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:196)<br>
at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:151)<br>
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:405)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:357)<br>
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126)<br>
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142)<br>
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123)<br>
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91)<br>
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94)<br>
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294)<br>
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)<br>
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)<br>
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)<br>
at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)<br>
at javax.servlet.GenericServlet.init(GenericServlet.java:258)<br>
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)<br>
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)<br>
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)<br>
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)<br>
at com.evermind.server.http.HttpApplication.&lt;init&gt;(HttpApplication.java:549)<br>
at com.evermind.server.Application.getHttpApplication(Application.java:890)<br>
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)<br>
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)<br>
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)<br>
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)<br>
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)<br>
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)<br>
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)<br>
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)<br>
at java.lang.Thread.run(Thread.java:534)<br>
06/10/11 17:58:52 drlm: Error preloading servlet<br>
javax.servlet.ServletException: Error initializing servlet<br>
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4846)<br>
at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)<br>
at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)<br>
at com.evermind.server.http.HttpApplication.&lt;init&gt;(HttpApplication.java:549)<br>
at com.evermind.server.Application.getHttpApplication(Application.java:890)<br>
at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)<br>
at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)<br>
at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)<br>
at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)<br>
at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)<br>
at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)<br>
at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)<br>
at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)<br>
at java.lang.Thread.run(Thread.java:534)<br>
06/10/11 17:58:52 drlm: dwr-invoker: init<br>
06/10/11 17:58:53 drlm: Started</p>
<p dir="auto">drlm-servlet.xml file:</p>
<hr>
<p dir="auto">&lt;?xml version="1.0" encoding="UTF-8"?&gt;</p>
<p dir="auto">&lt;beans xmlns="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a>"<br>
xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>"<br>
xmlns:flow="<a href="http://www.springframework.org/schema/webflow-config" rel="nofollow">http://www.springframework.org/schema/webflow-config</a>"<br>
xsi:schemaLocation="<a href="http://www.springframework.org/schema/beans" rel="nofollow">http://www.springframework.org/schema/beans</a><br>
<a href="http://www.springframework.org/schema/beans/spring-beans-2.0.xsd" rel="nofollow">http://www.springframework.org/schema/beans/spring-beans-2.0.xsd</a><br>
<a href="http://www.springframework.org/schema/webflow-config" rel="nofollow">http://www.springframework.org/schema/webflow-config</a><br>
<a href="http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd%22%3E" rel="nofollow">http://www.springframework.org/schema/webflow-config/spring-webflow-config-1.0.xsd"&gt;</a></p>
<p dir="auto">&lt;!--</p>
<ul dir="auto">
<li>
<p dir="auto">DispatcherServlet application context for Device Registration and Listing Application web tier.<br>
--&gt;</p>
- Message source for this context, loaded from localized "messages_xx" files.
<ul dir="auto">
<li>Could also reside in the root application context, as it is generic,</li>
<li>but is currently just used within DRLM's web tier.<br>
--&gt;</li>
</ul>

	



uk.ltd.getahead.dwr.DWRServlet
dwr-invoker
 true







		
		 
 

flowController
				  drlmMainMenuController                                 


    

	



	
	


<p dir="auto">&lt;flow:executor id="flowExecutor" registry-ref="flowRegistry" repository-type="continuation"/&gt;</p>

<p dir="auto">&lt;flow:registry id="flowRegistry"&gt;<br>
&lt;flow:location path="file:html/WEB-INF/flows/**/*-flow.xml"/&gt;<br>
&lt;/flow:registry&gt;</p>




	
	
	



	
</li>
</ul>
<p dir="auto">&lt;/beans&gt;</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0 final</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398068315" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6979" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6979/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6979">#6979</a> oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType' in spring-util.xsd. We are unable to start OC4j Server.</li>
</ul>