sloccount plugin and distributed builds -> exception

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

sloccount plugin and distributed builds -> exception

tje
Hi,

is the sloccount plugin supposed to work with distributed builds?
Hudson 1.294 and sloccount plugin 1.2

I setup an ant target to call sloccount on our HPUX and Linux Hudson
slaves (this works fine, the sloccount.sc file is created successfully),
but in both cases, the exception below is thrown and no results are
published:

...
BUILD SUCCESSFUL
Total time: 1 minute 5 seconds
Recording fingerprints
hudson.util.IOException2: remote file operation failed
                 at hudson.FilePath.act(FilePath.java:548)
                 at
hudson.plugins.sloccount.SloccountPublisher.perform(SloccountPublisher.java:61)
                 at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:372)
                 at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:360)
                 at hudson.model.Build$RunnerImpl.post2(Build.java:183)
                 at
hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)
                 at hudson.model.Run.run(Run.java:919)
                 at hudson.model.Build.run(Build.java:112)
                 at
hudson.model.ResourceController.execute(ResourceController.java:93)
                 at hudson.model.Executor.run(Executor.java:119)
Caused by: java.io.IOException: Unable to serialize
hudson.FilePath$FileCallableWrapper@5ca9cb
                 at
hudson.remoting.UserRequest.serialize(UserRequest.java:134)
                 at hudson.remoting.UserRequest.<init>(UserRequest.java:60)
                 at hudson.remoting.Channel.call(Channel.java:480)
                 at hudson.FilePath.act(FilePath.java:545)
                 ... 9 more
Caused by: java.io.NotSerializableException: java.io.PrintStream
                 at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
                 at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
                 at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
                 at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
                 at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
                 at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
                 at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
                 at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
                 at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
                 at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
                 at
hudson.remoting.UserRequest._serialize(UserRequest.java:123)
                 at
hudson.remoting.UserRequest.serialize(UserRequest.java:132)
                 ... 12 more


thanks for any hints,
    Thomas


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

Reply | Threaded
Open this post in threaded view
|

Re: sloccount plugin and distributed builds -> exception

npiguet@romandie.com
Hello,

I must admit that I have never tested the SLOCCount plugin with distributed
builds. That's simply because I never really needed it myself. I'll try to see
if I can find time to try and make it work.

If you have time yourself, you can just download the source of the plugin and
send me whatever modification you made, and I'll publish version 1.3.

Nicolas

On Monday 30 March 2009 15:45:50 Thomas Jenny wrote:

> Hi,
>
> is the sloccount plugin supposed to work with distributed builds?
> Hudson 1.294 and sloccount plugin 1.2
>
> I setup an ant target to call sloccount on our HPUX and Linux Hudson
> slaves (this works fine, the sloccount.sc file is created successfully),
> but in both cases, the exception below is thrown and no results are
> published:
>
> ...
> BUILD SUCCESSFUL
> Total time: 1 minute 5 seconds
> Recording fingerprints
> hudson.util.IOException2: remote file operation failed
>                  at hudson.FilePath.act(FilePath.java:548)
>                  at
> hudson.plugins.sloccount.SloccountPublisher.perform(SloccountPublisher.java
>:61) at
> hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild
>.java:372) at
> hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild
>.java:360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at
> hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)
>                  at hudson.model.Run.run(Run.java:919)
>                  at hudson.model.Build.run(Build.java:112)
>                  at
> hudson.model.ResourceController.execute(ResourceController.java:93)
>                  at hudson.model.Executor.run(Executor.java:119)
> Caused by: java.io.IOException: Unable to serialize
> hudson.FilePath$FileCallableWrapper@5ca9cb
>                  at
> hudson.remoting.UserRequest.serialize(UserRequest.java:134)
>                  at hudson.remoting.UserRequest.<init>(UserRequest.java:60)
>                  at hudson.remoting.Channel.call(Channel.java:480)
>                  at hudson.FilePath.act(FilePath.java:545)
>                  ... 9 more
> Caused by: java.io.NotSerializableException: java.io.PrintStream
>                  at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
>                  at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>                  at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>                  at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392
>) at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>                  at
> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>                  at
> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>                  at
> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392
>) at
> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>                  at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>                  at
> hudson.remoting.UserRequest._serialize(UserRequest.java:123)
>                  at
> hudson.remoting.UserRequest.serialize(UserRequest.java:132)
>                  ... 12 more
>
>
> thanks for any hints,
>     Thomas
>
>
> ---------------------------------------------------------------------
> 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]

