Git Product home page Git Product logo

grails-solr-plugin's People

Contributors

mbrevoort avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

grails-solr-plugin's Issues

dependency to slf4j 1.5.5

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

Cannot get property 'eventListeners' on null object

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...

Solr + MongoDB

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.