Top Topic ?

Hudson upgrade 1.339 to 1.348

Posted in cie by Ladislav Prskavec on March 3, 2010

We try upgrade Hudson 1.339 to 1.342 and more and we have problems with Section View plugin.


[!] Error
org.jvnet.hudson.reactor.ReactorException: hudson.util.IOException2:
Unable to read /srv/tomcat/.hudson/config.xml
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
at hudson.model.Hudson.executeReactor(Hudson.java:666)
at hudson.model.Hudson.(Hudson.java:585)
at hudson.WebAppMain$2.run(WebAppMain.java:224)
Caused by: hudson.util.IOException2: Unable to read
/srv/tomcat/.hudson/config.xml
at hudson.XmlFile.unmarshal(XmlFile.java:154)
at hudson.model.Hudson$11.run(Hudson.java:2095)
at
org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at hudson.model.Hudson$3.runTask(Hudson.java:648)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoSuchFieldError: DESCRIPTOR
at hudson.plugins.sectioned_view.ListViewSection.(ListViewSection.java:37)
at
...

Solution is so complicated.

  1. Stop using Section View plugin
  2. Stop Hudson
  3. Backup /user/.hudson/config.xml file
  4. Delete config.xml
  5. Make upgrade to last Hudson war
  6. Start Hudson
  7. Upgrade Section view plugin
  8. Start using Section View Plugin
  9. Stop hudson
  10. Restore config.xml from backup
  11. Start Hudson

All working! Good luck!

Advertisements