Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6922785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:27:05+00:00 2026-05-27T10:27:05+00:00

I installed the executor plugin into my Grails app to do some simple asynchronous

  • 0

I installed the “executor” plugin into my Grails app to do some simple asynchronous processing; I’m not using Hibernate or any fancy persistence. Based on the documentation for the plugin, which can be found here https://github.com/basejump/grails-executor, the setup is very simple, just add the following to resources.groovy and I should be good to go…

//resources.groovy
    executorService( PersistenceContextExecutorWrapper ) { bean->
        bean.destroyMethod = 'destroy'
        persistenceInterceptor = ref("persistenceInterceptor")
        executor = Executors.newCachedThreadPool()
    }

I have not yet tried to use any of the asynchronous constructs in my code, but when I start up my grails app I see the following error…

Cannot resolve reference to bean 'persistenceInterceptor' while setting bean property 'persistenceInterceptor';
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
No bean named 'persistenceInterceptor' is defined

The error makes sense since in I have not wired up any bean named persistenceInterceptor in resources.groovy , but according to the plugin documentation I don’t have to. Do I have to write a groovy class that implements the PersistenceContextInterceptor interface, and wire that up as the “persistenceInterceptor” bean? In the Setup section of the documentation, there is no mention of this..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:27:06+00:00Added an answer on May 27, 2026 at 10:27 am

    I figured this out….

    The persistenceInterceptor is referenced by the executor plugin configuration, so once you add the plugin to a Grails project, your code must wire up an instance of PersistenceContextInterceptor in resources.groovy. I mocked a class to implement the interface just to get around this for now, and it worked fine.

    //resources.groovy
     persistenceInterceptor(  com.cache.DefaultCacheInterceptor){
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed FFMPEG using apt-get. It comes by default compiled with some options: configuration:
I've installed Hudson on Ubuntu and I am using the git plugin. The git
Installed the Google App Engine SDK.Python 2.6 perfect. Wanted to go into images, and
installed ejabberd using synaptic package manager on Ubuntu 10.04 without any error. sudo dpkg-reconfigure
Installed Google App Engine 1.2.5 and Web Toolkit 1.7.1 . However I still get
I installed the plugin for python and it detects the python code, but how
Installed Git and created heroku account for use with a facebook app unable to
Installed Tomcat 6 Installed Eclipse + GWT plugin Created GWT project with sample generated
I installed virtualmin and phpmyadmin separately using the apt-get command. phpMyAdmin didn't work because
I installed the opencv-android plugin successfully and I can build and run the cvcamera

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.