tje
Reply | Threaded
Open this post in threaded view
|

Re: sloccount plugin and distributed builds -> exception

tje
Hi Nicolas,

please feel free to use the attached modifications.
Beware, I'm not an experienced Hudson developer at all; all I did was:
- add "implements Serializable" to a couple of classes
- additionally, mark SloccountParser. member "PrintStream logger" as transient
- recompile, deploy on our distributed hudson (with master on linux and slaves on linux, windows, HPUX)

With the attached modifications it seems to work for me.

Thanks and regards,
  Thomas



On 30.03.2009 23:45, Nicolas Piguet wrote:
Hello,

I must admit that I have never tested the SLOCCount plugin with distributed 
builds. That's simply because I never really needed it myself. I'll try to see 
if I can find time to try and make it work.

If you have time yourself, you can just download the source of the plugin and 
send me whatever modification you made, and I'll publish version 1.3.

Nicolas

On Monday 30 March 2009 15:45:50 Thomas Jenny wrote:
  
Hi,

is the sloccount plugin supposed to work with distributed builds?
Hudson 1.294 and sloccount plugin 1.2

I setup an ant target to call sloccount on our HPUX and Linux Hudson
slaves (this works fine, the sloccount.sc file is created successfully),
but in both cases, the exception below is thrown and no results are
published:

...
BUILD SUCCESSFUL
Total time: 1 minute 5 seconds
Recording fingerprints
hudson.util.IOException2: remote file operation failed
                 at hudson.FilePath.act(FilePath.java:548)
                 at
hudson.plugins.sloccount.SloccountPublisher.perform(SloccountPublisher.java
:61) at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild
.java:372) at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild
.java:360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at
hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)
                 at hudson.model.Run.run(Run.java:919)
                 at hudson.model.Build.run(Build.java:112)
                 at
hudson.model.ResourceController.execute(ResourceController.java:93)
                 at hudson.model.Executor.run(Executor.java:119)
Caused by: java.io.IOException: Unable to serialize
hudson.FilePath$FileCallableWrapper@5ca9cb
                 at
hudson.remoting.UserRequest.serialize(UserRequest.java:134)
                 at hudson.remoting.UserRequest.<init>(UserRequest.java:60)
                 at hudson.remoting.Channel.call(Channel.java:480)
                 at hudson.FilePath.act(FilePath.java:545)
                 ... 9 more
Caused by: java.io.NotSerializableException: java.io.PrintStream
                 at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
                 at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
                 at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
                 at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392
) at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
                 at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
                 at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
                 at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392
) at
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
                 at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
                 at
hudson.remoting.UserRequest._serialize(UserRequest.java:123)
                 at
hudson.remoting.UserRequest.serialize(UserRequest.java:132)
                 ... 12 more


thanks for any hints,
    Thomas


---------------------------------------------------------------------
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]


  

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

