How the new automatic restart feature is supposed to work?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How the new automatic restart feature is supposed to work?

Fabrizio Giudici
Because I tried it and Hudson stayed for a while in "Service not
available"... which is not a problem, but all the services I'm running
on the same Tomcat did the same (which means 5+ project websites, Jira
and my corporate CMS). It could be something that I can live with, just
to be sure that they will always resume correctly :-)

Also, I've restarted Hudson while a job was still running. Not only the
job was killed, but after the restart... it completely disappeared :-((
I'm not talking of the last build, I'm saying the whole job.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
[hidden email] - mobile: +39 348.150.6941


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How the new automatic restart feature is supposed to work?

Fabrizio Giudici
Fabrizio Giudici wrote:

> Because I tried it and Hudson stayed for a while in "Service not
> available"... which is not a problem, but all the services I'm running
> on the same Tomcat did the same (which means 5+ project websites, Jira
> and my corporate CMS). It could be something that I can live with,
> just to be sure that they will always resume correctly :-)
>
> Also, I've restarted Hudson while a job was still running. Not only
> the job was killed, but after the restart... it completely disappeared
> :-(( I'm not talking of the last build, I'm saying the whole job.
>
BTW, there are TWO disappearead jobs; they are still on the disk, but
Hudson fails to load them with the errors below. Help! :-)


Jul 1, 2009 2:55:37 PM hudson.ExpressionFactory2$JexlExpression evaluate
WARNING: Caught exception evaluating: it.fileList.isEmpty(). Reason:
java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
    at
org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
    at
org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
    at
org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)
    at
org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
    at
org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
    at
org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
    at
org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
    at
hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:71)
    at org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at
org.kohsuke.stapler.jelly.CustomTagLibrary$StaplerDynamicTag$1.run(CustomTagLibrary.java:147)
    at
org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
    at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:81)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at
org.kohsuke.stapler.jelly.CustomTagLibrary$StaplerDynamicTag$1.run(CustomTagLibrary.java:147)
    at
org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
    at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
    at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
    at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
    at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
    at
org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
    at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:81)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
    at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
    at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
    at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
    at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
    at
org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:29)
    at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:56)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
    at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:309)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
    at org.kohsuke.stapler.Stapler.service(Stapler.java:117)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
    at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    at
hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:35)
    at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    at
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
    at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
    at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
    at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at
org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
    at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
    at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at
org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
    at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    at
hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
    at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    at
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    at
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
    at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
    at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
    at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
    at java.io.File.(File.java:222)
    at
org.jvnet.hudson.plugins.backup.BackupLink.getFileList(BackupLink.java:132)
    ... 119 more

Jul 1, 2009 2:49:52 PM hudson.model.Hudson
INFO: Executing /home/fgiudici/Hudson/init.groovy

Jul 1, 2009 2:49:51 PM hudson.TcpSlaveAgentListener
INFO: JNLP slave agent listener started on TCP port 38375

Jul 1, 2009 2:49:51 PM hudson.model.Hudson load
INFO: Took 33151 ms to load

Jul 1, 2009 2:49:28 PM hudson.model.Hudson load
WARNING: Failed to load a project
hudson.util.IOException2: Unable to read
/home/fgiudici/Hudson/jobs/jrawio Nightly Build/config.xml
    at hudson.XmlFile.read(XmlFile.java:130)
    at hudson.model.Items.load(Items.java:106)
    at hudson.model.Hudson$9.call(Hudson.java:1994)
    at hudson.model.Hudson$9.call(Hudson.java:1987)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
Caused by: com.thoughtworks.xstream.converters.ConversionException: No
enum const class org.kohsuke.jnt.FileStatus.Draft : No enum const class
org.kohsuke.jnt.FileStatus.Draft
---- Debugging information ----
message             : No enum const class org.kohsuke.jnt.FileStatus.Draft
cause-exception     : java.lang.IllegalArgumentException
cause-message       : No enum const class org.kohsuke.jnt.FileStatus.Draft
class               : hudson.matrix.MatrixProject
required-type       : org.kohsuke.jnt.FileStatus
path                :
/matrix-project/publishers/hudson.plugins.javanet_uploader.JNUploaderPublisher/entries/hudson.plugins.javanet_uploader.Entry/status
line number         : 133
-------------------------------
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
    at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
    at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
    at
hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:79)
    at
com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
    at
hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.java:71)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
    at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
    at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
    at
hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:178)
    at
hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:307)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
    at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
    at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
    at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
    at hudson.util.XStream2.unmarshal(XStream2.java:65)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
    at hudson.XmlFile.read(XmlFile.java:126)
    ... 8 more
Caused by: java.lang.IllegalArgumentException: No enum const class
org.kohsuke.jnt.FileStatus.Draft
    at java.lang.Enum.valueOf(Enum.java:192)
    at
com.thoughtworks.xstream.converters.enums.EnumConverter.unmarshal(EnumConverter.java:47)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    ... 54 more

Jul 1, 2009 2:49:24 PM hudson.model.Hudson load
WARNING: Failed to load a project
hudson.util.IOException2: Unable to read
/home/fgiudici/Hudson/jobs/blueBill Server (Nightly Build)/config.xml
    at hudson.XmlFile.read(XmlFile.java:130)
    at hudson.model.Items.load(Items.java:106)
    at hudson.model.Hudson$9.call(Hudson.java:1994)
    at hudson.model.Hudson$9.call(Hudson.java:1987)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
Caused by: com.thoughtworks.xstream.converters.ConversionException: No
enum const class org.kohsuke.jnt.FileStatus.Draft : No enum const class
org.kohsuke.jnt.FileStatus.Draft
---- Debugging information ----
message             : No enum const class org.kohsuke.jnt.FileStatus.Draft
cause-exception     : java.lang.IllegalArgumentException
cause-message       : No enum const class org.kohsuke.jnt.FileStatus.Draft
class               : hudson.model.FreeStyleProject
required-type       : org.kohsuke.jnt.FileStatus
path                :
/project/publishers/hudson.plugins.javanet_uploader.JNUploaderPublisher/entries/hudson.plugins.javanet_uploader.Entry/status
line number         : 68
-------------------------------
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
    at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
    at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
    at
hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:79)
    at
com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
    at
hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.java:71)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
    at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
    at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
    at
hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:178)
    at
hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:307)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
    at
hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
    at
hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
    at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
    at hudson.util.XStream2.unmarshal(XStream2.java:65)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
    at hudson.XmlFile.read(XmlFile.java:126)
    ... 8 more
Caused by: java.lang.IllegalArgumentException: No enum const class
org.kohsuke.jnt.FileStatus.Draft
    at java.lang.Enum.valueOf(Enum.java:192)
    at
com.thoughtworks.xstream.converters.enums.EnumConverter.unmarshal(EnumConverter.java:47)
    at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    ... 54 more



--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
[hidden email] - mobile: +39 348.150.6941


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How the new automatic restart feature is supposed to work?

Kohsuke Kawaguchi
Administrator
In reply to this post by Fabrizio Giudici
Fabrizio Giudici wrote:
> Because I tried it and Hudson stayed for a while in "Service not
> available"... which is not a problem, but all the services I'm running
> on the same Tomcat did the same (which means 5+ project websites, Jira
> and my corporate CMS). It could be something that I can live with, just
> to be sure that they will always resume correctly :-)

Automatic restart restarts the whole JVM, so that's why your other apps
are also getting affected.

> Also, I've restarted Hudson while a job was still running. Not only the
> job was killed, but after the restart... it completely disappeared :-((
> I'm not talking of the last build, I'm saying the whole job.

This seems like an orthogonal issue.

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How the new automatic restart feature is supposed to work?

Kohsuke Kawaguchi
Administrator
In reply to this post by Fabrizio Giudici

The next Hudson 1.314 will include a fix for this. The original cause is
an incompatible update in the java.net uploader plugin, but I fixed this
in Hudson core.

Fabrizio Giudici wrote:

> Fabrizio Giudici wrote:
>> Because I tried it and Hudson stayed for a while in "Service not
>> available"... which is not a problem, but all the services I'm running
>> on the same Tomcat did the same (which means 5+ project websites, Jira
>> and my corporate CMS). It could be something that I can live with,
>> just to be sure that they will always resume correctly :-)
>>
>> Also, I've restarted Hudson while a job was still running. Not only
>> the job was killed, but after the restart... it completely disappeared
>> :-(( I'm not talking of the last build, I'm saying the whole job.
>>
> BTW, there are TWO disappearead jobs; they are still on the disk, but
> Hudson fails to load them with the errors below. Help! :-)
>
>
> Jul 1, 2009 2:55:37 PM hudson.ExpressionFactory2$JexlExpression evaluate
> WARNING: Caught exception evaluating: it.fileList.isEmpty(). Reason:
> java.lang.reflect.InvocationTargetException
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at
> org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
>     at
> org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
>     at
> org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
>     at
> org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)
>     at
> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
>     at
> org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
>     at
> org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
>     at
> org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
>     at
> hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:71)
>     at org.apache.commons.jelly.tags.core.SetTag.doTag(SetTag.java:84)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>     at
> org.kohsuke.stapler.jelly.CustomTagLibrary$StaplerDynamicTag$1.run(CustomTagLibrary.java:147)
>     at
> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>     at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>     at org.apache.commons.jelly.tags.core.IfTag.doTag(IfTag.java:42)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>     at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>     at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>     at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:81)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>     at
> org.kohsuke.stapler.jelly.CustomTagLibrary$StaplerDynamicTag$1.run(CustomTagLibrary.java:147)
>     at
> org.apache.commons.jelly.tags.define.InvokeBodyTag.doTag(InvokeBodyTag.java:91)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>     at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>     at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>     at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>     at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>     at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>     at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>     at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>     at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>     at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>     at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>     at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>     at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>     at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>     at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65)
>     at
> org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>     at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>     at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>     at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:81)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
>     at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186)
>     at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262)
>     at
> org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:29)
>     at org.kohsuke.stapler.jelly.JellyFacet$1.dispatch(JellyFacet.java:56)
>     at org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
>     at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:309)
>     at org.kohsuke.stapler.Stapler.invoke(Stapler.java:486)
>     at org.kohsuke.stapler.Stapler.invoke(Stapler.java:404)
>     at org.kohsuke.stapler.Stapler.service(Stapler.java:117)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:91)
>     at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:83)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
>     at
> hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:35)
>     at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>     at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
>     at
> hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
>     at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>     at
> org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
>     at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>     at
> org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
>     at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>     at
> org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
>     at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>     at
> org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
>     at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>     at
> org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
>     at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>     at
> org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
>     at
> hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
>     at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>     at
> hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
>     at
> hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
>     at
> hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
>     at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:155)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>     at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>     at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
>     at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>     at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>     at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>     at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
>     at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
>     at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
>     at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
>     at
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
>     at
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
>     at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.NullPointerException
>     at java.io.File.(File.java:222)
>     at
> org.jvnet.hudson.plugins.backup.BackupLink.getFileList(BackupLink.java:132)
>     ... 119 more
>
> Jul 1, 2009 2:49:52 PM hudson.model.Hudson
> INFO: Executing /home/fgiudici/Hudson/init.groovy
>
> Jul 1, 2009 2:49:51 PM hudson.TcpSlaveAgentListener
> INFO: JNLP slave agent listener started on TCP port 38375
>
> Jul 1, 2009 2:49:51 PM hudson.model.Hudson load
> INFO: Took 33151 ms to load
>
> Jul 1, 2009 2:49:28 PM hudson.model.Hudson load
> WARNING: Failed to load a project
> hudson.util.IOException2: Unable to read
> /home/fgiudici/Hudson/jobs/jrawio Nightly Build/config.xml
>     at hudson.XmlFile.read(XmlFile.java:130)
>     at hudson.model.Items.load(Items.java:106)
>     at hudson.model.Hudson$9.call(Hudson.java:1994)
>     at hudson.model.Hudson$9.call(Hudson.java:1987)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: com.thoughtworks.xstream.converters.ConversionException: No
> enum const class org.kohsuke.jnt.FileStatus.Draft : No enum const class
> org.kohsuke.jnt.FileStatus.Draft
> ---- Debugging information ----
> message             : No enum const class org.kohsuke.jnt.FileStatus.Draft
> cause-exception     : java.lang.IllegalArgumentException
> cause-message       : No enum const class org.kohsuke.jnt.FileStatus.Draft
> class               : hudson.matrix.MatrixProject
> required-type       : org.kohsuke.jnt.FileStatus
> path                :
> /matrix-project/publishers/hudson.plugins.javanet_uploader.JNUploaderPublisher/entries/hudson.plugins.javanet_uploader.Entry/status
> line number         : 133
> -------------------------------
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
>     at
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
>     at
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
>     at
> hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:79)
>     at
> com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
>     at
> hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.java:71)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
>     at
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
>     at
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
>     at
> hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:178)
>     at
> hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:307)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
>     at
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
>     at
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
>     at
> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
>     at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
>     at hudson.util.XStream2.unmarshal(XStream2.java:65)
>     at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
>     at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
>     at hudson.XmlFile.read(XmlFile.java:126)
>     ... 8 more
> Caused by: java.lang.IllegalArgumentException: No enum const class
> org.kohsuke.jnt.FileStatus.Draft
>     at java.lang.Enum.valueOf(Enum.java:192)
>     at
> com.thoughtworks.xstream.converters.enums.EnumConverter.unmarshal(EnumConverter.java:47)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     ... 54 more
>
> Jul 1, 2009 2:49:24 PM hudson.model.Hudson load
> WARNING: Failed to load a project
> hudson.util.IOException2: Unable to read
> /home/fgiudici/Hudson/jobs/blueBill Server (Nightly Build)/config.xml
>     at hudson.XmlFile.read(XmlFile.java:130)
>     at hudson.model.Items.load(Items.java:106)
>     at hudson.model.Hudson$9.call(Hudson.java:1994)
>     at hudson.model.Hudson$9.call(Hudson.java:1987)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>     at java.lang.Thread.run(Thread.java:619)
> Caused by: com.thoughtworks.xstream.converters.ConversionException: No
> enum const class org.kohsuke.jnt.FileStatus.Draft : No enum const class
> org.kohsuke.jnt.FileStatus.Draft
> ---- Debugging information ----
> message             : No enum const class org.kohsuke.jnt.FileStatus.Draft
> cause-exception     : java.lang.IllegalArgumentException
> cause-message       : No enum const class org.kohsuke.jnt.FileStatus.Draft
> class               : hudson.model.FreeStyleProject
> required-type       : org.kohsuke.jnt.FileStatus
> path                :
> /project/publishers/hudson.plugins.javanet_uploader.JNUploaderPublisher/entries/hudson.plugins.javanet_uploader.Entry/status
> line number         : 68
> -------------------------------
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
>     at
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
>     at
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
>     at
> hudson.util.RobustCollectionConverter.populateCollection(RobustCollectionConverter.java:79)
>     at
> com.thoughtworks.xstream.converters.collections.CollectionConverter.unmarshal(CollectionConverter.java:61)
>     at
> hudson.util.RobustCollectionConverter.unmarshal(RobustCollectionConverter.java:71)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
>     at
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
>     at
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
>     at
> hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:178)
>     at
> hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:307)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
>     at
> hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
>     at
> hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     at
> com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
>     at
> com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
>     at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
>     at hudson.util.XStream2.unmarshal(XStream2.java:65)
>     at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
>     at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
>     at hudson.XmlFile.read(XmlFile.java:126)
>     ... 8 more
> Caused by: java.lang.IllegalArgumentException: No enum const class
> org.kohsuke.jnt.FileStatus.Draft
>     at java.lang.Enum.valueOf(Enum.java:192)
>     at
> com.thoughtworks.xstream.converters.enums.EnumConverter.unmarshal(EnumConverter.java:47)
>     at
> com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
>     ... 54 more
>
>
>

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How the new automatic restart feature is supposed to work?

Fabrizio Giudici
Kohsuke Kawaguchi wrote:
> The next Hudson 1.314 will include a fix for this. The original cause is
> an incompatible update in the java.net uploader plugin, but I fixed this
> in Hudson core.
>  
Thanks for both answers. For what concerns the automatic restart, it
could be dangerous in contexts like mine, since I'm not supposed to
control the VM that runs Tomcat, as it's managed by my provider.
Restarting it could interfere in some way with their setup, so I'm
proposing to put a checkbox in the Hudson configuration to disable the
feature, so one can't erroneously use it where he shouldn't.

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
[hidden email] - mobile: +39 348.150.6941


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]