You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
// 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:
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 ->
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 ->
Tanks
Ricardo Bocchi
The text was updated successfully, but these errors were encountered: