<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Exception while running Vacation Request flow in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24662#M12082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am facing similar issue while using activiti 5.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:44)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.db.DbSqlSession.selectOne(DbSqlSession.java:191)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.persistence.entity.ProcessDefinitionManager.findLatestProcessDefinitionByKey(ProcessDefinitionManager.java:32)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:111)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:37)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:39)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:57)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:43)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:105)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.vit.cms.workflow.WorkflowManager.&amp;lt;init&amp;gt;(WorkflowManager.java:29)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.vit.cms.ui.servlet.BeginReleaseServlet.processRequest(BeginReleaseServlet.java:64)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.vit.cms.ui.servlet.BeginReleaseServlet.doPost(BeginReleaseServlet.java:116)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; javax.servlet.http.HttpServlet.service(HttpServlet.java:641)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; javax.servlet.http.HttpServlet.service(HttpServlet.java:722)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.vit.cms.ui.filter.AccessControlFilter.doFilter(AccessControlFilter.java:52)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate your suggestions and advice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rahul Babar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2011 05:42:19 GMT</pubDate>
    <dc:creator>rahulbabarit</dc:creator>
    <dc:date>2011-08-16T05:42:19Z</dc:date>
    <item>
      <title>Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24656#M12076</link>
      <description>Hi,I am getting the following exception when i am running the Vacation Request flow. Also i would like to give a context along with this regarding my application. I am current using activiti-emgine as a jar in my spring application and am developing functionality where in i am using following operat</description>
      <pubDate>Fri, 11 Feb 2011 12:11:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24656#M12076</guid>
      <dc:creator>vishals</dc:creator>
      <dc:date>2011-02-11T12:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24657#M12077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reporting this bug. I've created an issue for this problem and It will be fixed in 5.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-621" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-621&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 14:31:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24657#M12077</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-02-11T14:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24658#M12078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having a similar error with Activiti 5.3:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;2011-03-12 16:56:15,545 [http-8093-3] ERROR interceptor.CommandContext&amp;nbsp; - Error while closing command context&lt;BR /&gt;org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2&lt;BR /&gt; at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:42)&lt;BR /&gt; at org.activiti.engine.impl.db.DbSqlSession.selectOne(DbSqlSession.java:179)&lt;BR /&gt; at org.activiti.engine.impl.db.DbRepositorySession.findDeployedLatestProcessDefinitionByKey(DbRepositorySession.java:168)&lt;BR /&gt; at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:52)&lt;BR /&gt; at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:29)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)&lt;BR /&gt; at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)&lt;BR /&gt; at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)&lt;BR /&gt; at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)&lt;BR /&gt; at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:49)&lt;BR /&gt; at org.activiti.engine.RuntimeService$startProcessInstanceByKey.call(Unknown Source)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)&lt;BR /&gt; at org.grails.activiti.ActivitiService.startProcess(ActivitiService.groovy:37)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt; at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)&lt;BR /&gt; at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)&lt;BR /&gt; at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:970)&lt;BR /&gt; at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)&lt;BR /&gt; at ActivitiGrailsPlugin$_addActivitiMethods_closure7_closure29.doCall(ActivitiGrailsPlugin.groovy:128)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt; at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)&lt;BR /&gt; at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)&lt;BR /&gt; at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)&lt;BR /&gt; at groovy.lang.Closure.call(Closure.java:282)&lt;BR /&gt; at groovy.lang.Closure.call(Closure.java:295)&lt;BR /&gt; at org.codehaus.groovy.runtime.DefaultGroovyMethods.with(DefaultGroovyMethods.java:168)&lt;BR /&gt; at org.codehaus.groovy.runtime.dgm$719.invoke(Unknown Source)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoMetaMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:307)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:63)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)&lt;BR /&gt; at ActivitiGrailsPlugin$_addActivitiMethods_closure7.doCall(ActivitiGrailsPlugin.groovy:126)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt; at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)&lt;BR /&gt; at org.codehaus.groovy.runtime.metaclass.ClosureMetaMethod.invoke(ClosureMetaMethod.java:80)&lt;BR /&gt; at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)&lt;BR /&gt; at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1003)&lt;BR /&gt; at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)&lt;BR /&gt; at testWorkflow.TestWorkflowController$_closure2.doCall(TestWorkflowController.groovy:17)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)&lt;BR /&gt; at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)&lt;BR /&gt; at testWorkflow.TestWorkflowController$_closure2.doCall(TestWorkflowController.groovy)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt; at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)&lt;BR /&gt; at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)&lt;BR /&gt; at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)&lt;BR /&gt; at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)&lt;BR /&gt; at groovy.lang.Closure.call(Closure.java:282)&lt;BR /&gt; at groovy.lang.Closure.call(Closure.java:277)&lt;BR /&gt; at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleAction(SimpleGrailsControllerHelper.java:368)&lt;BR /&gt; at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.executeAction(SimpleGrailsControllerHelper.java:232)&lt;BR /&gt; at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleURI(SimpleGrailsControllerHelper.java:190)&lt;BR /&gt; at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleURI(SimpleGrailsControllerHelper.java:129)&lt;BR /&gt; at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsController.handleRequest(SimpleGrailsController.java:73)&lt;BR /&gt; at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)&lt;BR /&gt; at org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet.doDispatch(GrailsDispatcherServlet.java:292)&lt;BR /&gt; at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)&lt;BR /&gt; at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)&lt;BR /&gt; at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)&lt;BR /&gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)&lt;BR /&gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;BR /&gt; at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;BR /&gt; at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;BR /&gt; at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;BR /&gt; at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;BR /&gt; at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)&lt;BR /&gt; at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)&lt;BR /&gt; at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)&lt;BR /&gt; at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)&lt;BR /&gt; at org.codehaus.groovy.grails.web.util.WebUtils.forwardRequestForUrlMappingInfo(WebUtils.java:298)&lt;BR /&gt; at org.codehaus.groovy.grails.web.util.WebUtils.forwardRequestForUrlMappingInfo(WebUtils.java:264)&lt;BR /&gt; at org.codehaus.groovy.grails.web.util.WebUtils.forwardRequestForUrlMappingInfo(WebUtils.java:255)&lt;BR /&gt; at org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.doFilterInternal(UrlMappingsFilter.java:183)&lt;BR /&gt; at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;BR /&gt; at org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.obtainContent(GrailsPageFilter.java:245)&lt;BR /&gt; at org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.doFilter(GrailsPageFilter.java:134)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;BR /&gt; at org.codehaus.groovy.grails.web.servlet.filter.GrailsReloadServletFilter.doFilterInternal(GrailsReloadServletFilter.java:104)&lt;BR /&gt; at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;BR /&gt; at org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:69)&lt;BR /&gt; at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;BR /&gt; at org.codehaus.groovy.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:69)&lt;BR /&gt; at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;BR /&gt; at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)&lt;BR /&gt; at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)&lt;BR /&gt; at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)&lt;BR /&gt; at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)&lt;BR /&gt; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)&lt;BR /&gt; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)&lt;BR /&gt; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)&lt;BR /&gt; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)&lt;BR /&gt; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)&lt;BR /&gt; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)&lt;BR /&gt; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)&lt;BR /&gt; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)&lt;BR /&gt; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:662)&lt;BR /&gt;2011-03-12 16:56:15,578 [http-8093-3] ERROR errors.GrailsExceptionResolver&amp;nbsp; - Exception occurred when processing request: [GET] /act-test3/testWorkflow/start&lt;BR /&gt;Stacktrace follows:&lt;BR /&gt;org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2&lt;BR /&gt; at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:42)&lt;BR /&gt; at org.activiti.engine.impl.db.DbSqlSession.selectOne(DbSqlSession.java:179)&lt;BR /&gt; at org.activiti.engine.impl.db.DbRepositorySession.findDeployedLatestProcessDefinitionByKey(DbRepositorySession.java:168)&lt;BR /&gt; at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:52)&lt;BR /&gt; at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:29)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)&lt;BR /&gt; at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42)&lt;BR /&gt; at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40)&lt;BR /&gt; at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)&lt;BR /&gt; at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:49)&lt;BR /&gt; at org.activiti.engine.RuntimeService$startProcessInstanceByKey.call(Unknown Source)&lt;BR /&gt; at org.grails.activiti.ActivitiService.startProcess(ActivitiService.groovy:37)&lt;BR /&gt; at ActivitiGrailsPlugin$_addActivitiMethods_closure7_closure29.doCall(ActivitiGrailsPlugin.groovy:128)&lt;BR /&gt; at ActivitiGrailsPlugin$_addActivitiMethods_closure7.doCall(ActivitiGrailsPlugin.groovy:126)&lt;BR /&gt; at testWorkflow.TestWorkflowController$_closure2.doCall(TestWorkflowController.groovy:17)&lt;BR /&gt; at testWorkflow.TestWorkflowController$_closure2.doCall(TestWorkflowController.groovy)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:662)&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;If anyone can share any insight I'd appreciate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Mar 2011 03:25:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24658#M12078</guid>
      <dc:creator>ben11</dc:creator>
      <dc:date>2011-03-13T03:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24659#M12079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like there are 2 process-definitions which the same key who have the same version (and are the latest for that key). Can you check this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How did you deploy your process-definitions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 06:58:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24659#M12079</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-03-14T06:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24660#M12080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You were right, Frederik. Deleting the database entries and redeploying solved the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the Activiti plugin for Grails, and am deploying by putting the workflow XML file in the grails-app/conf directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Mar 2011 18:32:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24660#M12080</guid>
      <dc:creator>ben11</dc:creator>
      <dc:date>2011-03-14T18:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24661#M12081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had the same exception ("Expected one result (or null) to be returned by selectOne(), but found: 2") with Activiti 5.6 in my app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found which entries had the same key/version in ACT_RE_PROCDEF:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;ID_, CATEGORY_, NAME_, KEY_, VERSION_, DEPLOYMENT_ID_, RESOURCE_NAME_, DGRM_RESOURCE_NAME_, HAS_START_FORM_KEY_&lt;BR /&gt;&lt;BR /&gt;'myProcess:167:150103', 'Checkout', NULL, 'myProcess', '167', '150101', 'c:\path1\myProcess.bpmn20.xml', NULL, '0'&lt;BR /&gt;'myProcess:167:150203', 'Checkout', NULL, 'myProcess', '167', '150201', 'c:\path2\different\myProcess.bpmn20.xml', NULL, '0'&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see, there are 2 different paths because it's running in 2 computers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To fix the issue, I just deleted one entry [removing also the constrain with ACT_RU_TASK.proc_def_id_]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I'm trying hard to reproduce the bug but I can't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I be sure that a new version number will be generated each time it runs?. Any advice, or theory on how could this happend?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rufini&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2011 17:38:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24661#M12081</guid>
      <dc:creator>rufini</dc:creator>
      <dc:date>2011-08-10T17:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24662#M12082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am facing similar issue while using activiti 5.5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:44)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.db.DbSqlSession.selectOne(DbSqlSession.java:191)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.persistence.entity.ProcessDefinitionManager.findLatestProcessDefinitionByKey(ProcessDefinitionManager.java:32)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:111)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:37)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:39)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:57)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:43)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:105)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.vit.cms.workflow.WorkflowManager.&amp;lt;init&amp;gt;(WorkflowManager.java:29)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.vit.cms.ui.servlet.BeginReleaseServlet.processRequest(BeginReleaseServlet.java:64)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.vit.cms.ui.servlet.BeginReleaseServlet.doPost(BeginReleaseServlet.java:116)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; javax.servlet.http.HttpServlet.service(HttpServlet.java:641)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; javax.servlet.http.HttpServlet.service(HttpServlet.java:722)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.vit.cms.ui.filter.AccessControlFilter.doFilter(AccessControlFilter.java:52)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate your suggestions and advice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rahul Babar&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 05:42:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24662#M12082</guid>
      <dc:creator>rahulbabarit</dc:creator>
      <dc:date>2011-08-16T05:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24663#M12083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I too had the same error. Got it fixed after deleting one record.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe its a bug and extremely hard to reproduce. Seems like occured when the process was deployed from two machines at nearly the same time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Franklin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 09:15:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24663#M12083</guid>
      <dc:creator>frankee787</dc:creator>
      <dc:date>2011-09-19T09:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24664#M12084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this issue with activiti5.8. In my opinion, it would be good to prevent the deployment of duplicate record instead of getting exception ! ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2012 07:22:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24664#M12084</guid>
      <dc:creator>hamed</dc:creator>
      <dc:date>2012-01-02T07:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24665#M12085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The deployment of the same process is already blocked by the org.activiti.engine.impl.cmd.DeployCmd if the deployment doesn't differ (check the source code for more details). Is there a difference in your deployments?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way to set the version of a process definition to a value that already exists in the database, is getting it from the deployment cache.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind Regards, Ingo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2012 17:56:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24665#M12085</guid>
      <dc:creator>ingo_ri</dc:creator>
      <dc:date>2012-01-02T17:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24666#M12086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This problem still persists in version 5.8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We do deploy the engine in two separate applications at the same time with the same @Singleton @Startup EJB in a JBoss 7 via a cli-script. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There seems to be a high probability that the engine starts up at the exact same time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As an effect the database table ACT_RE_PROCDEF contains duplicate entries of processes with the same id and version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If both applications are deployed with a delay the problem does&amp;nbsp; not occur.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The engine is configured via createProcessEngineConfigurationFromResourceDefault. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;activiti.cfg.xml contains:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="transactionManagerName" value="java:jboss/TransactionManager" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="dataSourceJndiName" value="java:jboss/datasources/datasource.name" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="transactionsExternallyManaged" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="mailServerHost" value="mail " /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="mailServerPort" value="25" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="deploymentResources" value="classpath:/diagrams/*.bpmn20.xml" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;It uses the same resources in booth applications.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(This is only an interims implementation and not for production, but it produces the problem.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;database table ACT_RE_PROCDEF with duplicate entries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;ID_&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CATEGORY_&amp;nbsp;&amp;nbsp; NAME_&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; KEY_&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VERSION_&amp;nbsp; DEPLOYMENT_ID_&lt;BR /&gt;Prototype_flow_activiti:10:2008&amp;nbsp; http://…&amp;nbsp; prototype_flow_activiti&amp;nbsp; Prototype_flow_activiti&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2001&lt;BR /&gt;Prototype_flow_activiti:10:2108&amp;nbsp; http://…&amp;nbsp; prototype_flow_activiti&amp;nbsp; Prototype_flow_activiti&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2101&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 10:38:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24666#M12086</guid>
      <dc:creator>shardt</dc:creator>
      <dc:date>2012-01-06T10:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24667#M12087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a clustered environment it's not a good idea to use the autodeploy feature on more than 1 Activiti instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Would it work for you to have the autodeploy feature only active on 1 instance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 08:19:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24667#M12087</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-01-09T08:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24668#M12088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;we are running Activiti 5.5 and had the same Problem in our production system. (Additional info: We are using the SpringAutoDeployment. So the bug &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-736" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-736&lt;/A&gt;&lt;SPAN&gt; affects the deployment.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree with Franklin: "Seems like occured when the process was deployed from two machines at nearly the same time." The problem occured when four servers where rebooted at the same time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It ended up that none of the applications started sucessfully!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As written in &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=2207&amp;amp;p=9360" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=2207&amp;amp;p=9360&lt;/A&gt;&lt;SPAN&gt; the solution can be a unique constraint because the engine acts like there is one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;ALTER TABLE `ACT_RE_PROCDEF` ADD UNIQUE INDEX `KEY_VERSION` (`KEY_` ASC, `VERSION_` ASC) ;&lt;/CODE&gt;&lt;SPAN&gt;By adding this only the instance that wants to insert the duplicate will fail to start.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to add this to the next release?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tobi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 09:54:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24668#M12088</guid>
      <dc:creator>goekan-t</dc:creator>
      <dc:date>2012-01-09T09:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24669#M12089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we are also hit by this problem using Activiti 5.9, and I was wondering if it is possible to delegate the version increment using a DB sequence. I saw that this code is executed to perform the version increment (taken from org.activiti.engine.impl.bpmn.deployer.BpmnDeployer):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessDefinitionEntity latestProcessDefinition = processDefinitionManager.findLatestProcessDefinitionByKey(processDefinition.getKey());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (latestProcessDefinition != null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processDefinitionVersion = latestProcessDefinition.getVersion() + 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processDefinitionVersion = 1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;If the increment of the version would simply done by a DB sequence, this would ensure that at least the version is incremented every time during a deployment, even if two instances are started almost simultaneously (which happens in our case). Of course the versions would no longer be consecutive (and not even start at "1"), but at least it would be ensured that they are increasing. Since DB sequences (at least in PostgresQL) are not rolled back even in failure cases and access to a sequence is atomic, there would be no collision.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;WDYT?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sven&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 15:23:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24669#M12089</guid>
      <dc:creator>spanko</dc:creator>
      <dc:date>2012-07-03T15:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24670#M12090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sven,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since not all DB's we support, have sequences, this approach isn't generic enough to implement in the engine. As Tijs said, it's not a good idea to use automatic resource-deployment on a cluster. But the solution Tobi suggested with a database-constraint on key and version should prevent any double-inserts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-1280" rel="nofollow noopener noreferrer"&gt;https://jira.codehaus.org/browse/ACT-1280&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 06:57:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24670#M12090</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-04T06:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Exception while running Vacation Request flow</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24671#M12091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have same error referred above: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'processEngine': FactoryBean threw exception on object creation; nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i found 9 process&amp;nbsp; to have duplicate records in ACT_RE_PROCDEF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I updated the VERSION_ of the duplicate records to 0, since this is production version i was not allowed to delete the records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did select the max version and modified the process belongs to that version, is this correct approach?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have totally 12 process defenitions but i see only 9 of the procdef KEY_ with max VERSION_ - what is happening to remaining process?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the app is deployed in 2 tomcat servers. one of the server is already running second one faces issues. After updating the duplicate record VERSION_ i tried to restart the tomcat servers and i am still getting the same error. Is it cached somewhere? i deleted the webapps and Catalina/localhost app folders before starting the server. still i get the same error, pls advise.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using Activiti 5.10&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Satheesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 21:24:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exception-while-running-vacation-request-flow/m-p/24671#M12091</guid>
      <dc:creator>satheesh1</dc:creator>
      <dc:date>2014-12-11T21:24:09Z</dc:date>
    </item>
  </channel>
</rss>

