Git plugin breaks often

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

Git plugin breaks often

Nick-7
Often when a hudson reload is triggered, the hudson git plugin does
not initialize.  In the logs I see a "java.lang.NullPointerException",
but I'm not sure why it's happening.  Sometimes it will start working
again if I do a full restart of tomcat, however this is not always the
case.  Also sometimes it will start working if I reinstall the git
plugin via the web interface.  I can't seem to get any consistent way
to break it or fix it, although it does happen relatively often.

Here are some of the errors from tomcat.  Any ideas how to fix?  I'm
using the hudson version 1.368, but I've also had the problem with
1.367 and 1.366.  The tomcat version is 6.0.26 and it uses sun jdk
version 1.6.0_20.  The tomcat install is also chrooted for security
reasons.

Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onTaskFailed
SEVERE: Failed Initializing plugin git
java.lang.NullPointerException
  at hudson.plugins.git.GitTool.onLoaded(GitTool.java:73)
  at hudson.plugins.git.PluginImpl.postInitialize(PluginImpl.java:16)
  at hudson.PluginManager$2$1$2.run(PluginManager.java:284)
  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:678)
  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)
Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onAttained
INFO: Prepared all plugins
Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onAttained
INFO: Started all plugins
Jul 27, 2010 4:15:32 PM hudson.util.RobustReflectionConverter doUnmarshal
WARNING: Skipping a non-existent type
com.thoughtworks.xstream.mapper.CannotResolveClassException:
hudson.plugins.git.GitSCM : hudson.plugins.git.GitSCM

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

Reply | Threaded
Open this post in threaded view
|

Re: Git plugin breaks often

Andrew Bayer
Do you have a Git installation configured in your Hudson global configuration?

A.

On Tue, Jul 27, 2010 at 4:28 PM, Nick <[hidden email]> wrote:
Often when a hudson reload is triggered, the hudson git plugin does
not initialize.  In the logs I see a "java.lang.NullPointerException",
but I'm not sure why it's happening.  Sometimes it will start working
again if I do a full restart of tomcat, however this is not always the
case.  Also sometimes it will start working if I reinstall the git
plugin via the web interface.  I can't seem to get any consistent way
to break it or fix it, although it does happen relatively often.

Here are some of the errors from tomcat.  Any ideas how to fix?  I'm
using the hudson version 1.368, but I've also had the problem with
1.367 and 1.366.  The tomcat version is 6.0.26 and it uses sun jdk
version 1.6.0_20.  The tomcat install is also chrooted for security
reasons.

Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onTaskFailed
SEVERE: Failed Initializing plugin git
java.lang.NullPointerException
 at hudson.plugins.git.GitTool.onLoaded(GitTool.java:73)
 at hudson.plugins.git.PluginImpl.postInitialize(PluginImpl.java:16)
 at hudson.PluginManager$2$1$2.run(PluginManager.java:284)
 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:678)
 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)
Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onAttained
INFO: Prepared all plugins
Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onAttained
INFO: Started all plugins
Jul 27, 2010 4:15:32 PM hudson.util.RobustReflectionConverter doUnmarshal
WARNING: Skipping a non-existent type
com.thoughtworks.xstream.mapper.CannotResolveClassException:
hudson.plugins.git.GitSCM : hudson.plugins.git.GitSCM

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


Reply | Threaded
Open this post in threaded view
|

Re: Git plugin breaks often

Nick-7
Yes.  /usr/bin/git is on the master and all slaves.  In the global
config it was set to just "git" which should be fine as it is in the
path, and of course it does often work.  I tried using /usr/bin/git
just for the hell of it, but the problem still appears about 50% of
the time after a reload.

On Tue, Jul 27, 2010 at 5:02 PM, Andrew Bayer <[hidden email]> wrote:

> Do you have a Git installation configured in your Hudson global
> configuration?
> A.
>
> On Tue, Jul 27, 2010 at 4:28 PM, Nick <[hidden email]> wrote:
>>
>> Often when a hudson reload is triggered, the hudson git plugin does
>> not initialize.  In the logs I see a "java.lang.NullPointerException",
>> but I'm not sure why it's happening.  Sometimes it will start working
>> again if I do a full restart of tomcat, however this is not always the
>> case.  Also sometimes it will start working if I reinstall the git
>> plugin via the web interface.  I can't seem to get any consistent way
>> to break it or fix it, although it does happen relatively often.
>>
>> Here are some of the errors from tomcat.  Any ideas how to fix?  I'm
>> using the hudson version 1.368, but I've also had the problem with
>> 1.367 and 1.366.  The tomcat version is 6.0.26 and it uses sun jdk
>> version 1.6.0_20.  The tomcat install is also chrooted for security
>> reasons.
>>
>> Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onTaskFailed
>> SEVERE: Failed Initializing plugin git
>> java.lang.NullPointerException
>>  at hudson.plugins.git.GitTool.onLoaded(GitTool.java:73)
>>  at hudson.plugins.git.PluginImpl.postInitialize(PluginImpl.java:16)
>>  at hudson.PluginManager$2$1$2.run(PluginManager.java:284)
>>  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:678)
>>  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)
>> Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onAttained
>> INFO: Prepared all plugins
>> Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onAttained
>> INFO: Started all plugins
>> Jul 27, 2010 4:15:32 PM hudson.util.RobustReflectionConverter doUnmarshal
>> WARNING: Skipping a non-existent type
>> com.thoughtworks.xstream.mapper.CannotResolveClassException:
>> hudson.plugins.git.GitSCM : hudson.plugins.git.GitSCM
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>

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

Reply | Threaded
Open this post in threaded view
|

Re: Git plugin breaks often

Andrew Bayer
Hrm. Could you open a bug for this?

A.

On Tue, Jul 27, 2010 at 5:37 PM, Nick <[hidden email]> wrote:
Yes.  /usr/bin/git is on the master and all slaves.  In the global
config it was set to just "git" which should be fine as it is in the
path, and of course it does often work.  I tried using /usr/bin/git
just for the hell of it, but the problem still appears about 50% of
the time after a reload.

On Tue, Jul 27, 2010 at 5:02 PM, Andrew Bayer <[hidden email]> wrote:
> Do you have a Git installation configured in your Hudson global
> configuration?
> A.
>
> On Tue, Jul 27, 2010 at 4:28 PM, Nick <[hidden email]> wrote:
>>
>> Often when a hudson reload is triggered, the hudson git plugin does
>> not initialize.  In the logs I see a "java.lang.NullPointerException",
>> but I'm not sure why it's happening.  Sometimes it will start working
>> again if I do a full restart of tomcat, however this is not always the
>> case.  Also sometimes it will start working if I reinstall the git
>> plugin via the web interface.  I can't seem to get any consistent way
>> to break it or fix it, although it does happen relatively often.
>>
>> Here are some of the errors from tomcat.  Any ideas how to fix?  I'm
>> using the hudson version 1.368, but I've also had the problem with
>> 1.367 and 1.366.  The tomcat version is 6.0.26 and it uses sun jdk
>> version 1.6.0_20.  The tomcat install is also chrooted for security
>> reasons.
>>
>> Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onTaskFailed
>> SEVERE: Failed Initializing plugin git
>> java.lang.NullPointerException
>>  at hudson.plugins.git.GitTool.onLoaded(GitTool.java:73)
>>  at hudson.plugins.git.PluginImpl.postInitialize(PluginImpl.java:16)
>>  at hudson.PluginManager$2$1$2.run(PluginManager.java:284)
>>  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:678)
>>  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)
>> Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onAttained
>> INFO: Prepared all plugins
>> Jul 27, 2010 4:15:32 PM hudson.model.Hudson$4 onAttained
>> INFO: Started all plugins
>> Jul 27, 2010 4:15:32 PM hudson.util.RobustReflectionConverter doUnmarshal
>> WARNING: Skipping a non-existent type
>> com.thoughtworks.xstream.mapper.CannotResolveClassException:
>> hudson.plugins.git.GitSCM : hudson.plugins.git.GitSCM
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
>

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