Trouble back-fitting fix to Grails 2.5

36 views
Skip to first unread message

John Pandich

unread,
Mar 10, 2016, 6:55:45 PM3/10/16
to Grails Dev Discuss
Hello, 

I am attempting to back fit https://github.com/grails/grails-data-mapping/commit/7415062050ea1a21a9c0650d2a22d6f1608af4fe to Grails 2.5. I have made the steps:

1) Make code changes to grails-data-mapping 3.1.5 (8479adc) because that is what sdkman pulls into grails 2.5.4 
2) Build the changes with "gradle build" and "gradle jar". 
3) replaced ~/.sdkman/candidates/grails/2.5.4/src/grails-datastore-gorm-3.1.5.RELEASE-sources.jar  with ~/../grails-data-mapping/grails-datastore-gorm/build/libs/grails-datastore-gorm-3.1.5.RELEASE-sources.jar because I assume all hibernate changes are bundled here
4) replaced ~/.sdkman/candidates/grails/2.5.4/lib/jars/org.grails/grails-datastore-gorm/grails-datastore-gorm-3.1.5.RELEASE.jar  with ~/../grails-data-mapping/grails-datastore-gorm/build/libs/grails-datastore-gorm-3.1.5.RELEASE-sources.jar because I assume all hibernate changes are bundled here

I am still seeing the same error (NullPointerException at at org.hibernate.engine.spi.BatchFetchQueue.removeBatchLoadableEntityKey(BatchFetchQueue.java:163)). I am not sure if the fix I back-fit was not the problem or if I am missing something in patching. Any help would be greatly appreciated.

Thank you,
John 

John Pandich

unread,
Mar 10, 2016, 6:57:15 PM3/10/16
to Grails Dev Discuss

correction:
4) replaced ~/.sdkman/candidates/grails/2.5.4/lib/jars/org.grails/grails-datastore-gorm/grails-datastore-gorm-3.1.5.RELEASE.jar  with ~/../grails-data-mapping/grails-datastore-gorm/build/libs/grails-datastore-gorm-3.1.5.RELEASE.jar because I assume all hibernate changes are bundled here

John Pandich

unread,
Mar 10, 2016, 7:47:03 PM3/10/16
to Grails Dev Discuss
Thanks to a StackOverflow response by Hans Bogaards I remembered that many gorm jars are located in $HOME/.gradle/cache. The versions are much different than those generated by the Grails 2.5 gradle build. I believe they are aligned with gorm/hibernate releases. I may have open a can of worms on this back fit. 
Reply all
Reply to author
Forward
0 new messages