Results 1 to 3 of 3

Thread: Conversation Not Locking

  1. #1
    Join Date
    Jun 2007
    Location
    Ontario, Canada
    Posts
    26

    Default Conversation Not Locking

    Hey Everyone,

    I'm having a problem that I can't sort out... Multiple submits are being processed simultaneously. My understanding is that conversation locking should prevent this from happening, however that's not working. See below:

    Code:
    2012-02-16 23:51:22,345 DEBUG [http-8080-2] (org.springframework.webflow.executor.FlowExecutorImpl:161) - Resuming flow execution with key 'e3s5
    2012-02-16 23:51:22,346 DEBUG [http-8080-2] (org.springframework.webflow.conversation.impl.SessionBindingConversationManager:67) - Locking conversation 3
    2012-02-16 23:51:22,346 DEBUG [http-8080-2] (org.springframework.webflow.execution.repository.impl.DefaultFlowExecutionRepository:103) - Getting flow execution with key 'e3s5'
    2012-02-16 23:51:22,346 DEBUG [http-8080-2] (org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl:59) - Getting FlowDefinition with id 'manageUsers'
    2012-02-16 23:51:22,351 DEBUG [http-8080-2] (org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl:59) - Getting FlowDefinition with id 'editUser'
    2012-02-16 23:51:22,351 DEBUG [http-8080-2] (org.springframework.webflow.engine.impl.FlowExecutionImpl:250) - Resuming in org.springframework.webflow.mvc.servlet.MvcExternalContext@22b6f7
    2012-02-16 23:51:22,352 DEBUG [http-8080-2] (org.springframework.webflow.mvc.view.AbstractMvcView:200) - Processing user event 'finish'
    2012-02-16 23:51:22,352 DEBUG [http-8080-2] (org.springframework.webflow.mvc.view.AbstractMvcView:222) - No model to bind to; done processing user event
    2012-02-16 23:51:22,352 DEBUG [http-8080-2] (org.springframework.webflow.engine.ViewState:252) - Event 'finish' returned from view [ServletMvcView@11a1546 view = org.springframework.web.servlet.view.JstlView: name 'manageUsers/reviewUser'; URL [/jsp/manageUsers/reviewUser.jsp]]
    2012-02-16 23:51:22,352 DEBUG [http-8080-2] (org.springframework.webflow.execution.ActionExecutor:49) - Executing [SetAction@16ad043 name = flashScope.sendWelcomeEmail, value = requestParameters.sendWelcomeEmail]
    2012-02-16 23:51:22,353 DEBUG [http-8080-2] (org.springframework.webflow.execution.AnnotatedAction:142) - Putting action execution attributes map[[empty]]
    2012-02-16 23:51:22,353 DEBUG [http-8080-2] (org.springframework.webflow.execution.AnnotatedAction:149) - Clearing action execution attributes map[[empty]]
    2012-02-16 23:51:22,354 DEBUG [http-8080-2] (org.springframework.webflow.execution.ActionExecutor:53) - Finished executing [SetAction@16ad043 name = flashScope.sendWelcomeEmail, value = requestParameters.sendWelcomeEmail]; result = success
    2012-02-16 23:51:22,354 DEBUG [http-8080-2] (org.springframework.webflow.engine.Transition:213) - Executing [Transition@18ee282 on = finish, to = shouldEncryptPassword]
    2012-02-16 23:51:22,354 DEBUG [http-8080-2] (org.springframework.webflow.engine.Transition:221) - Exiting state 'reviewUser'
    2012-02-16 23:51:22,358 DEBUG [http-8080-2] (org.springframework.webflow.engine.DecisionState:189) - Entering state 'shouldEncryptPassword' of flow 'editUser'
    2012-02-16 23:51:22,358 DEBUG [http-8080-2] (org.springframework.webflow.engine.Transition:213) - Executing [Transition@e52a2e on = *, to = saveUser]
    2012-02-16 23:51:22,359 DEBUG [http-8080-2] (org.springframework.webflow.engine.Transition:221) - Exiting state 'shouldEncryptPassword'
    2012-02-16 23:51:22,359 DEBUG [http-8080-2] (org.springframework.webflow.engine.ActionState:189) - Entering state 'saveUser' of flow 'editUser'
    2012-02-16 23:51:22,359 DEBUG [http-8080-2] (org.springframework.webflow.execution.ActionExecutor:49) - Executing [EvaluateAction@13469dc expression = userManagementService.saveOrUpdate(flowScope.user), resultExpression = [null]]
    2012-02-16 23:51:22,359 DEBUG [http-8080-2] (org.springframework.webflow.execution.AnnotatedAction:142) - Putting action execution attributes map[[empty]]
    2012-02-16 23:51:22,739 DEBUG [http-8080-1] (org.springframework.webflow.executor.FlowExecutorImpl:161) - Resuming flow execution with key 'e3s5
    2012-02-16 23:51:22,739 DEBUG [http-8080-1] (org.springframework.webflow.conversation.impl.SessionBindingConversationManager:67) - Locking conversation 3
    2012-02-16 23:51:23,153 DEBUG [http-8080-3] (org.springframework.webflow.executor.FlowExecutorImpl:161) - Resuming flow execution with key 'e3s5
    2012-02-16 23:51:23,153 DEBUG [http-8080-3] (org.springframework.webflow.conversation.impl.SessionBindingConversationManager:67) - Locking conversation 3
    2012-02-16 23:51:23,533  INFO [http-8080-2] (org.springframework.beans.factory.xml.XmlBeanDefinitionReader:315) - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml]
    2012-02-16 23:51:23,551  INFO [http-8080-2] (org.springframework.jdbc.support.SQLErrorCodesFactory:125) - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase]
    2012-02-16 23:51:23,612 DEBUG [http-8080-2] (org.springframework.webflow.execution.AnnotatedAction:149) - Clearing action execution attributes map[[empty]]
    2012-02-16 23:51:23,613 DEBUG [http-8080-2] (org.springframework.webflow.engine.impl.FlowExecutionImpl:588) - Attempting to handle [org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@181aa5d targetAction = [EvaluateAction@13469dc expression = userManagementService.saveOrUpdate(flowScope.user), resultExpression = [null]], attributes = map[[empty]]] in state 'saveUser' of flow 'editUser' -- action execution attributes were 'map[[empty]]'] with root cause [com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '1002' for key 'user_stores_assoc_uk1']
    2012-02-16 23:51:23,613 DEBUG [http-8080-2] (org.springframework.webflow.engine.impl.FlowExecutionImpl:609) - Rethrowing unhandled flow execution exception
    2012-02-16 23:51:23,614 DEBUG [http-8080-2] (org.springframework.webflow.conversation.impl.SessionBindingConversationManager:99) - Unlocking conversation 3
    2012-02-16 23:51:23,617 ERROR [http-8080-2] (com.spiritswineinfo.errors.LoggingErrorLogger:30) - org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@181aa5d targetAction = [EvaluateAction@13469dc expression = userManagementService.saveOrUpdate(flowScope.user), resultExpression = [null]], attributes = map[[empty]]] in state 'saveUser' of flow 'editUser' -- action execution attributes were 'map[[empty]]'
    	at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:60)
    	at org.springframework.webflow.engine.ActionState.doEnter(ActionState.java:101)
    	at org.springframework.webflow.engine.State.enter(State.java:194)

  2. #2
    Join Date
    Jun 2007
    Location
    Ontario, Canada
    Posts
    26

    Default

    Any ideas out there?

  3. #3
    Join Date
    Jun 2007
    Location
    Ontario, Canada
    Posts
    26

    Default

    Perhaps I just needed to walk away from my computer for awhile. I am unable to reproduce this problem anymore... I'm going to go ahead and pin this one on the ghost in the machine.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •