continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Lamy" <olivier.l...@accor.com>
Subject RE : [beta-1-snasphot] trouble with bad entry in the cron's expression of a new schedule
Date Mon, 26 Sep 2005 15:38:19 GMT
Sure.
When adding the bad cron expression :
java.lang.UnsupportedOperationException: Support for specifying both a
day-of-week AND a day-of-month parameter is not implemented.

	at org.quartz.CronTrigger.getTimeAfter(CronTrigger.java:1985)

	at org.quartz.CronTrigger.getFireTimeAfter(CronTrigger.java:839)

	at
org.quartz.CronTrigger.computeFirstFireTime(CronTrigger.java:1086)

	at
org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:569)

	at
org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:221)

	at
org.apache.maven.continuum.scheduler.DefaultContinuumScheduler.scheduleJ
ob(DefaultContinuumScheduler.java:97)

	at
org.apache.maven.continuum.build.settings.DefaultSchedulesActivator.sche
dule(DefaultSchedulesActivator.java:140)

	at
org.apache.maven.continuum.build.settings.DefaultSchedulesActivator.acti
vateSchedule(DefaultSchedulesActivator.java:88)

	at
org.apache.maven.continuum.DefaultContinuum.addSchedule(DefaultContinuum
.java:810)

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

	at java.lang.reflect.Method.invoke(Method.java:324)

	at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:491)

	at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:785)

	at
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)

	at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)

	at ognl.ASTMethod.getValueBody(ASTMethod.java:75)

	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)

	at ognl.SimpleNode.getValue(SimpleNode.java:210)

	at ognl.Ognl.getValue(Ognl.java:333)

	at ognl.Ognl.getValue(Ognl.java:378)

	at ognl.Ognl.getValue(Ognl.java:357)

	at
org.codehaus.plexus.formica.action.AddEntity.uponSuccessfulValidation(Ad
dEntity.java:41)

	at
org.codehaus.plexus.formica.action.AbstractEntityAction.execute(Abstract
EntityAction.java:136)

	at
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve
.java:68)

	at
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipe
line.java:70)

	at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)

	at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)

	at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:294)

	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)

	at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)

	at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:525)

	at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)

	at org.mortbay.http.HttpServer.service(HttpServer.java:879)

	at
org.mortbay.http.HttpConnection.service(HttpConnection.java:789)

	at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)

	at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)

	at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218
)

	at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)

	at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)
when trying to remove :
ognl.MethodFailedException: Method "removeSchedule" failed for object
org.apache.maven.continuum.DefaultContinuum@1d47f59
[java.lang.NoSuchMethodException: removeSchedule(java.lang.String)]

	at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:796)

	at
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)

	at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)

	at ognl.ASTMethod.getValueBody(ASTMethod.java:75)

	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)

	at ognl.SimpleNode.getValue(SimpleNode.java:210)

	at ognl.Ognl.getValue(Ognl.java:333)

	at ognl.Ognl.getValue(Ognl.java:378)

	at ognl.Ognl.getValue(Ognl.java:357)

	at
org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation
(DeleteEntity.java:57)

	at
org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.jav
a:47)

	at
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve
.java:68)

	at
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipe
line.java:70)

	at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)

	at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)

	at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:294)

	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)

	at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)

	at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:525)

	at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)

	at org.mortbay.http.HttpServer.service(HttpServer.java:879)

	at
org.mortbay.http.HttpConnection.service(HttpConnection.java:789)

	at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)

	at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)

	at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218
)

	at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)

	at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)

/-- Encapsulated exception ------------\

java.lang.NoSuchMethodException: removeSchedule(java.lang.String)

	at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:783)

	at
ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:61)

	at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:819)

	at ognl.ASTMethod.getValueBody(ASTMethod.java:75)

	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)

	at ognl.SimpleNode.getValue(SimpleNode.java:210)

	at ognl.Ognl.getValue(Ognl.java:333)

	at ognl.Ognl.getValue(Ognl.java:378)

	at ognl.Ognl.getValue(Ognl.java:357)

	at
org.codehaus.plexus.formica.action.DeleteEntity.uponSuccessfulValidation
(DeleteEntity.java:57)

	at
org.codehaus.plexus.formica.action.DeleteEntity.execute(DeleteEntity.jav
a:47)

	at
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve
.java:68)

	at
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipe
line.java:70)

	at org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)

	at org.codehaus.plexus.summit.Summit.doPost(Summit.java:108)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:615)

	at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)

	at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:294)

	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)

	at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)

	at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:525)

	at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)

	at org.mortbay.http.HttpServer.service(HttpServer.java:879)

	at
org.mortbay.http.HttpConnection.service(HttpConnection.java:789)

	at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)

	at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)

	at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218
)

	at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)

	at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)


When trying to restart :
 
Error while deploying application
'continuum-plexus-application-1.0-beta-1-SNAPSHO
T.jar'.
org.codehaus.plexus.application.ApplicationServerException: Could not
deploy the J
AR
        at
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deplo
yJar(DefaultApplicationDeployer.java:216)
        at
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deplo
y(DefaultApplicationDeployer.java:136)
        at
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deplo
y(DefaultApplicationDeployer.java:116)
        at
