24 Jul 2016 15:05:52,278 WARN DisposableBeanAdapter,localhost-startStop-1:193 - - Invocation of destroy method failed on bean with name 'sessionFactory': org.hibernate.cache.CacheException: java.lang.IllegalStateException: The CacheManager has been shut down. It can no longer be used. 24 Jul 2016 15:05:52,314 ERROR ContextLoader,localhost-startStop-1:220 - - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'archetypeRuleService' defined in ServletContext resource [/WEB-INF/openvpms-framework.xml]: Cannot resolve reference to bean 'archetypeService' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'archetypeService' defined in ServletContext resource [/WEB-INF/openvpms-framework.xml]: Cannot resolve reference to bean 'ruleEngine' while setting bean property 'ruleEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ruleEngine' defined in ServletContext resource [/WEB-INF/openvpms-framework.xml]: Cannot resolve reference to bean 'ruleSource' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ruleSource' defined in ServletContext resource [/WEB-INF/openvpms-framework.xml]: Invocation of init method failed; nested exception is org.openvpms.component.business.service.ruleengine.RuleEngineException: Failed to process the rule descriptor with source classpath and path org/openvpms/archetype/rules/archetypeService.save.act.bankDeposit.before.drl. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4812) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5255) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:939) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1812) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'archetypeService' defined in ServletContext resource [/WEB-INF/openvpms-framework.xml]: Cannot resolve reference to bean 'ruleEngine' while setting bean property 'ruleEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ruleEngine' defined in ServletContext resource [/WEB-INF/openvpms-framework.xml]: Cannot resolve reference to bean 'ruleSource' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ruleSource' defined in ServletContext resource [/WEB-INF/openvpms-framework.xml]: Invocation of init method failed; nested exception is org.openvpms.component.business.service.ruleengine.RuleEngineException: Failed to process the rule descriptor with source classpath and path org/openvpms/archetype/rules/archetypeService.save.act.bankDeposit.before.drl. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) ... 30 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ruleEngine' defined in ServletContext resource [/WEB-INF/openvpms-framework.xml]: Cannot resolve reference to bean 'ruleSource' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ruleSource' defined in ServletContext resource [/WEB-INF/openvpms-framework.xml]: Invocation of init method failed; nested exception is org.openvpms.component.business.service.ruleengine.RuleEngineException: Failed to process the rule descriptor with source classpath and path org/openvpms/archetype/rules/archetypeService.save.act.bankDeposit.before.drl. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) ... 40 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ruleSource' defined in ServletContext resource [/WEB-INF/openvpms-framework.xml]: Invocation of init method failed; nested exception is org.openvpms.component.business.service.ruleengine.RuleEngineException: Failed to process the rule descriptor with source classpath and path org/openvpms/archetype/rules/archetypeService.save.act.bankDeposit.before.drl. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) ... 52 more Caused by: org.openvpms.component.business.service.ruleengine.RuleEngineException: Failed to process the rule descriptor with source classpath and path org/openvpms/archetype/rules/archetypeService.save.act.bankDeposit.before.drl. at org.openvpms.component.business.service.ruleengine.RuleDescriptorRuleSource.addRules(RuleDescriptorRuleSource.java:191) at org.openvpms.component.business.service.ruleengine.RuleDescriptorRuleSource.registerRuleExecutionSets(RuleDescriptorRuleSource.java:108) at org.springmodules.jsr94.rulesource.AbstractRuleSource.afterPropertiesSet(AbstractRuleSource.java:99) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) ... 59 more Caused by: org.openvpms.component.business.service.ruleengine.RuleEngineException: Failed to register execution set with uri null and path org/openvpms/archetype/rules/archetypeService.save.act.bankDeposit.before.drl. at org.openvpms.component.business.service.ruleengine.RuleDescriptorRuleSource.registerRuleExecutionSet(RuleDescriptorRuleSource.java:244) at org.openvpms.component.business.service.ruleengine.RuleDescriptorRuleSource.registerFromResource(RuleDescriptorRuleSource.java:208) at org.openvpms.component.business.service.ruleengine.RuleDescriptorRuleSource.addRules(RuleDescriptorRuleSource.java:185) ... 63 more Caused by: RuleException(javax.rules.admin.RuleExecutionSetCreateException: cannot create rule set), root cause(org.xml.sax.SAXParseException; error constructing consequence) at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(LocalRuleExecutionSetProviderImpl.java:110) at org.openvpms.component.business.service.ruleengine.RuleDescriptorRuleSource.registerRuleExecutionSet(RuleDescriptorRuleSource.java:238) ... 65 more Caused by: org.xml.sax.SAXParseException; error constructing consequence at org.drools.io.ConsequenceHandler.end(ConsequenceHandler.java:108) at org.drools.io.RuleSetReader.endElement(RuleSetReader.java:617) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source) at org.drools.io.RuleSetReader.read(RuleSetReader.java:443) at org.drools.io.RuleSetReader.read(RuleSetReader.java:337) at org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(LocalRuleExecutionSetProviderImpl.java:105) ... 66 more Caused by: org.drools.smf.FactoryException: java.lang.StringIndexOutOfBoundsException: String index out of range: 3 at org.drools.semantics.java.JavaBlockConsequenceFactory.newConsequence(JavaBlockConsequenceFactory.java:75) at org.drools.io.ConsequenceHandler.end(ConsequenceHandler.java:100) ... 81 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 3 at java.lang.String.charAt(String.java:658) at org.apache.catalina.loader.WebappClassLoaderBase.filter(WebappClassLoaderBase.java:2780) at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1253) at java.lang.ClassLoader.loadClass(ClassLoader.java:411) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at org.codehaus.janino.ClassLoaderIClassLoader.findIClass(Unknown Source) at org.codehaus.janino.IClassLoader.loadIClass(Unknown Source) at org.codehaus.janino.UnitCompiler.reclassifyName(Unknown Source) at org.codehaus.janino.UnitCompiler.reclassifyName(Unknown Source) at org.codehaus.janino.UnitCompiler.reclassifyName(Unknown Source) at org.codehaus.janino.UnitCompiler.reclassifyName(Unknown Source) at org.codehaus.janino.UnitCompiler.reclassifyName(Unknown Source) at org.codehaus.janino.UnitCompiler.reclassifyName(Unknown Source) at org.codehaus.janino.UnitCompiler.reclassifyName(Unknown Source) at org.codehaus.janino.UnitCompiler.reclassifyName(Unknown Source) at org.codehaus.janino.UnitCompiler.reclassify(Unknown Source) at org.codehaus.janino.UnitCompiler.getType2(Unknown Source) at org.codehaus.janino.UnitCompiler$14.visitAmbiguousName(Unknown Source) at org.codehaus.janino.Java$AmbiguousName.visit(Unknown Source) at org.codehaus.janino.UnitCompiler.getType(Unknown Source) at org.codehaus.janino.UnitCompiler.findIMethod(Unknown Source) at org.codehaus.janino.UnitCompiler.compileGet2(Unknown Source) at org.codehaus.janino.UnitCompiler$8.visitMethodInvocation(Unknown Source) at org.codehaus.janino.Java$MethodInvocation.visit(Unknown Source) at org.codehaus.janino.UnitCompiler.compileGet(Unknown Source) at org.codehaus.janino.UnitCompiler.compileGetValue(Unknown Source) at org.codehaus.janino.UnitCompiler.compile2(Unknown Source) at org.codehaus.janino.UnitCompiler$4.visitMethodInvocation(Unknown Source) at org.codehaus.janino.Java$MethodInvocation.visit(Unknown Source) at org.codehaus.janino.UnitCompiler.compile(Unknown Source) at org.codehaus.janino.UnitCompiler.compile2(Unknown Source) at org.codehaus.janino.UnitCompiler$2.visitExpressionStatement(Unknown Source) at org.codehaus.janino.Java$ExpressionStatement.visit(Unknown Source) at org.codehaus.janino.UnitCompiler.compile(Unknown Source) at org.codehaus.janino.UnitCompiler.compile2(Unknown Source) at org.codehaus.janino.UnitCompiler$2.visitBlock(Unknown Source) at org.codehaus.janino.Java$Block.visit(Unknown Source) at org.codehaus.janino.UnitCompiler.compile(Unknown Source) at org.codehaus.janino.UnitCompiler.compile(Unknown Source) at org.codehaus.janino.UnitCompiler.compile2(Unknown Source) at org.codehaus.janino.UnitCompiler$1.visitPackageMemberClassDeclaration(Unknown Source) at org.codehaus.janino.Java$PackageMemberClassDeclaration.visit(Unknown Source) at org.codehaus.janino.UnitCompiler.compile(Unknown Source) at org.codehaus.janino.UnitCompiler.compileUnit(Unknown Source) at org.codehaus.janino.EvaluatorBase.compileAndLoad(Unknown Source) at org.codehaus.janino.EvaluatorBase.compileAndLoad(Unknown Source) at org.drools.semantics.java.JavaScriptEvaluator.(JavaScriptEvaluator.java:200) at org.drools.semantics.java.JavaScriptEvaluator.compile(JavaScriptEvaluator.java:353) at org.drools.semantics.java.JavaCompiler.compile(JavaCompiler.java:105) at org.drools.semantics.java.JavaBlockConsequence.compile(JavaBlockConsequence.java:158) at org.drools.semantics.java.JavaBlockConsequence.(JavaBlockConsequence.java:100) at org.drools.semantics.java.JavaBlockConsequenceFactory.newConsequence(JavaBlockConsequenceFactory.java:68) ... 82 more