You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Soeren Glasius (Jira)" <ji...@apache.org> on 2021/11/12 13:43:00 UTC

[jira] [Commented] (GROOVY-8973) groovy.lang.MissingPropertyException with GORM and Groovy 2.5.5

    [ https://issues.apache.org/jira/browse/GROOVY-8973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17442745#comment-17442745 ] 

Soeren Glasius commented on GROOVY-8973:
----------------------------------------

This issue is also reproducible in Grails 4.0.12, where I have created this issue: https://github.com/grails/grails-core/issues/12180

> groovy.lang.MissingPropertyException with GORM and Groovy 2.5.5
> ---------------------------------------------------------------
>
>                 Key: GROOVY-8973
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8973
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.5.5
>            Reporter: Iván López
>            Priority: Major
>
> Using GORM DataServices in Micronaut with Groovy 2.5.5 throws a {{MissingPropertyException}}. This is probably because GORM is compiled with Groovy 2.4.x.
> To reproduce the issue:
> - {{git clone https://github.com/micronaut-projects/micronaut-examples}}
> - {{cd micronaut-examples/petstore}}
> - Use the following commit because forcing Groovy 2.5.1 fixes the issue, but no with latest Groovy: 
> - {{git checkout 8752b4ba8d8d9f30b65f12a872a02be130acc184}}
> - {{./gradlew vendors:test --tests "example.vendors.VendorControllerSpec.test save vendor"}}
> The exception is:
> {code}
> groovy.lang.MissingPropertyException: No such property: $validatedMethod0 for class: example.vendors.$VendorServiceImplementation
> 	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:67)
> 	at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.getProperty(GetEffectivePogoPropertySite.java:87)
> 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:309)
> 	at example.vendors.VendorService.findOrCreate(VendorService.groovy)
> 	at example.vendors.VendorService$findOrCreate.call(Unknown Source)
> 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
> 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)
> 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)
> 	at example.vendors.VendorController.save(VendorController.groovy:71)
> {code}
> Reported in this issue in Micronaut: https://github.com/micronaut-projects/micronaut-core/issues/1176



--
This message was sent by Atlassian Jira
(v8.20.1#820001)