sloccount_distributed.patch (10K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: sloccount plugin and distributed builds -> exception

Kohsuke Kawaguchi
Administrator
Thomas Jenny wrote:

> Hi Nicolas,
>
> please feel free to use the attached modifications.
> Beware, I'm not an experienced Hudson developer at all; all I did was:
> - add "implements Serializable" to a couple of classes
> - additionally, mark SloccountParser. member "PrintStream logger" as
> transient
> - recompile, deploy on our distributed hudson (with master on linux and
> slaves on linux, windows, HPUX)
>
> With the attached modifications it seems to work for me.
And if you'd be interested in becoming a Hudson committer, let me know
your java.net ID so that we can add you.


> Thanks and regards,
>    Thomas
>
>
>
> On 30.03.2009 23:45, Nicolas Piguet wrote:
>> Hello,
>>
>> I must admit that I have never tested the SLOCCount plugin with distributed
>> builds. That's simply because I never really needed it myself. I'll try to see
>> if I can find time to try and make it work.
>>
>> If you have time yourself, you can just download the source of the plugin and
>> send me whatever modification you made, and I'll publish version 1.3.
>>
>> Nicolas
>>
>> On Monday 30 March 2009 15:45:50 Thomas Jenny wrote:
>>    
>>> Hi,
>>>
>>> is the sloccount plugin supposed to work with distributed builds?
>>> Hudson 1.294 and sloccount plugin 1.2
>>>
>>> I setup an ant target to call sloccount on our HPUX and Linux Hudson
>>> slaves (this works fine, the sloccount.sc file is created successfully),
>>> but in both cases, the exception below is thrown and no results are
>>> published:
>>>
>>> ...
>>> BUILD SUCCESSFUL
>>> Total time: 1 minute 5 seconds
>>> Recording fingerprints
>>> hudson.util.IOException2: remote file operation failed
>>>                   at hudson.FilePath.act(FilePath.java:548)
>>>                   at
>>> hudson.plugins.sloccount.SloccountPublisher.perform(SloccountPublisher.java
>>> :61) at
>>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild
>>> .java:372) at
>>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild
>>> .java:360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at
>>> hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)
>>>                   at hudson.model.Run.run(Run.java:919)
>>>                   at hudson.model.Build.run(Build.java:112)
>>>                   at
>>> hudson.model.ResourceController.execute(ResourceController.java:93)
>>>                   at hudson.model.Executor.run(Executor.java:119)
>>> Caused by: java.io.IOException: Unable to serialize
>>> hudson.FilePath$FileCallableWrapper@5ca9cb
>>>                   at
>>> hudson.remoting.UserRequest.serialize(UserRequest.java:134)
>>>                   at hudson.remoting.UserRequest.<init>(UserRequest.java:60)
>>>                   at hudson.remoting.Channel.call(Channel.java:480)
>>>                   at hudson.FilePath.act(FilePath.java:545)
>>>                   ... 9 more
>>> Caused by: java.io.NotSerializableException: java.io.PrintStream
>>>                   at
>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
>>>                   at
>>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>>>                   at
>>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>>>                   at
>>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392
>>> ) at
>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>>>                   at
>>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>>>                   at
>>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>>>                   at
>>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392
>>> ) at
>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>>>                   at
>>> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>>>                   at
>>> hudson.remoting.UserRequest._serialize(UserRequest.java:123)
>>>                   at
>>> hudson.remoting.UserRequest.serialize(UserRequest.java:132)
>>>                   ... 12 more
>>>
>>>
>>> thanks for any hints,
>>>      Thomas
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>>
>>
>>    
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]

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

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

Re: sloccount plugin and distributed builds -> exception

npiguet@romandie.com
In reply to this post by tje
Hello,

That's great, thanks a lot. I'll commit that as soon as possible and I'll make
your changes into version 1.3. If you feel like doing the release yourself,
then please go ahead and ask for commit rights on the list. Otherwise, I'll
just do it myself.

Nicolas

On Thursday 02 April 2009 19:16:54 Thomas Jenny wrote:

> Hi Nicolas,
>
> please feel free to use the attached modifications.
> Beware, I'm not an experienced Hudson developer at all; all I did was:
> - add "implements Serializable" to a couple of classes
> - additionally, mark SloccountParser. member "PrintStream logger" as
> transient
> - recompile, deploy on our distributed hudson (with master on linux and
> slaves on linux, windows, HPUX)
>
> With the attached modifications it seems to work for me.
>
> Thanks and regards,
>    Thomas
>

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

tje
Reply | Threaded
Open this post in threaded view
|

Re: sloccount plugin and distributed builds -> exception

tje
In reply to this post by Kohsuke Kawaguchi
Hi Kohsuke,

ok, sounds good: my java.net id is tjenny.

Thanks
   Thomas


On 03.04.2009 01:54, Kohsuke Kawaguchi wrote:

> Thomas Jenny wrote:
>> Hi Nicolas,
>>
>> please feel free to use the attached modifications.
>> Beware, I'm not an experienced Hudson developer at all; all I did was:
>> - add "implements Serializable" to a couple of classes
>> - additionally, mark SloccountParser. member "PrintStream logger" as
>> transient
>> - recompile, deploy on our distributed hudson (with master on linux
>> and slaves on linux, windows, HPUX)
>>
>> With the attached modifications it seems to work for me.
>
> And if you'd be interested in becoming a Hudson committer, let me know
> your java.net ID so that we can add you.
>
>
>> Thanks and regards,
>>    Thomas
>>
>>
>>
>> On 30.03.2009 23:45, Nicolas Piguet wrote:
>>> Hello,
>>>
>>> I must admit that I have never tested the SLOCCount plugin with
>>> distributed
>>> builds. That's simply because I never really needed it myself. I'll
>>> try to see
>>> if I can find time to try and make it work.
>>>
>>> If you have time yourself, you can just download the source of the
>>> plugin and
>>> send me whatever modification you made, and I'll publish version 1.3.
>>>
>>> Nicolas
>>>
>>> On Monday 30 March 2009 15:45:50 Thomas Jenny wrote:
>>>> Hi,
>>>>
>>>> is the sloccount plugin supposed to work with distributed builds?
>>>> Hudson 1.294 and sloccount plugin 1.2
>>>>
>>>> I setup an ant target to call sloccount on our HPUX and Linux Hudson
>>>> slaves (this works fine, the sloccount.sc file is created
>>>> successfully),
>>>> but in both cases, the exception below is thrown and no results are
>>>> published:
>>>>
>>>> ...
>>>> BUILD SUCCESSFUL
>>>> Total time: 1 minute 5 seconds
>>>> Recording fingerprints
>>>> hudson.util.IOException2: remote file operation failed
>>>>                   at hudson.FilePath.act(FilePath.java:548)
>>>>                   at
>>>> hudson.plugins.sloccount.SloccountPublisher.perform(SloccountPublisher.java
>>>>
>>>> :61) at
>>>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild
>>>>
>>>> .java:372) at
>>>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild
>>>>
>>>> .java:360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at
>>>> hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)
>>>>                   at hudson.model.Run.run(Run.java:919)
>>>>                   at hudson.model.Build.run(Build.java:112)
>>>>                   at
>>>> hudson.model.ResourceController.execute(ResourceController.java:93)
>>>>                   at hudson.model.Executor.run(Executor.java:119)
>>>> Caused by: java.io.IOException: Unable to serialize
>>>> hudson.FilePath$FileCallableWrapper@5ca9cb
>>>>                   at
>>>> hudson.remoting.UserRequest.serialize(UserRequest.java:134)
>>>>                   at
>>>> hudson.remoting.UserRequest.<init>(UserRequest.java:60)
>>>>                   at hudson.remoting.Channel.call(Channel.java:480)
>>>>                   at hudson.FilePath.act(FilePath.java:545)
>>>>                   ... 9 more
>>>> Caused by: java.io.NotSerializableException: java.io.PrintStream
>>>>                   at
>>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
>>>>                   at
>>>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>>>>
>>>>                   at
>>>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>>>>
>>>>                   at
>>>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392
>>>>
>>>> ) at
>>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>>>>                   at
>>>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>>>>
>>>>                   at
>>>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>>>>
>>>>                   at
>>>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392
>>>>
>>>> ) at
>>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>>>>                   at
>>>> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>>>>                   at
>>>> hudson.remoting.UserRequest._serialize(UserRequest.java:123)
>>>>                   at
>>>> hudson.remoting.UserRequest.serialize(UserRequest.java:132)
>>>>                   ... 12 more
>>>>
>>>>
>>>> thanks for any hints,
>>>>      Thomas
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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]
>>>
>>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> 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: sloccount plugin and distributed builds -> exception

Kohsuke Kawaguchi
Administrator

My apologies for dropping the ball. I just added you as a committer.

I'll apply the patch now, too.

Thomas Jenny wrote:

