Grails
  1. Grails
  2. GRAILS-6807

Error with dynamicFilterEnabler if use of DefaultGrailsDomainConfiguration

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.3.5
    • Fix Version/s: 1.3.6, 1.4-M1
    • Component/s: Persistence
    • Labels:
      None

      Description

      Since grails 1.3.5, I have the bellow exception if I use DefaultGrailsDomainConfiguration:
      org.hibernate.HibernateException: No such filter configured [dynamicFilterEnabler]

      The reason is that DefaultGrailsDomainConfiguration doesn't add the filter dynamicFilterEnabler.

      ConfigurableLocalSessionFactoryBean.groovy:96
      if (configClass == null) {
      try {
      configClass = cl.loadClass("org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration")
      }
      catch (Throwable e) {
      // probably not Java 5 or missing some annotation jars, use default
      configClass = DefaultGrailsDomainConfiguration.class;
      }
      }
      

      See JIRA 6681 - http://jira.codehaus.org/browse/GRAILS-6681

      1. HibernateFilterAnnotationConfiguration.groovy
        2 kB
        boillod manuel

        Activity

        Hide
        Shenjun Zhang added a comment -

        I'm in the same problem. Is the new release of hibernate filter 0.2 ? But I can't find HibernateFilterAnnotationConfiguration class under src/groovy folder.

        Show
        Shenjun Zhang added a comment - I'm in the same problem. Is the new release of hibernate filter 0.2 ? But I can't find HibernateFilterAnnotationConfiguration class under src/groovy folder.
        Hide
        boillod manuel added a comment -

        It's a "homemade" new release of the plugin. You'll find HibernateFilterAnnotationConfiguration in the attachments of this JIRA.

        Show
        boillod manuel added a comment - It's a "homemade" new release of the plugin. You'll find HibernateFilterAnnotationConfiguration in the attachments of this JIRA.
        Hide
        boillod manuel added a comment -

        I've contact the plugin's developper and asked him to release a new version of its plugin.

        Show
        boillod manuel added a comment - I've contact the plugin's developper and asked him to release a new version of its plugin.
        Hide
        MediaInvest Webteam added a comment -

        Sample application that shows the error.

        Show
        MediaInvest Webteam added a comment - Sample application that shows the error.
        Show
        Graeme Rocher added a comment - Fixed 1.4.x: https://github.com/grails/grails-core/commit/3c689c22d6cc14fc404341c1cd0eb2f8a1a23120 Fixed 1.3.x: https://github.com/grails/grails-core/commit/95ace87993514a8c4293a04c3e4475a1dd035738

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            boillod manuel
          • Votes:
            8 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development