Meet Hudson

What is Hudson?

Hudson monitors executions of repeated jobs, such as building a software project or jobs run by cron. Among those things, current Hudson focuses on the following two jobs:

  1. Building/testing software projects continuously, just like CruiseControl or DamageControl. In a nutshell, Hudson provides an easy-to-use so-called continuous integration system, making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build. The automated, continuous build increases the productivity.
  2. Monitoring executions of externally-run jobs, such as cron jobs and procmail jobs, even those that are run on a remote machine. For example, with cron, all you receive is regular e-mails that capture the output, and it is up to you to look at them diligently and notice when it broke. Hudson keeps those outputs and makes it easy for you to notice when something is wrong.

Features

Hudson offers the following features:

  1. Easy installation: Just java -jar hudson.war for testing. Use a native package or deploy it in a servlet container for production use. No additional install, no database.
  2. Easy configuration: Hudson can be configured entirely from its friendly web GUI with extensive on-the-fly error checks and inline help. There's no need to tweak XML manually anymore, although if you'd like to do so, you can do that, too.
  3. Change set support: Hudson can generate a list of changes made into the build from SCM systems like CVS, Subversion, Git and many others.. This is done in a fairly efficient fashion, to reduce the load on the repository.
  4. Permanent links: Hudson gives you clean readable URLs for most of its pages, including some permalinks like "latest build"/"latest successful build", so that they can be easily linked from elsewhere.
  5. RSS/E-mail/IM Integration: Monitor build results by RSS or e-mail to get real-time notifications on failures.
  6. After-the-fact tagging: Builds can be tagged long after builds are completed
  7. JUnit/TestNG test reporting: JUnit test reports can be tabulated, summarized, and displayed with history information, such as when it started breaking, etc. History trend is plotted into a graph.
  8. Distributed builds: Hudson can distribute build/test loads to multiple computers. This lets you get the most out of those idle workstations sitting beneath developers' desks.
  9. File fingerprinting: Hudson can keep track of which build produced which jars, and which build is using which version of jars, and so on. This works even for jars that are produced outside Hudson, and is ideal for projects to track dependency.
  10. Plugin Support: Hudson can be extended via 3rd party plugins. You can write plugins to make Hudson support tools/processes that your team uses.

Hudson Best Practices

Continuous Integration with automated test execution has seen broad adoption in recent years. The ideas behind Continuous Integration have changed how companies look at Build Management, Release Management, Deployment Automation, and Test Orchestration. This section provides a set of best practices for Hudson - A Continuous Integration Solution to provide executives, business managers, software developers and architects a better sense of the development progress and code quality of projects throughout the development lifecycle. (View Hudson Best Practices)

Introductory Articles

Installation

Hudson provides native packages as well as a simple war file to install in a servlet container or run from directly. Check out Installing Hudson for more details.

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Oct 29, 2007

    Anonymous says:

    Since this covers launching Hudson, and not just installing it. Why don't we giv...

    Since this covers launching Hudson, and not just installing it. Why don't we give a few of the more "key" command line parameters to use here. For example:

    • --httpPort=$HTTP_PORT
    • --javaHome=$JAVA_HOME

    And maybe a few others.

    Plus, a reminder that the command line parameters are not checked too carefully, so verify your spelling because if you misspell something, it will simply ignore that parameter.

  2. Apr 01, 2009

    Ross aribi says:

    I'm a bit annoyed. I've installed Hudson on JBOSS and it has been working fine f...

    I'm a bit annoyed. I've installed Hudson on JBOSS and it has been working fine for weeks now. It's installed on Linux VM. Yesterday, for some reason, I got this Error: message when I started hudson:

    java.lang.VerifyError: class hudson.plugins.disk_usage.DiskUsageThread overrides final method .
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at hudson.plugins.disk_usage.DiskUsagePlugin.(DiskUsagePlugin.java:28)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:190)
    at hudson.PluginManager.(PluginManager.java:141)
    at hudson.model.Hudson.(Hudson.java:512)
    at hudson.WebAppMain$2.run(WebAppMain.java:190)

    My diskspace is fine:

    # df -k .
    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/sda2             25537752   2334292  21906212  10% /

    The log does not give me much to work with. Any idea what might have gone wrong?

    1. Oct 08, 2009

      Yauhen Artsiukhou says:

      Seems you're using Disk Usage Plugin. It requires JDK 1.6 as I know. What is you...

      Seems you're using Disk Usage Plugin. It requires JDK 1.6 as I know.
      What is your JDK version?

  3. Apr 17, 2009

    Nandini Obhrai says:

    hi, Can someone tell me how to setup hudson, such that it runs the ant.bat from...

    hi,

    Can someone tell me how to setup hudson, such that it runs the ant.bat from the workspace directory. Currently my build.xml is not found ant is being run from the c:\

    [build] $ cmd.exe /C '"D:\devtools\apache-ant-1.7.1\bin\ant.bat -file build.xml make && exit %%ERRORLEVEL%%"'

    resulting in the following error, as build.xml is actually in C:\Documents and Settings\useir\.hudson\jobs\ASYNC_BATCH_H\workspace

    C:\>"D:\devtools\Java\jdk1.5.0_17\bin\java.exe"  -classpath "D:\devtools\apache-ant-1.7.1\lib\ant-launcher.jar" "-Dant.home=D:\devtools\apache-ant-1.7.1" org.apache.tools.ant.launch.Launcher  -file build.xml make
    Buildfile: build.xml does not exist!
    Build failed

    Thanks!

    1. Jul 23, 2009

      Raghavendra K Neelekani says:

      U have to keep the build.xml file in the directory from which u r running ant......

      U have to keep the build.xml file in the directory from which u r running ant....

  4. Jul 23, 2009

    Raghavendra K Neelekani says:

    I have setup hudson server in my system and created new job..  After the jo...

    I have setup hudson server in my system and created new job..  After the job configuration when I save it , Its displaying the following message .. Job is not created..

    Status Code: 400

    Exception: This page expects a form submission
    Stacktrace: (none)
     
    can u people help me out please to resolve this problem ????

  5. Feb 08, 2010

    sanjeev nair says:

    There seems to be a some issues with v1.344.A few things that were working befor...

    There seems to be a some issues with v1.344.A few things that were working before in v1.343 have stopped working now. Have listed down a few

    a. I used to click on the progress bar of the build number to display real time logs. Nothing happens when I click it

    b. The log file itself is not properly displayed. You need to select the "raw" log format option to view the log as text

    c. cant seem to configure a project getting the below error

    Status Code: 400

    Exception: This page expects a form submission
    Stacktrace: (none)

    Do we have a roll back option? Unfortunately.. I do not seem to have a v1.343 backup, but I do have the v1.342 backup. Any suggestions?

    Hudson server is installed on Windows 2003 server

  6. Apr 28, 2010

    Peter Yamamoto says:

    I don't know where the proper place for asking questions/raising questions is bu...

    I don't know where the proper place for asking questions/raising questions is but...

    I'm trying to move a build to hudson. The build works fine when invoked from the commandline. but when invoked by hudson some operations (in particular directx sdk calls) are erroring with E_OUTOFMEMORY error. This is while processing textures but the textures are small so it's not as if this is/should be a borderline case, like I said, everything works when invoked from the commandline. It's just when it's run from hudson (build/execute windows batch command) that this happens. This is on a win7 64bit machine. We're trying to put the build on hudson for the first time so I don't know if this is a hudson/java/win7/... issue or what!-P

    Peter

    1. Aug 24, 2010

      Tom Hunter says:

      Hi Peter, I think it's likely this could be similar to an issue I'm having. It ...

      Hi Peter, I think it's likely this could be similar to an issue I'm having. It seems that when Hudson spawns a cmd.exe to run Windows Batch Command scripts it spawns a 32-bit process, however when you run cmd.exe through Start > Run on the server I think it will spawn a 64-bit process.

      See my StackOverflow question: http://stackoverflow.com/questions/3558221/windows-server-2003-64-bit-cmd-exe-error

      Regards,
      Tom

  7. Jul 08, 2010

    Randy Osorio says:

    I have a very annoyng problem with Hudson since version 1.362 and later. First o...

    I have a very annoyng problem with Hudson since version 1.362 and later. First of all, always the hudson page reload every I dont know

    30 seconds, so I cant do things such as review the timeline and because of that is very slow the builds.

    I dont know if this is present by the problem mencioned, but in the server appears this error.

    INFO: bas #24 main build action completed: FAILURE
    [webapp 2010/07/08 11:50:46] - Error while serving http://192.168.20.135:7080/job/build/buildHistory/ajax
    java.lang.reflect.InvocationTargetException
            at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:592)
            at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:235)
            at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:116)
            at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:57)
            at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:526)
            at org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:319)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:526)
            at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:526)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:442)
            at org.kohsuke.stapler.Stapler.service(Stapler.java:124)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
            at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
            at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
            at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            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.HudsonFilter.doFilter(HudsonFilter.java:164)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
            at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
            at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
            at java.lang.Thread.run(Thread.java:595)
    Caused by: winstone.ClientSocketException: Failed to write to client
            at winstone.ClientOutputStream.write(ClientOutputStream.java:41)
            at winstone.WinstoneOutputStream.commit(WinstoneOutputStream.java:179)
            at winstone.WinstoneOutputStream.flush(WinstoneOutputStream.java:217)
            at winstone.WinstoneOutputStream.close(WinstoneOutputStream.java:227)
            at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
            at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
            at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:432)
            at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:160)
            at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
            at java.io.BufferedWriter.close(BufferedWriter.java:250)
            at org.dom4j.io.XMLWriter.close(XMLWriter.java:286)
            at org.kohsuke.stapler.jelly.HTMLWriterOutput.close(HTMLWriterOutput.java:47)
            at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:33)
            at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:32)
            at hudson.widgets.HistoryWidget.doAjax(HistoryWidget.java:186)
            ... 51 more
    Caused by: java.net.SocketException: Broken pipe
            at java.net.SocketOutputStream.socketWrite0(Native Method)
            at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
            at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
            at winstone.ClientOutputStream.write(ClientOutputStream.java:39)
            ... 65 more

    I think that this is because of a plugin that I installed(Disk usage), because before to install it, Hudson

    worked fine.But I really dont know the cause.I hope you can fix this problem quickly, is very annoyng!

  8. Jul 13, 2010

    Randy Osorio says:

    Hello, me again. This time i wrote because i have a problem with the timeline i...

    Hello, me again.

    This time i wrote because i have a problem with the timeline in hudson, the last version release(aka 1.366), the thing is that I cant see nothing on the timeline graph.

    Dont appear the ball with the name of the build, placed in the hour when the build happen, nothing at all.

    I hope that you review this bug.

    Thanks, I like Hudson, is very easy to use.

    1. Jan 19, 2011

      Stefan Vollmer says:

      It seems like there won't be any answer^^ I have the same problem.

      It seems like there won't be any answer^^

      I have the same problem.

  9. Aug 01, 2010

    Don Brutzman says:

    Oracle is no longer serving the helpful whitepaper "Developing Software Collabor...
  10. Sep 09, 2010

    Randy Osorio says:

    I want to report a bug with Hudson v. 1.374 and 1.375. Netbeans have a plugin to...

    I want to report a bug with Hudson v. 1.374 and 1.375. Netbeans have a plugin to syncrhonyze with Hudson. Well, until the version 1.369, that happens correctly.

    However in v. 1.374 and 1.375. on Netbeans appear as disconnected and on Hudson log show this:

    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.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259)
            at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126)
            at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65)
            at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
            at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:181)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:450)
            at org.kohsuke.stapler.Stapler.service(Stapler.java:132)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
            at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
            at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
            at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
            at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
            at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
            at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
            at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: org.kohsuke.stapler.export.NotExportableException: class hudson.util.DescribableList doesn't have @ExportedBean
            at org.kohsuke.stapler.export.Model.<init>(Model.java:46)
            at org.kohsuke.stapler.export.ModelBuilder.get(ModelBuilder.java:25)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:181)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:106)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:83)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:188)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:151)
            at org.kohsuke.stapler.export.Property.writeValue(Property.java:106)
            at org.kohsuke.stapler.export.Property.writeTo(Property.java:83)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:156)
            at org.kohsuke.stapler.export.Model.writeNestedObjectTo(Model.java:153)
            at org.kohsuke.stapler.export.Model.writeTo(Model.java:129)
            at org.kohsuke.stapler.export.Model.writeTo(Model.java:148)
            at hudson.model.Api.doXml(Api.java:95)
            ... 35 more

    I hope that be fixed this, because I cant connect Hudson 1.375 with Netbeans,

  11. Sep 16, 2010

    Raphael Jolly says:

    removed post about fixed issue

    removed post about fixed issue

  12. Oct 05, 2010

    Bernard says:

    When I try and install Hudson on my Windows 7 machine, I get the following error...

    When I try and install Hudson on my Windows 7 machine, I get the following error:
    Exception in thread "main" java.lang.NosuchMethodError at Main.main(Main.java:137)
    I have both JDK1.6 and JRE6 on this machine, don't know if this might cause this, as I'm not too clued up with java.

    Please assist?

  13. Oct 19, 2010

    Craig Thayer says:

    It would be nice if the the "Add Parameter" configuration file plugin provided a...

    It would be nice if the the "Add Parameter" configuration file plugin provided
    a check box option that set a parameter to a particular value and/or
    appended values to the parameter in a CSV (or blank) separated string list.
    For example:

    Parameter Name [Server]
    Label [QA Server]
    Value [10.10.227.132]
    Default [x]
    Description [Retrieve application versions from the QA server]

    Parameter Name [Server]
    Label [Demo Server]
    Value [10.10.227.131]
    Default [ ]
    Description [Retrieve application versions from the Demo server]

    The "Build Now" Page would display:
    QA Server [x]
    Retrieve application versions from the QA server
    Demo Server [ ]
    Retrieve application version from the Demo server

    This would result in '-DServer=10.10.227.132' being passed to ant if the
    user left the boxes as defined by their configuration file default settings,
    '-DServer=10.10.227.132,10.10.227.131' passed to ant if the user checked
    both boxes, and no '-DServer' parameter passed to ant at all if the user
    unchecked both boxes.

  14. Feb 01, 2011

    Sai Bhargava Adiraj says:

    Hi, I have a problem with android plugin for Hudson. I've installed android pl...

    Hi,

    I have a problem with android plugin for Hudson. I've installed android plugin in my Hudson server.
    For testing, I just created some compilation errors in my android project and submitted in Hudson.
    Its building successfully without showing errors. Its not sending mails. But server is working fine with projects(using Java, C++).

    Its not building when I try to run that project in my system(through command prompt). I am using android version 8 and 9(2.2 and 2.3).
    Is there any problem with android plugin for Hudson??? or some other???

    Pls assist me...

    Any suggestion appreciated..

  15. Feb 14, 2011

    Darshana Bothara says:

    Hi, I am trying to install Hudson version 1.396. I have installed java versi...
    Hi,
    
    I am trying to install Hudson version 1.396. I have installed java version 1.6.0_23. 
    
    When i try to "Install Hudson as a service", i get the following message :
    
    
    INFO: JNLP slave agent listener started on TCP port 2123
    [webapp 2011/02/15 11:25:42] - Error while serving http://mdinaurpw065:8080/install/doInstall
    java.lang.reflect.InvocationTargetException
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
            at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
            at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
            at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:102)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640)
            at org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:382)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:478)
            at org.kohsuke.stapler.Stapler.service(Stapler.java:160)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
            at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
            at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
            at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
            at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
            at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
            at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
            at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
            at java.io.File.<init>(Unknown Source)
            at hudson.lifecycle.WindowsInstallerLink.doDoInstall(WindowsInstallerLink.java:111)
            ... 39 more
    
    [Winstone 2011/02/15 11:25:42] - Untrapped Error in Servlet
    javax.servlet.ServletException: java.lang.NullPointerException
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:597)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640)
            at org.kohsuke.stapler.MetaClass$13.dispatch(MetaClass.java:382)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:640)
            at org.kohsuke.stapler.Stapler.invoke(Stapler.java:478)
            at org.kohsuke.stapler.Stapler.service(Stapler.java:160)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
            at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
            at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
            at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
            at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
            at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
            at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
            at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
            at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
            at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
            at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
            at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.NullPointerException
            at java.io.File.<init>(Unknown Source)
            at hudson.lifecycle.WindowsInstallerLink.doDoInstall(WindowsInstallerLink.java:111)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:282)
            at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:149)
            at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:88)
            at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:102)
            at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:562)
            ... 29 more
    
    
    Can you please guide me as how to fix this and allow me to run Hudson as a service.
    
    Thanks in advance.
  16. Mar 06, 2011

    CWK says:

    I used a hudson with tomcat at Unix environment for deployin...

    I used a hudson with tomcat at Unix environment for deploying web resources.

    Now, I need to deploy another resources to another folder of a different account.

    So, I installed a new tomcat and tried to deploy a new hudson.war.

    I started up a new tomcat, but tomcat stopped at state of "Deploying web application archive hudson.war".

    "HUDSON_HOME" I defined was created, but folders and files which are generated at "HUDSON_HOME" weren't founded.

    I stopped a old tomcat and tryed again, but the result was same.

    Is deploying two hudson.war in one server impossible for?

    Do I lost any check points?

    Please help me deploy two hudson.


  17. Jul 11, 2011

    david20111 says:

    Justice and power must be brought together, so that whatever is just may be powe...

    Justice and power must be brought together, so that whatever is just may be powerful, and whatever is powerful may be just. Halloween

  18. Dec 05

    Ankush Aggarwal says:

    Hi All, I am generating checkstyle and pmd for my java code and its working fin...

    Hi All,

    I am generating checkstyle and pmd for my java code and its working fine. When i checkstyle,pmd and static code analysis plugin i am getting java heap space error during code analysis plugin activity. could you please help me how to fix this problem. system has enough memory.

    Thanks,

    Ankush