org.codehaus.plexus.application.DefaultApplicationServer$2.onJarDiscove
red(DefaultApplicationServer.java:117)
        at
org.codehaus.plexus.application.supervisor.DefaultSupervisor.scanDirect
ory(DefaultSupervisor.java:89)
        at
org.codehaus.plexus.application.supervisor.DefaultSupervisor.scan(Defau
ltSupervisor.java:68)
        at
org.codehaus.plexus.application.DefaultApplicationServer.start(DefaultA
pplicationServer.java:146)
        at
org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execu
te(StartPhase.java:16)
        at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLi
fecycleHandler.java:101)
        at
org.codehaus.plexus.component.manager.AbstractComponentManager.startCom
ponentLifecycle(AbstractComponentManager.java:105)
        at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCo
mponentInstance(AbstractComponentManager.java:95)
        at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.
getComponent(ClassicSingletonComponentManager.java:92)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContaine
r.java:308)
        at
org.codehaus.plexus.application.PlexusApplicationHost.start(PlexusAppli
cationHost.java:109)
        at
org.codehaus.plexus.application.PlexusApplicationHost.main(PlexusApplic
ationHost.java:236)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.Exception: Error starting Plexus.
        at
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deplo
yApplicationDirectory(DefaultApplicationDeployer.java:370)
        at
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deplo
yJar(DefaultApplicationDeployer.java:212)
        ... 22 more
Caused by: java.lang.UnsupportedOperationException: Support for
specifying both a
day-of-week AND a day-of-month parameter is not implemented.
        at org.quartz.CronTrigger.getTimeAfter(CronTrigger.java:1985)
        at org.quartz.CronTrigger.getFireTimeAfter(CronTrigger.java:839)
        at
org.quartz.CronTrigger.computeFirstFireTime(CronTrigger.java:1086)
        at
org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:569)
        at
org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:221)
        at
org.apache.maven.continuum.scheduler.DefaultContinuumScheduler.schedule
Job(DefaultContinuumScheduler.java:97)
        at
org.apache.maven.continuum.build.settings.DefaultSchedulesActivator.sch
edule(DefaultSchedulesActivator.java:140)
        at
org.apache.maven.continuum.build.settings.DefaultSchedulesActivator.act
ivateSchedules(DefaultSchedulesActivator.java:79)
        at
org.apache.maven.continuum.DefaultContinuum.start(DefaultContinuum.java
:954)
        at
org.codehaus.plexus.personality.plexus.lifecycle.phase.StartPhase.execu
te(StartPhase.java:16)
        at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLi
fecycleHandler.java:101)
        at
org.codehaus.plexus.component.manager.AbstractComponentManager.startCom
ponentLifecycle(AbstractComponentManager.java:105)
        at
org.codehaus.plexus.component.manager.AbstractComponentManager.createCo
mponentInstance(AbstractComponentManager.java:95)
        at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.
getComponent(ClassicSingletonComponentManager.java:92)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContaine
r.java:308)
        at
org.codehaus.plexus.DefaultPlexusContainer.loadComponentsOnStart(Defaul
tPlexusContainer.java:849)
        at
org.codehaus.plexus.DefaultPlexusContainer.start(DefaultPlexusContainer
.java:752)
        at
org.codehaus.plexus.application.deploy.DefaultApplicationDeployer.deplo
yApplicationDirectory(DefaultApplicationDeployer.java:366)
        ... 23 more
I use the version continuum-20050924.013000.tar.gz
Olivier
 

-----Message d'origine-----
De : Emmanuel Venisse [mailto:emmanuel@venisse.net] 
Envoyé : lundi 26 septembre 2005 17:27
À : continuum-users@maven.apache.org
Objet : Re: [beta-1-snasphot] trouble with bad entry in the cron's
expression of a new schedule



Can you send the stacktrace? 

Emmanuel 

Olivier Lamy a écrit : 
> Hi all, 
> I have encountered a trouble by setting a bad cron expression for a
new 
> scheduler : 0 0 0,4,8,12,16,20 * * * instead of 0 0 0,4,8,12,16,20 * *
? 
> The continuum application fails and stop. 
> Then it's was impossible to restart the application (always failed 
> during the startup). 
> The only solution to delete and install again the application. 
> I found this issue http://jira.codehaus.org/browse/CONTINUUM-304. 
> It's probably difficult to write an good validator. But is it possible

> to correctly catch the exception ? 
> Olivier 
>  
> 
> 
> This e-mail, any attachments and the information contained therein
("this message") are confidential and intended solely for the use of the
addressee(s). If you have received this message in error please send it
back to the sender and delete it. Unauthorized publication, use,
dissemination or disclosure of this message, either in whole or in part
is strictly prohibited.

> **********************************************************************

> Ce message electronique et tous les fichiers joints ainsi que  les
informations contenues dans ce message ( ci apres "le message" ), sont
confidentiels et destines exclusivement a l'usage de la  personne a
laquelle ils sont adresses. Si vous avez reu ce message par erreur,
merci  de le renvoyer a son emetteur et de le detruire. Toutes
diffusion, publication, totale ou partielle ou divulgation sous quelque
forme que se soit non expressement autorisees de ce message, sont
interdites.

> **********************************************************************

> 
> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message