weblow 2.0.8.1 broken when moving to Grails 2.4.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

weblow 2.0.8.1 broken when moving to Grails 2.4.0

lili5058
I am trying to upgrade to the latest and greates Grails 2.4.0 framework.

I user webflow, whose latest version is 2.0.8.1, but am not getting compile errors:

related to org.springframework.core.enums.StaticLabeledEnum not being found.

Is there a way to work around this issue and use 2.4.0?
Reply | Threaded
Open this post in threaded view
|

Re: weblow 2.0.8.1 broken when moving to Grails 2.4.0

Graeme Rocher-2
Not currently, will look at releasing an updated plugin shortly

Cheers

On Wed, May 21, 2014 at 6:27 PM, lili5058 <[hidden email]> wrote:

> I am trying to upgrade to the latest and greates Grails 2.4.0 framework.
>
> I user webflow, whose latest version is 2.0.8.1, but am not getting compile
> errors:
>
> related to org.springframework.core.enums.StaticLabeledEnum not being found.
>
> Is there a way to work around this issue and use 2.4.0?
>
>
>
> --
> View this message in context: http://grails.1312388.n4.nabble.com/weblow-2-0-8-1-broken-when-moving-to-Grails-2-4-0-tp4656969.html
> Sent from the Grails - user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>



--
Graeme Rocher
Grails Project Lead
SpringSource

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: weblow 2.0.8.1 broken when moving to Grails 2.4.0

Graeme Rocher-2
In reply to this post by lili5058
Could you please test the 2.1.0-SNAPSHOT version the Web Flow plugin,
if it works for you we can release it

Thanks

On Wed, May 21, 2014 at 6:27 PM, lili5058 <[hidden email]> wrote:

> I am trying to upgrade to the latest and greates Grails 2.4.0 framework.
>
> I user webflow, whose latest version is 2.0.8.1, but am not getting compile
> errors:
>
> related to org.springframework.core.enums.StaticLabeledEnum not being found.
>
> Is there a way to work around this issue and use 2.4.0?
>
>
>
> --
> View this message in context: http://grails.1312388.n4.nabble.com/weblow-2-0-8-1-broken-when-moving-to-Grails-2-4-0-tp4656969.html
> Sent from the Grails - user mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>



--
Graeme Rocher
Grails Project Lead
SpringSource

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: weblow 2.0.8.1 broken when moving to Grails 2.4.0

lili5058
Just checking in to find out if the Webflow plugin will soon be compatible with Grails 2.4.0 ...
Reply | Threaded
Open this post in threaded view
|

Re: weblow 2.0.8.1 broken when moving to Grails 2.4.0

wguerra
This post was updated on .
In reply to this post by Graeme Rocher-2
Hi,
I'm testing 2.1.0-SNAPSHOT but I am experience some problem.
Here is a simple code ...

class ItemController {
        def createFlow = {
                basicInfo {
                        on("save").to "detailedInfo"
                        on("cancel"){
                                log.error "Cancelled!!"
                                }.to "listItems"
                }
                detailedInfo {
                        on("save").to "showItem"
                        on("return").to "basicInfo"
                }
                listItems {
                        redirect(action:"listItems")
                }
                showItem()
        }

        def listItems() {}
}

Everything works fine except when I step into listItems. I get the following error:

builder.ActionDelegate Cancelled!!
simple.MemoryPageFragmentCachingFilter Throwable thrown during doFilter on request with URI: /myProject/grails/item/create.dispatch and Query: execution=e4s1 : Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/Session;
org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/Session;
        at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:189)
        at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NoSuchMethodError: org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/Session;
        ... 12 more
[/myProject].[grails] Servlet.service() for servlet grails threw exception
java.lang.NoSuchMethodError: org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/Session;
        at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:189)
        at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
[/myProject].[default] Servlet.service() for servlet [default] in context with path [/myProject] threw exception [org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/Session;] with root cause
java.lang.NoSuchMethodError: org.hibernate.SessionFactory.getCurrentSession()Lorg/hibernate/Session;
        at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:189)
        at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
        at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
        at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
        at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
        at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
        at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
        at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
 
Is this a bug? How may I work around it?

I'm using Grails 2.4.2 and hibernate:3.6.10.16
Reply | Threaded
Open this post in threaded view
|

Re: weblow 2.0.8.1 broken when moving to Grails 2.4.0

candrews
I believe you're experiencing https://jira.grails.org/browse/GPWEBFLOW-93 My comment at https://jira.grails.org/browse/GPWEBFLOW-93?focusedCommentId=81835&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-81835 tells you how to work around it (by using snapshot versions) until releases are made.

I hope that works for you,
~Craig
Reply | Threaded
Open this post in threaded view
|

Re: weblow 2.0.8.1 broken when moving to Grails 2.4.0

wguerra
It works!!
Thanks a lot!

Wladimir