Comments (5)
or
from elasticsearch-grails-plugin.
I must say I haven't tested the plugin with Grails 2.3.x
There was another complaint in regard to the version, but I hadn't had a chance to deal with it yet.
from elasticsearch-grails-plugin.
I'm getting the same error in Grails 2.2.4. event.entityAccess is always null.
from elasticsearch-grails-plugin.
There are two contructors in AbstractPersistenceEvent. One with EntityAccess and one without. The second one sets entity and entityAccess to null and populates entityObject instead. That one is obviously used. So in AuditEventListener you have to change the lines in the respective events from
void onPostInsert(PostInsertEvent event) {
====> OLD def entity = event.entityAccess.entity
if (elasticSearchContextHolder.isRootClass(entity.class)) {
pushToIndex(entity)
}
}
to
void onPostInsert(PostInsertEvent event) {
====> NEW def entity = event.entityAccess?.entity ?: event.entityObject
if (elasticSearchContextHolder.isRootClass(entity.class)) {
pushToIndex(entity)
}
}
from elasticsearch-grails-plugin.
I've pushed a fix.
Thanks everyone, your help is much appreciated!
from elasticsearch-grails-plugin.
Related Issues (20)
- Lower Case, Upper Case
- ElasticSearch 1.2.1 Not Found, is documentation wrong? HOT 2
- cannot connect to mongodb with mongodb plugin of grails HOT 1
- A fresh install needs elasticSearch.datastoreImpl configured but it's easy to miss in the documentation
- ElasticSearch fails in Grails 3.3.0.M2 HOT 13
- Index Type with composite key
- Dosent start up in Grails 3.2.8 HOT 5
- DoBulkRequest in descending id order
- elasticSearch.index.name does not seem to be working HOT 2
- PooledConnection has already been closed exception while updating HOT 4
- Error Creating bean with name 'indexRequestQueue' HOT 2
- Setting index name fails in 1.4.1 with grails 3.2.x HOT 7
- bulk index in large number of data will stop indexing at some point HOT 6
- Intermittent indexing issue with ElasticSearch 2.4.0.RC1 and Grails 3.3.2 HOT 4
- Indexing issue with ElasticSearch 2.4.0 and Grails 3.3.2 HOT 7
- Support Elastic Search 5.6.7
- FEATURE: elasticSearchService.search return object instead of Map
- How do you search collections in a domain class?
- Feature request: The ability to annotate a collection to be stored as JSON array
- When will support Grails 3.3.3 + Elasticsearch 1.6 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch-grails-plugin.