或者在Grails 2.3.8中的namedQueries中:AbstractMethodError [英] or in namedQueries in Grails 2.3.8: AbstractMethodError

查看:77
本文介绍了或者在Grails 2.3.8中的namedQueries中:AbstractMethodError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Grails 2.2.4升级到2.3.8后,我得到了



java.lang .AbstractMethodError:grails.orm.HibernateCriteriaBuilder.or(Lgroovy / lang / Closure;)Lorg / grails / datastore / mapping / query / api / Criteria;


blockquote>

在查询中

  class Trip {
TripParticipant driver,乘客

static namedQueries = {
byParticipant {UserAccount ua,name = null - > (名称?[名称]:['司机','乘客'])){
eq$ {n} .account,ua $ b中的
或{






类TripParticipant {
UserAccount帐户

布尔评分= false
}

有什么想法?

TIA

更新

http://www.file-upload.net/download-8906460/dependency-report.txt.html
dependency-report的输出结果

解决方案

问题。



当我将mongo-db插件降级为



compile':mongodb:3.0.1'





compile':mongodb:3.0.0'



它再次像魅力一样工作。

After upgrading from Grails 2.2.4 to 2.3.8 I'm getting

java.lang.AbstractMethodError: grails.orm.HibernateCriteriaBuilder.or(Lgroovy/lang/Closure;)Lorg/grails/datastore/mapping/query/api/Criteria;

in a query

class Trip {
    TripParticipant driver, passenger

    static namedQueries = {
        byParticipant { UserAccount ua, name = null ->
            or {
                for( n in ( name ? [ name ] : [ 'driver', 'passenger' ] ) ) {
                    eq "${n}.account", ua
                }
            }
        }  
    }
}

class TripParticipant {
    UserAccount account

    boolean rated = false
}

any ideas?

TIA

UPDATE

http://www.file-upload.net/download-8906460/dependency-report.txt.html is the output of dependency-report

解决方案

I found the problem.

when I downdraded mongo-db plugin from

compile ':mongodb:3.0.1'

to

compile ':mongodb:3.0.0'

it worked like charm again.

这篇关于或者在Grails 2.3.8中的namedQueries中:AbstractMethodError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