来自 金沙澳门官网网址 2019-12-19 15:01 的文章
当前位置: 金沙澳门官网网址 > 金沙澳门官网网址 > 正文

请问这怎么解决,在Linux下如下异常

Exceptionwhileautodeployingprocessdefinitions.Thisexceptioncanbeignorediftherootcauseindicatesauniqueconstraintviolation,whichistypicallycausedbytwo(ormore)serversbootingupattheexactsametimeanddeployingthesamedefinitions.org.flowable.common.engine.api.FlowableException:Thedeploymentcontainsprocessdefinitionswiththesamekey(processidattribute),thisisnotallowedatorg.flowable.engine.impl.bpmn.deployer.BpmnDeploymentHelper.verifyProcessDefinitionsDoNotShareKeys(BpmnDeploymentHelper.java:56)atorg.flowable.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:79)atorg.flowable.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:62)atorg.flowable.engine.impl.cmd.DeployCmd.executeDeploy(DeployCmd.java:123)atorg.flowable.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:68)atorg.flowable.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:43)atorg.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:51)atorg.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:93)atorg.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:72)atorg.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:56)atorg.flowable.engine.impl.interceptor.BpmnOverrideContextInterceptor.execute(BpmnOverrideContextInterceptor.java:25)atorg.flowable.common.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:53)atorg.flowable.common.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:71)atorg.flowable.common.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:49)atorg.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)atorg.flowable.common.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:46)atorg.flowable.common.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:30)atorg.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)atorg.flowable.common.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)atorg.flowable.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:97)atorg.flowable.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:209)atorg.flowable.spring.configurator.DefaultAutoDeploymentStrategy.deployResources(DefaultAutoDeploymentStrategy.java:62)atorg.flowable.spring.SpringProcessEngineConfiguration.autoDeployResources(SpringProcessEngineConfiguration.java:116)atorg.flowable.spring.SpringProcessEngineConfiguration.lambda$start$0(SpringProcessEngineConfiguration.java:204)atorg.flowable.spring.SpringProcessEngineConfiguration$$Lambda$27/1218622610.accept(UnknownSource)atjava.util.ArrayList.forEach(ArrayList.java:1234)atorg.flowable.spring.SpringProcessEngineConfiguration.start(SpringProcessEngineConfiguration.java:204)atorg.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:175)atorg.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:50)atorg.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:348)atorg.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:151)atorg.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:114)atorg.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:880)atorg.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)atorg.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:303)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1118)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1107)atcom.mapabc.fos.Application.main(Application.java:21)14:54:07.437logback[main]INFO===============================================process文件夹下的流程定义文件并没有重复的processID表清空重启还是同样问题,不知论坛上有没有熟悉flowable的大神,

09:45:19.558[restartedMain]ERRORo.a.e.i.i.CommandContext-[close,171]-Errorwhileclosingcommandcontextjava.lang.NullPointerException:nullatorg.activiti.engine.impl.db.DbSqlSession.dbSchemaUpdate(DbSqlSession.java:1030)atorg.activiti.engine.impl.db.DbSqlSession.performSchemaOperationsProcessEngineBuild(DbSqlSession.java:1422)atorg.activiti.engine.impl.SchemaOperationsProcessEngineBuild.execute(SchemaOperationsProcessEngineBuild.java:27)atorg.activiti.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:24)atorg.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:57)atorg.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:47)atorg.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140)atorg.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:45)atorg.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)atorg.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)atorg.activiti.engine.impl.ProcessEngineImpl.init(ProcessEngineImpl.java:80)atorg.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl.buildProcessEngine(ProcessEngineConfigurationImpl.java:613)atorg.activiti.spring.SpringProcessEngineConfiguration.buildProcessEngine(SpringProcessEngineConfiguration.java:65)atorg.activiti.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:60)atorg.activiti.spring.ProcessEngineFactoryBean.getObject(ProcessEngineFactoryBean.java:32)atorg.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:171)atorg.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:101)atorg.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1674)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getObjectForBeanInstance(AbstractAutowireCapableBeanFactory.java:1216)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:330)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)atorg.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164)atorg.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:857)atorg.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:760)atorg.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:509)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1288)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1127)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)atorg.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)atorg.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164)atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)atorg.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1378)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)atorg.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)atorg.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1237)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1164)atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593)atorg.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90)atorg.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:374)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1378)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:575)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498)atorg.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:846)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:863)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)atorg.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142)atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:316)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1260)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:1248)atcom.bytd.BYTDApplication.main(BYTDApplication.java:20)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)atjava.lang.reflect.Method.invoke(Method.java:498)atorg.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)09:45:19.563[restartedMain]WARNo.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext-[refresh,554]-Exceptionencounteredduringcontextinitialization-cancellingrefreshattempt:org.springframework.beans.factory.UnsatisfiedDependencyException:Errorcreatingbeanwithname'activitiController':Unsatisfieddependencyexpressedthroughfield'activitiService';nestedexceptionisorg.springframework.beans.factory.UnsatisfiedDependencyException:Errorcreatingbeanwithname'activitiService':Unsatisfieddependencyexpressedthroughfield'repositoryService';nestedexceptionisorg.springframework.beans.factory.UnsatisfiedDependencyException:Errorcreatingbeanwithname'repositoryService'definedinclasspathresource[com/bytd/activiti/editor/config/ActivitiConfiguration.class]:Unsatisfieddependencyexpressedthroughmethod'repositoryService'parameter0;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'processEngine':FactoryBeanthrewexceptiononobjectcreation;nestedexceptionisjava.lang.NullPointerException09:45:19.62

本文由金沙澳门官网网址发布于金沙澳门官网网址,转载请注明出处:请问这怎么解决,在Linux下如下异常

关键词: