Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed jobs on Tomcat stop #40

Open
ekozo-tgu opened this issue Nov 19, 2014 · 0 comments
Open

Failed jobs on Tomcat stop #40

ekozo-tgu opened this issue Nov 19, 2014 · 0 comments

Comments

@ekozo-tgu
Copy link

Hi.
We are using:

  • grails 2.4.4
  • grails-jesque 0.8.0-SNAPSHOT

After stopping our tomcat server while there are unprocessed elements in the queue (around 8000), we got a lot of them (2879) in the failed queue. The error is same for all of them:

Method on class [com.sample.Subscriber] was used outside of a Grails application. If running in the context of a test using the mocking API or bootstrap Grails correctly.
    at com.sample.Subscriber.currentGormInstanceApi(Subscriber.groovy)
    at com.sample.Subscriber.save(Subscriber.groovy)
    at com.sample.Subscriber$save.call(Unknown Source)
    at com.sample.SubscriberService.saveSubscriber(SubscriberService.groovy:27)
    at com.sample.SubscriberService$$FastClassBySpringCGLIB$$64298a18.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:708)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)

....

Is there any way to avoid this issue ?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant