{"action":"opened","issue":{"url":"https://api.github.com/repos/grails/grails-data-mapping/issues/686","repository_url":"https://api.github.com/repos/grails/grails-data-mapping","labels_url":"https://api.github.com/repos/grails/grails-data-mapping/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/grails/grails-data-mapping/issues/686/comments","events_url":"https://api.github.com/repos/grails/grails-data-mapping/issues/686/events","html_url":"https://github.com/grails/grails-data-mapping/issues/686","id":145000387,"number":686,"title":"association id's stopped working in grails 3.1.4","user":{"login":"erichelgeson","id":271734,"avatar_url":"https://avatars.githubusercontent.com/u/271734?v=3","gravatar_id":"","url":"https://api.github.com/users/erichelgeson","html_url":"https://github.com/erichelgeson","followers_url":"https://api.github.com/users/erichelgeson/followers","following_url":"https://api.github.com/users/erichelgeson/following{/other_user}","gists_url":"https://api.github.com/users/erichelgeson/gists{/gist_id}","starred_url":"https://api.github.com/users/erichelgeson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erichelgeson/subscriptions","organizations_url":"https://api.github.com/users/erichelgeson/orgs","repos_url":"https://api.github.com/users/erichelgeson/repos","events_url":"https://api.github.com/users/erichelgeson/events{/privacy}","received_events_url":"https://api.github.com/users/erichelgeson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-31T19:49:54Z","updated_at":"2016-03-31T19:49:54Z","closed_at":null,"body":"Accessing an association id via `foo.barId` (instead of `foo.bar.id`) seems to have stopped working in grails 3.1.x\r\n\r\nThe exception is odd because there has to be a hibernate session working as I can access `thing.otherThing.id` but not `thing.otherThingId`\r\n\r\n```\r\nERROR org.grails.web.errors.GrailsExceptionResolver - IllegalStateException occurred when processing request: [GET] /thing/\r\nNo Datastore Session bound to thread, and configuration does not allow creation of non-transactional one here. Stacktrace follows:\r\njava.lang.reflect.InvocationTargetException: null\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: org.grails.web.converters.exceptions.ConverterException: java.lang.IllegalStateException: No Datastore Session bound to thread, and configuration does not allow creation of non-transactional one here\r\n\tat grails.converters.JSON.value(JSON.java:184)\r\n\tat grails.converters.JSON.render(JSON.java:119)\r\n\tat grails.converters.JSON.render(JSON.java:132)\r\n\tat grails.artefact.controller.support.ResponseRenderer$Trait$Helper.render(ResponseRenderer.groovy:191)\r\n\tat associationid.ThingController.index(ThingController.groovy:13)\r\n\t... 3 common frames omitted\r\nCaused by: java.lang.IllegalStateException: No Datastore Session bound to thread, and configuration does not allow creation of non-transactional one here\r\n\tat associationid.marshallers.ThingMarshallerJson$__clinit__closure1.doCall(ThingMarshallerJson.groovy:13)\r\n\t... 8 common frames omitted\r\n```\r\n\r\nFails in Marshallers, Controllers, GSP. \r\n\r\nFresh grails 3.1.4 app with 1 commit showing the issue here: https://github.com/erichelgeson/associationid/commits/master"}}