{"action":"created","issue":{"url":"https://api.github.com/repos/grails/grails-core/issues/8817","labels_url":"https://api.github.com/repos/grails/grails-core/issues/8817/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-core/issues/8817/comments","events_url":"https://api.github.com/repos/grails/grails-core/issues/8817/events","html_url":"https://github.com/grails/grails-core/issues/8817","id":81570431,"number":8817,"title":"GRAILS-9016: NoSuchFieldError: r$sfields when extending class in a jar that is in the same package as domain class","user":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grails/grails-core/labels/Backlog","name":"Backlog","color":"fbca04"},{"url":"https://api.github.com/repos/grails/grails-core/labels/Bug","name":"Bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/grails/grails-core/labels/Major","name":"Major","color":"f7c6c7"},{"url":"https://api.github.com/repos/grails/grails-core/labels/Spring%20Loaded","name":"Spring Loaded","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2012-04-11T06:53:31Z","updated_at":"2015-07-21T15:07:47Z","closed_at":null,"body":"\nOriginal Reporter: esword\nEnvironment: Not Specified\nVersion: 2.0.3\nMigrated From: http://jira.grails.org/browse/GRAILS-9016\n\nI apologize in advance, but there is no way to say this without being confusing: \n\nIf you have a non-artifact class in your grails application that extends a base class from an included jar and the base class is in the same package as a domain class, then you cannot instantiate an instance of the child class (or otherwise reference the child class in any way) when running tests from the interactive shell or when running \"grails run-app\" from the command line.\n\nThe included example app (and associated test lib) shows the problem.  I kept the class files there so you have exactly what I ran with.  \n\nSome additional info:\n\n1) Running tests from the command line (e.g. grails test-app) works fine\n2) \"grails run-war\" also works fine\n3) It doesn't matter where the child class is placed - could be in grails-app/util or just src.\n4) It doesn't matter whether the classes (parent or child) are groovy or java classes.  The problem occurs either way.\n5) The problem does not appear if the base class is included in the grails app itself.  It only happens when the base class is in an external jar.\n6) I thought that it doesn't matter what package the child class is in, but in the sample app the child class must be in the same package as the parent class.  In my real app I have tried putting the child class in another package and still get the error.\n7) These two posts about two different plugins report similar behavior: \n* http://ondrej-kvasnovsky.blogspot.com/2011/08/how-to-add-vaadin-add-on-into-grails.html\n* http://www.graniteds.org/jira/browse/GDSFLEX-34\n \n"},"comment":{"url":"https://api.github.com/repos/grails/grails-core/issues/comments/123364007","html_url":"https://github.com/grails/grails-core/issues/8817#issuecomment-123364007","issue_url":"https://api.github.com/repos/grails/grails-core/issues/8817","id":123364007,"user":{"login":"graemerocher","id":66626,"avatar_url":"https://avatars.githubusercontent.com/u/66626?v=3","gravatar_id":"","url":"https://api.github.com/users/graemerocher","html_url":"https://github.com/graemerocher","followers_url":"https://api.github.com/users/graemerocher/followers","following_url":"https://api.github.com/users/graemerocher/following{/other_user}","gists_url":"https://api.github.com/users/graemerocher/gists{/gist_id}","starred_url":"https://api.github.com/users/graemerocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graemerocher/subscriptions","organizations_url":"https://api.github.com/users/graemerocher/orgs","repos_url":"https://api.github.com/users/graemerocher/repos","events_url":"https://api.github.com/users/graemerocher/events{/privacy}","received_events_url":"https://api.github.com/users/graemerocher/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T15:07:47Z","updated_at":"2015-07-21T15:07:47Z","body":"@aclement Thanks Andy, will test it out today"}}