我的代码
def baseRecordList = DealerBaseInfo.findAll("from DealerBaseInfo as dealers",[cache: false])
在PriorApprovalController.groovy内部出现以下错误
groovy.lang.MissingMethodException: No signature of method: DealerBaseInfo.findAll() is applicable for argument types: () values: []
Possible solutions: f
我有一个运行Spring Integration inbound-channel-adapter的Grails webapp,它被配置为接收电子邮件,并且有一个处理消息的服务激活器。此服务激活器根据业务规则提取电子邮件的各个部分,然后需要更新Grails域对象并将这些更改保存到数据库中。
Spring Integration服务激活器代码片段:
HashMap<String, Serializable> params = new HashMap<String, Serializable>();
params.put("notification", not
如何在grails测试用例中使用executeQuery?
A error : groovy.lang.MissingMethodException: No signature of method ***.executeQuery() is applicable for argument types: () values: []
我已经打电话给mockDomain了。
顺便说一句,它是在单元测试中。
谢谢!
我正在为Grails 1.3.5中的服务编写Spock Spec (单元测试),并且遇到了以下错误:
No signature of method: myapp.Thing.findAll() is applicable for argument types: (java.util.LinkedHashMap) values: [[sort:index, order:asc]] Possible solutions: findAll(), findAll(groovy.lang.Closure), find(groovy.lang.Closure), getAll(java.util.List
import static org.springframework.http.HttpStatus.*
import grails.transaction.Transactional
import java.lang.String
import org.hibernate.Query
// grails controller logic
String hql ="SELECT state,count(team_id) FROM Obstacle where team_id = :teamId and state IN :states group BY state";
在我们的grails 1.3.x应用程序中,我们使用def user = request.userDefinedInAFilter,这不是在控制器方法中,而是在类的主体中,这很好用。现在,当升级到2.1.2时,在尝试创建bean时会出现以下错误:
Caused by: groovy.lang.MissingMethodException: No signature of method: com.MyController.getRequest() is applicable for argument types: () values: []
我可以把它放在控制器方法中,也可以放在一个put块中,
我已经将Grails 1.0.3应用程序升级到Grails 1.1.1。我已经升级了log4j在Config.groovy中的配置,以符合。但是,在使用ConsoleAppender定义PatternLayout之后,应用程序将不会启动,而是抛出带有消息的MissingMethodException:
groovy.lang.MissingMethodException: No signature of method: \
groovy.util.ConfigSlurper$_parse_closure5.pattern() is applicable \
for argument types
我正在使用Grails 2.2.1,并且似乎不能在grails控制台中使用GORM方法:
import com.mypackage.*
MyDomainClass.list()
结果:
groovy.lang.MissingMethodException: No signature of method: com.mypackage.ShippingLocation.list() is applicable for argument types: () values: []
Possible solutions: list(), list(java.util.Map), last(), las
根据Grails文献
我应该能做到的
def biweeklyBatchRanges = BiweeklyBatchRange.getAll()
如果没有得到这一点
groovy.lang.MissingMethodException: No signature of method: com.myplang.donation.BiweeklyBatchRange.getAll() is applicable for argument types: () values: []
Possible solutions: getAll(), getAt(java.lang.String),
我正在测试grails2.3.0,但是当我创建war (prod、test、dev)并尝试启动tomcat (7.0.42)时,总是会得到这个异常:
2013-09-25 18:23:03,448 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: No signature of method: groovy.xml.streamingmarkupsupport.StreamingMarkupWriter.attributeValue() is
我有一个小Grails应用程序。我决定做一个多租户的架构。我在dataSources中定义了几个DataSource.groovy。
问题是,我在域模型类中定义了几个namedQueries。
试图打电话:
Pomelo.one.matchByOneParam("paramValue").list()
似乎不起作用。
我得到了
groovy.lang.MissingMethodException
No signature of method: Pomelo.matchByOneValue() is applicable for argument types: (java.la