> Hi Kohsuke,
>
> ok, sounds good: my java.net id is tjenny.
>
> Thanks
>    Thomas
>
>
> On 03.04.2009 01:54, Kohsuke Kawaguchi wrote:
>> Thomas Jenny wrote:
>>> Hi Nicolas,
>>>
>>> please feel free to use the attached modifications.
>>> Beware, I'm not an experienced Hudson developer at all; all I did was:
>>> - add "implements Serializable" to a couple of classes
>>> - additionally, mark SloccountParser. member "PrintStream logger" as
>>> transient
>>> - recompile, deploy on our distributed hudson (with master on linux
>>> and slaves on linux, windows, HPUX)
>>>
>>> With the attached modifications it seems to work for me.
>>
>> And if you'd be interested in becoming a Hudson committer, let me know
>> your java.net ID so that we can add you.
>>
>>
>>> Thanks and regards,
>>>    Thomas
>>>
>>>
>>>
>>> On 30.03.2009 23:45, Nicolas Piguet wrote:
>>>> Hello,
>>>>
>>>> I must admit that I have never tested the SLOCCount plugin with
>>>> distributed
>>>> builds. That's simply because I never really needed it myself. I'll
>>>> try to see
>>>> if I can find time to try and make it work.
>>>>
>>>> If you have time yourself, you can just download the source of the
>>>> plugin and
>>>> send me whatever modification you made, and I'll publish version 1.3.
>>>>
>>>> Nicolas
>>>>
>>>> On Monday 30 March 2009 15:45:50 Thomas Jenny wrote:
>>>>> Hi,
>>>>>
>>>>> is the sloccount plugin supposed to work with distributed builds?
>>>>> Hudson 1.294 and sloccount plugin 1.2
>>>>>
>>>>> I setup an ant target to call sloccount on our HPUX and Linux Hudson
>>>>> slaves (this works fine, the sloccount.sc file is created
>>>>> successfully),
>>>>> but in both cases, the exception below is thrown and no results are
>>>>> published:
>>>>>
>>>>> ...
>>>>> BUILD SUCCESSFUL
>>>>> Total time: 1 minute 5 seconds
>>>>> Recording fingerprints
>>>>> hudson.util.IOException2: remote file operation failed
>>>>>                   at hudson.FilePath.act(FilePath.java:548)
>>>>>                   at
>>>>> hudson.plugins.sloccount.SloccountPublisher.perform(SloccountPublisher.java
>>>>>
>>>>> :61) at
>>>>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild
>>>>>
>>>>> .java:372) at
>>>>> hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild
>>>>>
>>>>> .java:360) at hudson.model.Build$RunnerImpl.post2(Build.java:183) at
>>>>> hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:345)
>>>>>                   at hudson.model.Run.run(Run.java:919)
>>>>>                   at hudson.model.Build.run(Build.java:112)
>>>>>                   at
>>>>> hudson.model.ResourceController.execute(ResourceController.java:93)
>>>>>                   at hudson.model.Executor.run(Executor.java:119)
>>>>> Caused by: java.io.IOException: Unable to serialize
>>>>> hudson.FilePath$FileCallableWrapper@5ca9cb
>>>>>                   at
>>>>> hudson.remoting.UserRequest.serialize(UserRequest.java:134)
>>>>>                   at
>>>>> hudson.remoting.UserRequest.<init>(UserRequest.java:60)
>>>>>                   at hudson.remoting.Channel.call(Channel.java:480)
>>>>>                   at hudson.FilePath.act(FilePath.java:545)
>>>>>                   ... 9 more
>>>>> Caused by: java.io.NotSerializableException: java.io.PrintStream
>>>>>                   at
>>>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
>>>>>                   at
>>>>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>>>>>
>>>>>                   at
>>>>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>>>>>
>>>>>                   at
>>>>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392
>>>>>
>>>>> ) at
>>>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>>>>>                   at
>>>>> java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
>>>>>
>>>>>                   at
>>>>> java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
>>>>>
>>>>>                   at
>>>>> java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392
>>>>>
>>>>> ) at
>>>>> java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
>>>>>                   at
>>>>> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
>>>>>                   at
>>>>> hudson.remoting.UserRequest._serialize(UserRequest.java:123)
>>>>>                   at
>>>>> hudson.remoting.UserRequest.serialize(UserRequest.java:132)
>>>>>                   ... 12 more
>>>>>
>>>>>
>>>>> thanks for any hints,
>>>>>      Thomas
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> 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]
>>>>
>>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>
>

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

smime.p7s (4K) Download Attachment