massdosage / citrine-scheduler

Java web application which can be used to configure, manage and monitor the running of various tasks
Apache License 2.0
4 stars 4 forks source link

Stack trace when starting a task in the process of cancelling #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start a wait job
2. Stop the wait job
3. Start the wait job whilst the wait job is cancelling

DOH!

An Error has occurred in this application:

fm.last.citrine.scheduler.ScheduleException: Error scheduling task with id 
6; nested exception is org.quartz.ObjectAlreadyExistsException: Unable to 
store Job with name: '6' and group: 'test-immediate', because one already 
exists with this identification..

Click here to go back to the home page and try continue what you were 
doing. If this problem persists please contact your system administrator.

Error scheduling task with id 6; nested exception is 
org.quartz.ObjectAlreadyExistsException: Unable to store Job with name: '6' 
and group: 'test-immediate', because one already exists with this 
identification. 
fm.last.citrine.scheduler.SchedulerManager.runTaskNow(SchedulerManager.java
:140)
fm.last.citrine.web.TaskController.run(TaskController.java:145)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:5
7)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:43)
java.lang.reflect.Method.invoke(Method.java:616)
org.springframework.web.servlet.mvc.multiaction.MultiActionController.invok
eNamedMethod(MultiActionController.java:473)
org.springframework.web.servlet.mvc.multiaction.MultiActionController.handl
eRequestInternal(MultiActionController.java:410)
org.springframework.web.servlet.mvc.AbstractController.handleRequest(Abstra
ctController.java:153)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(S
impleControllerHandlerAdapter.java:48)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServ
let.java:875)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServl
et.java:807)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkSe
rvlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.jav
a:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
nFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
hain.java:206)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
ava:233)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
ava:191)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
7)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10
2)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
a:109)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Htt
p11Protocol.java:588)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
java.lang.Thread.run(Thread.java:636)

Original issue reported on code.google.com by PhileinS...@gmail.com on 17 Apr 2010 at 1:18

GoogleCodeExporter commented 9 years ago
Even i am facing the same problem.... Any resolution?

Original comment by ramprabh...@gmail.com on 26 Jun 2012 at 2:17

GoogleCodeExporter commented 9 years ago
Can't you just wait til the job has actually finished cancelling before 
starting the new one? I've never seen this in our production setup so it hasn't 
been a priority to fix it.

Original comment by massdosage on 27 Jun 2012 at 9:12