Skip to content

Failed jobs on Tomcat stop #40

@ekozo-tgu

Description

@ekozo-tgu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions