java.lang.IllegalArgumentException: This flow 'new-entry-flow' already contains a state with id 'save' -- state ids must be locally unique to the flow definition; existing state-ids of this flow include: array<String>['start', 'start', 'input', 'save']

Spring JIRA | Serge Bogatyrjov | 1 decade ago
  1. 0

    When requesting the same flow from two browser windows simultaneously after the application start we get error in one window. From the log it is obvious that the flow is created simultaneously in two request processing threads. 10:08:41 [INFO] resin-tcp-connection-*:8080-23:org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [/opt/com/caucho/resin/resin-current/webapps/test/WEB-INF/classes/flows/new-entry-flow-beans.xml] 10:08:41 [INFO] resin-tcp-connection-*:8080-21:org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [/opt/com/caucho/resin/resin-current/webapps/test/WEB-INF/classes/flows/new-entry-flow-beans.xml] 10:08:43 [DEBUG] resin-tcp-connection-*:8080-23:org.springframework.web.servlet.DispatcherServlet - Cleared thread-bound request context: HttpRequest[11] 10:08:43 [ERROR] resin-tcp-connection-*:8080-23:org.springframework.web.servlet.DispatcherServlet - Could not complete request java.lang.IllegalArgumentException: This flow 'new-entry-flow' already contains a state with id 'save' -- state ids must be locally unique to the flow definition; existing state-ids of this flow include: array<String>['start', 'start', 'input', 'save'] at org.springframework.webflow.Flow.add(Flow.java:202) at org.springframework.webflow.State.setFlow(State.java:119) at org.springframework.webflow.builder.DefaultFlowArtifactFactory.createState(DefaultFlowArtifactFactory.java:123) at org.springframework.webflow.builder.XmlFlowBuilder$LocalFlowArtifactFactory.createState(XmlFlowBuilder.java:1149) at org.springframework.webflow.builder.XmlFlowBuilder.parseActionState(XmlFlowBuilder.java:599) at org.springframework.webflow.builder.XmlFlowBuilder.addStateDefinitions(XmlFlowBuilder.java:550) at org.springframework.webflow.builder.XmlFlowBuilder.buildStates(XmlFlowBuilder.java:534) at org.springframework.webflow.builder.FlowAssembler.assembleFlow(FlowAssembler.java:111) at org.springframework.webflow.registry.RefreshableFlowHolder.assembleFlow(RefreshableFlowHolder.java:121) at org.springframework.webflow.registry.RefreshableFlowHolder.getFlow(RefreshableFlowHolder.java:76) at org.springframework.webflow.registry.FlowRegistryImpl.getFlow(FlowRegistryImpl.java:170) at org.springframework.webflow.execution.repository.support.AbstractFlowExecutionRepository.createFlowExecution(AbstractFlowExecutionRepository.java:76) at org.springframework.webflow.executor.FlowExecutorImpl.launch(FlowExecutorImpl.java:154) at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:117) at org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:198) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)

    Spring JIRA | 1 decade ago | Serge Bogatyrjov
    java.lang.IllegalArgumentException: This flow 'new-entry-flow' already contains a state with id 'save' -- state ids must be locally unique to the flow definition; existing state-ids of this flow include: array<String>['start', 'start', 'input', 'save']
  2. 0

    When requesting the same flow from two browser windows simultaneously after the application start we get error in one window. From the log it is obvious that the flow is created simultaneously in two request processing threads. 10:08:41 [INFO] resin-tcp-connection-*:8080-23:org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [/opt/com/caucho/resin/resin-current/webapps/test/WEB-INF/classes/flows/new-entry-flow-beans.xml] 10:08:41 [INFO] resin-tcp-connection-*:8080-21:org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from file [/opt/com/caucho/resin/resin-current/webapps/test/WEB-INF/classes/flows/new-entry-flow-beans.xml] 10:08:43 [DEBUG] resin-tcp-connection-*:8080-23:org.springframework.web.servlet.DispatcherServlet - Cleared thread-bound request context: HttpRequest[11] 10:08:43 [ERROR] resin-tcp-connection-*:8080-23:org.springframework.web.servlet.DispatcherServlet - Could not complete request java.lang.IllegalArgumentException: This flow 'new-entry-flow' already contains a state with id 'save' -- state ids must be locally unique to the flow definition; existing state-ids of this flow include: array<String>['start', 'start', 'input', 'save'] at org.springframework.webflow.Flow.add(Flow.java:202) at org.springframework.webflow.State.setFlow(State.java:119) at org.springframework.webflow.builder.DefaultFlowArtifactFactory.createState(DefaultFlowArtifactFactory.java:123) at org.springframework.webflow.builder.XmlFlowBuilder$LocalFlowArtifactFactory.createState(XmlFlowBuilder.java:1149) at org.springframework.webflow.builder.XmlFlowBuilder.parseActionState(XmlFlowBuilder.java:599) at org.springframework.webflow.builder.XmlFlowBuilder.addStateDefinitions(XmlFlowBuilder.java:550) at org.springframework.webflow.builder.XmlFlowBuilder.buildStates(XmlFlowBuilder.java:534) at org.springframework.webflow.builder.FlowAssembler.assembleFlow(FlowAssembler.java:111) at org.springframework.webflow.registry.RefreshableFlowHolder.assembleFlow(RefreshableFlowHolder.java:121) at org.springframework.webflow.registry.RefreshableFlowHolder.getFlow(RefreshableFlowHolder.java:76) at org.springframework.webflow.registry.FlowRegistryImpl.getFlow(FlowRegistryImpl.java:170) at org.springframework.webflow.execution.repository.support.AbstractFlowExecutionRepository.createFlowExecution(AbstractFlowExecutionRepository.java:76) at org.springframework.webflow.executor.FlowExecutorImpl.launch(FlowExecutorImpl.java:154) at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:117) at org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:198) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)

    Spring JIRA | 1 decade ago | Serge Bogatyrjov
    java.lang.IllegalArgumentException: This flow 'new-entry-flow' already contains a state with id 'save' -- state ids must be locally unique to the flow definition; existing state-ids of this flow include: array<String>['start', 'start', 'input', 'save']
  3. 0

    Migrating To Weblogic From Tomcat

    Stack Overflow | 7 years ago | cedric
    java.lang.IllegalArgumentException: Cannot find state with id 'displayError' in flow 'admin_main' -- Known state ids are 'array&lt;String&gt;['queryAll', 'mainForm', 'register']'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I tried deployment of spring travel 1.2.0.x version of sample on 2.0.x version of dm Server by providing the 2.5.6.A version of spring framework bundles to the dm Server repository. Getting the below error messages. [2009-05-11 16:07:47.286] fs-watcher <SPDE0053I> Cloned bundles: org.springframework.beans_2.5.6.A, org.springframework.core_2.5.6.A, org.springframework.context_2.5.6.A, org.springframework.osgi.extender_1.2.0, org.springframework.osgi.core_1.2.0, org.springframework.osgi.io_1.2.0, com.springsource.kernel.deployer.dm_2.0.0.D-129, com.springsource.kernel.dmfragment_2.0.0.D-129, com.springsource.kernel.dm_2.0.0.D-129, org.springframework.aop_2.5.6.A, org.springframework.orm_2.5.6.A, org.springframework.web.servlet_2.5.6.A, org.springframework.transaction_2.5.6.A, org.springframework.webflow_2.0.5.RELEASE, org.springframework.web_2.5.6.A, org.springframework.js_2.0.5.RELEASE, org.springframework.jdbc_2.5.6.A, org.springframework.security_2.0.4.A, org.springframework.binding_2.0.5.RELEASE, org.springframework.context.support_2.5.6.A, org.springframework.aspects_2.5.6.A, org.springframework.jms_2.5.6.A, org.springframework.faces_2.0.5.RELEASE. [2009-05-11 16:07:47.819] fs-watcher <SPSC1000I> Creating web application '/springtravel-faces'. [2009-05-11 16:07:50.575] async-delivery-thread-1 <SPWE1000E> Failed to create web application '/springtravel-faces': the associated web bundle 'org.springframework.samples.springtravel-1.2.0.RELEASE-org.springframework.samples.springtravel.webapp' failed to publish its ApplicationContext. [2009-05-11 16:07:50.576] server-dm-9 <SPDE0020E> Application context creation failure for bundle 'org.springframework.samples.springtravel-1.2.0.RELEASE-org.springframework.samples.springtravel.webapp'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.webflow.mvc.servlet.FlowHandlerAdapter#0' defined in URL [bundleentry://295.fwk1829563570/META-INF/spring/flow-context.xml]: Cannot resolve reference to bean 'flowExecutor' while setting bean property 'flowExecutor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot create inner bean '(inner bean)' of type [org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] while setting bean property 'flowExecutionListenerLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The flow id array is required at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot create inner bean '(inner bean)' of type [org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] while setting bean property 'flowExecutionListenerLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The flow id array is required at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) ... 23 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The flow id array is required at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219) ... 36 more Caused by: java.lang.IllegalArgumentException: The flow id array is required at org.springframework.util.Assert.notEmpty(Assert.java:214) at org.springframework.webflow.execution.factory.FlowExecutionListenerCriteriaFactory$FlowIdFlowExecutionListenerCriteria.<init>(FlowExecutionListenerCriteriaFactory.java:100) at org.springframework.webflow.execution.factory.FlowExecutionListenerCriteriaFactory.flows(FlowExecutionListenerCriteriaFactory.java:68) at org.springframework.webflow.execution.factory.FlowExecutionListenerCriteriaFactory.getListenerCriteria(FlowExecutionListenerCriteriaFactory.java:44) at org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean.afterPropertiesSet(FlowExecutionListenerLoaderFactoryBean.java:68) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 41 more [2009-05-11 16:07:50.576] fs-watcher <SPDE0027E> Exception deploying module 'file [/Users/rmadala/Documents/Builds/sprint3/springsource-dm-server-2.0.0.CI-R239-B194/work/com.springsource.kernel/Module/org.springframework.samples.springtravel-1.2.0.RELEASE/org.springframework.samples.springtravel.webapp-1.2.0.RELEASE.jar]'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.webflow.mvc.servlet.FlowHandlerAdapter#0' defined in URL [bundleentry://295.fwk1829563570/META-INF/spring/flow-context.xml]: Cannot resolve reference to bean 'flowExecutor' while setting bean property 'flowExecutor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot create inner bean '(inner bean)' of type [org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] while setting bean property 'flowExecutionListenerLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The flow id array is required at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot create inner bean '(inner bean)' of type [org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] while setting bean property 'flowExecutionListenerLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The flow id array is required at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) ... 23 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The flow id array is required at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219) ... 36 more Caused by: java.lang.IllegalArgumentException: The flow id array is required at org.springframework.util.Assert.notEmpty(Assert.java:214) at org.springframework.webflow.execution.factory.FlowExecutionListenerCriteriaFactory$FlowIdFlowExecutionListenerCriteria.<init>(FlowExecutionListenerCriteriaFactory.java:100) at org.springframework.webflow.execution.factory.FlowExecutionListenerCriteriaFactory.flows(FlowExecutionListenerCriteriaFactory.java:68) at org.springframework.webflow.execution.factory.FlowExecutionListenerCriteriaFactory.getListenerCriteria(FlowExecutionListenerCriteriaFactory.java:44) at org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean.afterPropertiesSet(FlowExecutionListenerLoaderFactoryBean.java:68) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 41 more [2009-05-11 16:07:50.580] fs-watcher <SPDE0011E> Deployment of 'org.springframework.samples.springtravel' version '1.2.0.RELEASE' failed.

    SpringSource Issue Tracker | 8 years ago | Radhika Madala (c)
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.webflow.mvc.servlet.FlowHandlerAdapter#0' defined in URL [bundleentry://295.fwk1829563570/META-INF/spring/flow-context.xml]: Cannot resolve reference to bean 'flowExecutor' while setting bean property 'flowExecutor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot create inner bean '(inner bean)' of type [org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] while setting bean property 'flowExecutionListenerLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The flow id array is required
  6. 0

    Getting the below error messages when trying to deploy 1.2.0.RELEASE version of spring travel app on 2.0.0.x version of dm Server by providing the 2.5.6.A version of spring framework libraries to the dm Server repository. Section A: ------------ [2009-05-05 09:26:09.486] fs-watcher <SPDE0018E> Unable to install application from location 'file:/Users/rmadala/Documents/Builds/sprint3/springsource-dm-server-2.0.0.CI-R216-B169/pickup/org.springframework.samples.springtravel-1.2.0.RELEASE.par'. Could not satisfy constraints for bundle 'org.springframework.samples.springtravel-1.2.0.RELEASE-org.springframework.samples.springtravel.webapp' at version '1.2.0.RELEASE'. Cannot resolve: org.springframework.samples.springtravel-1.2.0.RELEASE-org.springframework.samples.springtravel.webapp Resolver report: Uses violation: <Import-Package: org.springframework.webflow.core.collection; version="0.0.0"> in bundle <org.springframework.samples.springtravel-1.2.0.RELEASE-org.springframework.samples.springtravel.webapp_1.2.0.RELEASE> Possible matches: <Export-Package: org.springframework.webflow.core.collection; version="2.0.5.RELEASE"> from <org.springframework.webflow_2.0.5.RELEASE> No dependent constraint mismatch. Try refreshing the <org.springframework.webflow_2.0.5.RELEASE> bundle. If i force the cloning for spring framework library manually then getting the below error messages. Section B: -------------- [2009-05-05 09:32:39.326] async-delivery-thread-1 <SPWE1000E> Failed to create web application '/springtravel-faces': the associated web bundle 'org.springframework.samples.springtravel-1.2.0.RELEASE-org.springframework.samples.springtravel.webapp' failed to publish its ApplicationContext. [2009-05-05 09:32:39.326] server-dm-9 <SPDE0020E> Application context creation failure for bundle 'org.springframework.samples.springtravel-1.2.0.RELEASE-org.springframework.samples.springtravel.webapp'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.webflow.mvc.servlet.FlowHandlerAdapter#0' defined in URL [bundleentry://191.fwk1313551855/META-INF/spring/flow-context.xml]: Cannot resolve reference to bean 'flowExecutor' while setting bean property 'flowExecutor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot create inner bean '(inner bean)' of type [org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] while setting bean property 'flowExecutionListenerLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The flow id array is required at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136) at com.springsource.kernel.dmfragment.internal.ContextPropagatingTaskExecutor$2.run(ContextPropagatingTaskExecutor.java:82) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:637) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot create inner bean '(inner bean)' of type [org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] while setting bean property 'flowExecutionListenerLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The flow id array is required at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:230) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) ... 23 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The flow id array is required at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219) ... 36 more Caused by: java.lang.IllegalArgumentException: The flow id array is required at org.springframework.util.Assert.notEmpty(Assert.java:214) at org.springframework.webflow.execution.factory.FlowExecutionListenerCriteriaFactory$FlowIdFlowExecutionListenerCriteria.<init>(FlowExecutionListenerCriteriaFactory.java:100) at org.springframework.webflow.execution.factory.FlowExecutionListenerCriteriaFactory.flows(FlowExecutionListenerCriteriaFactory.java:68) at org.springframework.webflow.execution.factory.FlowExecutionListenerCriteriaFactory.getListenerCriteria(FlowExecutionListenerCriteriaFactory.java:44) at org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean.afterPropertiesSet(FlowExecutionListenerLoaderFactoryBean.java:68) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335) ... 41 more

    SpringSource Issue Tracker | 8 years ago | Radhika Madala (c)
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.webflow.mvc.servlet.FlowHandlerAdapter#0' defined in URL [bundleentry://191.fwk1313551855/META-INF/spring/flow-context.xml]: Cannot resolve reference to bean 'flowExecutor' while setting bean property 'flowExecutor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowExecutor': Cannot create inner bean '(inner bean)' of type [org.springframework.webflow.config.FlowExecutionListenerLoaderFactoryBean] while setting bean property 'flowExecutionListenerLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: The flow id array is required

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      This flow 'new-entry-flow' already contains a state with id 'save' -- state ids must be locally unique to the flow definition; existing state-ids of this flow include: array<String>['start', 'start', 'input', 'save']

      at org.springframework.webflow.Flow.add()
    2. org.springframework.webflow
      FlowRegistryImpl.getFlow
      1. org.springframework.webflow.Flow.add(Flow.java:202)
      2. org.springframework.webflow.State.setFlow(State.java:119)
      3. org.springframework.webflow.builder.DefaultFlowArtifactFactory.createState(DefaultFlowArtifactFactory.java:123)
      4. org.springframework.webflow.builder.XmlFlowBuilder$LocalFlowArtifactFactory.createState(XmlFlowBuilder.java:1149)
      5. org.springframework.webflow.builder.XmlFlowBuilder.parseActionState(XmlFlowBuilder.java:599)
      6. org.springframework.webflow.builder.XmlFlowBuilder.addStateDefinitions(XmlFlowBuilder.java:550)
      7. org.springframework.webflow.builder.XmlFlowBuilder.buildStates(XmlFlowBuilder.java:534)
      8. org.springframework.webflow.builder.FlowAssembler.assembleFlow(FlowAssembler.java:111)
      9. org.springframework.webflow.registry.RefreshableFlowHolder.assembleFlow(RefreshableFlowHolder.java:121)
      10. org.springframework.webflow.registry.RefreshableFlowHolder.getFlow(RefreshableFlowHolder.java:76)
      11. org.springframework.webflow.registry.FlowRegistryImpl.getFlow(FlowRegistryImpl.java:170)
      11 frames
    3. Spring Web Flow
      FlowExecutorImpl.launch
      1. org.springframework.webflow.execution.repository.support.AbstractFlowExecutionRepository.createFlowExecution(AbstractFlowExecutionRepository.java:76)
      2. org.springframework.webflow.executor.FlowExecutorImpl.launch(FlowExecutorImpl.java:154)
      2 frames
    4. Spring Web Flow
      FlowController.handleRequestInternal
      1. org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:117)
      2. org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:198)
      2 frames
    5. Spring MVC
      AbstractController.handleRequest
      1. org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    7. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
      3 frames