Details
Description
After upgrading to Grails V1.2-M3 webflows don't work anymore. (grails clean / rm -rf .grails didn't help)
Check the application attached.
You can reproduce the error using an integration-test or by running the application
1.) Integration-Tests
Use: grails test-app
Result: StoreBuyFlowTests fails with something like
Compilation Error: java.lang.NoClassDefFoundError: org/springframework/webflow/test/execution/AbstractFlowExecutionTests
2.) Running application
Use: grails run-app
- Login with: mos123/mos123
- Klick on Store
*Chose Michael Jackson - Click on Buy-Button
Result: The Flow isn't found (404)
Attachments
-
$i18n.getText("admin.common.words.hide")
- grails-bug_webflow_v12-M3.zip
- 03/Oct/09 12:34 PM
- 233 kB
- Mos
-
- grails-bug/.classpath 8 kB
- grails-bug/.project 0.5 kB
- grails-bug/.../org.codehaus.groovy.eclipse.preferences.prefs 0.1 kB
- grails-bug/application.properties 0.2 kB
- grails-bug/build.xml 5 kB
- grails-bug/.../ArtistUrlMappings.groovy 0.1 kB
- grails-bug/grails-app/.../BootStrap.groovy 3 kB
- grails-bug/grails-app/conf/Config.groovy 2 kB
- grails-bug/grails-app/.../DataSource.groovy 0.5 kB
- grails-bug/grails-app/.../resources.groovy 0.2 kB
- grails-bug/grails-app/.../UrlMappings.groovy 0.2 kB
- grails-bug/.../AlbumController.groovy 0.6 kB
- grails-bug/.../ArtistController.groovy 0.3 kB
- grails-bug/.../SongController.groovy 0.8 kB
- grails-bug/.../StoreController.groovy 6 kB
- grails-bug/.../UserController.groovy 1 kB
- grails-bug/grails-app/.../Address.groovy 0.4 kB
- grails-bug/grails-app/.../Album.groovy 0.5 kB
- grails-bug/.../AlbumPayment.groovy 0.2 kB
- grails-bug/grails-app/.../Artist.groovy 0.2 kB
- grails-bug/grails-app/.../Payment.groovy 0.2 kB
- grails-bug/grails-app/.../gtunes/Song.groovy 0.9 kB
- grails-bug/grails-app/.../gtunes/User.groovy 0.5 kB
- grails-bug/.../messages.properties 3 kB
- grails-bug/.../messages_de.properties 3 kB
- grails-bug/.../messages_es.properties 3 kB
- grails-bug/.../messages_fr.properties 2 kB
- grails-bug/.../messages_it.properties 2 kB
- grails-bug/.../messages_ja.properties 2 kB
- grails-bug/.../messages_nl.properties 3 kB
$i18n.getText("admin.common.words.show")- grails-bug_webflow_v12-M3.zip
- 03/Oct/09 12:34 PM
- 233 kB
- Mos
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Thanks, I missed the information that Webflow is a plugin since V1.2-M3.
Nevertheless there seems to be a bug that breaks existing webflows (another Grails user reported similar observation).
- Follow the steps in 2.) above
- When hitting the yes button the following exception is thrown:
- {{org.springframework.webflow.engine.NoMatchingTransitionException: No transition found on occurence of event 'yes' in state 'enterShipping' of flow 'store/buy' – valid transitional criteria are array<TransitionCriteria>[next, back] – likely programmer error, check the set of TransitionCriteria for this state}}
It looks like the flow is jumping to next state before processing the event?
With V1.2-M2 it works fine.
- Follow the steps in 2.) above
- When hitting the yes button the following exception is thrown:
- {{org.springframework.webflow.engine.NoMatchingTransitionException: No transition found on occurence of event 'yes' in state 'enterShipping' of flow 'store/buy' – valid transitional criteria are array<TransitionCriteria>[next, back] – likely programmer error, check the set of TransitionCriteria for this state}}
I'm also having a strange behavior with webflows.
In my case the following code:
def createFlow = {
start {
on("next") {
log.debug "moving to middle"
}.to "middle"
}
middle {
on("previous") {
log.debug "moving to start"
}.to "start"
on("next") {
log.debug "moving to end"
}.to("end")
}
end {
}
}
after triggering the next event in start state the flow automatically execute until the end state.
The output is:
moving to middle moving to end
while the flow should stop on middle and show the middle.gsp page
def createFlow = {
start {
on("next") {
log.debug "moving to middle"
}.to "middle"
}
middle {
on("previous") {
log.debug "moving to start"
}.to "start"
on("next") {
log.debug "moving to end"
}.to("end")
}
end {
}
}
moving to middle moving to end
Hi,
I just want to make sure:
There is no Spring Webflow Plugin for the current Grails v.1.3.3 ?
This plugin(http://www.grails.org/WebFlow) is only available for Grails up to v1.2 ?
Is spring-webflow plugin being abandoned - it's not going to be part of Grails, nor as a plugin?
(https://svn.codehaus.org/grails-plugins/)
Regards,
Pete
The webflow plugin hasn't been abandoned, it is just no longer installed by default but can be found here:
You need to install the webflow plugin:
Webflow has been made optional in 1.2