mbrevoort / grails-solr-plugin Goto Github PK
View Code? Open in Web Editor NEWProvides search capabilities for Grails domain model and more using the excellent Solr open source search server through the SolrJ library.
License: Apache License 2.0
Provides search capabilities for Grails domain model and more using the excellent Solr open source search server through the SolrJ library.
License: Apache License 2.0
The plugin contains a dependency to slf4j-api-1.5.5. That conflicts with the standard dependecy to slf4j 1.6.2 of newer Grails versions.
The result is a strange runtime error: java.lang.IllegalAccessError: tried to access method org/slf4j/impl/StaticLoggerBinder.SINGLETONLorg/slf4j/impl/StaticLoggerBinder; from class org/slf4j/LoggerFactory
HI,
Have integrated plugin in grails 2.2.3 app,
But giving me an error as following:
ERROR context.GrailsContextLoader - Error initializing the application: Cannot get property 'eventListeners' on null object
Message: Cannot get property 'eventListeners' on null object
I think error is with : doWithApplicationContext in plugin.
But I am not able to solve it. Can you plz help me to solve it...
Hi,
I was using the Grails Solr Plugin at an application with MmongoDB and I had some problems. When I started the application, I received an error in SolrGrailsPlugin.groovy. The closure that causes this error is:
def doWithApplicationContext = { applicationContext ->
// add the event listeners for reindexing on change
def listeners = applicationContext.sessionFactory.eventListeners
def listener = new SolrIndexListener()
['postInsert', 'postUpdate', 'postDelete'].each({
addEventTypeListener(listeners, listener, it)
})
}
Then I modified the closure to test if hibernate's sessionFactory is null and then it works. I would like to now if is a bug or is a normal behavior. My corrected closure is:
def doWithApplicationContext = { applicationContext ->
// add the event listeners for reindexing on change
if(!applicationContext.sessionFactory)
return
def listeners = applicationContext.sessionFactory.eventListeners
def listener = new SolrIndexListener()
['postInsert', 'postUpdate', 'postDelete'].each({
addEventTypeListener(listeners, listener, it)
})
}
Tanks
Ricardo Bocchi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.