Grid computation: broken pipe error

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

Grid computation: broken pipe error

Tapas
Hi.
 
I'm using jgap 3.4.4. I set up some code to compute my fitness values on a
grid. It is almost identical to that from examples/grid/fitnessDistributed. The problem is to generate helloworld.
My sample chromosome is an array of StringGene(but each string having single character)

The server, client & two workers are on the same machine. 

 What happens on runing client
I got an java.net.SocketException, below is the output on running console
.
.
.
101  2013-11-08 16:20:35,179 [Thread-0] WARN   Client starts sending work requests
Splitting request strategy
106  2013-11-08 16:20:35,184 [Thread-0] WARN   Sending work request 0
146  2013-11-08 16:20:35,224 [Thread-0] WARN   Sending work request 1
149  2013-11-08 16:20:35,227 [Thread-0] WARN   Sending work request 2
java.net.SocketException: Broken pipe
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
    at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1870)
    at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1779)
    at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1283)
    at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1228)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1424)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
    at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1570)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:350)
    at org.homedns.dade.jcgrid.util.GridMessageFlatChannel.send(GridMessageFlatChannel.java:62)
    at org.homedns.dade.jcgrid.client.GridClient.send(GridClient.java:55)
    at org.jgap.distr.grid.JGAPClient.sendWorkRequests(JGAPClient.java:132)
    at org.jgap.distr.grid.JGAPClient.evolve(JGAPClient.java:183)
    at org.jgap.distr.grid.JGAPClient.run(JGAPClient.java:111)
155  2013-11-08 16:20:35,233 [Thread-0] ERROR  Error catched on client side: Error while doing the work
java.net.SocketException: Broken pipe
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
    at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1870)
    at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1779)
    at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1283)
    at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1228)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1424)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
    at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1570)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:350)
    at org.homedns.dade.jcgrid.util.GridMessageFlatChannel.send(GridMessageFlatChannel.java:62)
    at org.homedns.dade.jcgrid.client.GridClient.send(GridClient.java:55)
    at org.jgap.distr.grid.JGAPClient.sendWorkRequests(JGAPClient.java:132)
    at org.jgap.distr.grid.JGAPClient.evolve(JGAPClient.java:183)
    at org.jgap.distr.grid.JGAPClient.run(JGAPClient.java:111)

Kindly help me. Thanks
Tapas

-------------------------------------------------------------------------------------------------------------------------------
This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
jgap-announce mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jgap-announce
Reply | Threaded
Open this post in threaded view
|

Re: Grid computation: broken pipe error

Tapas
Problem solved by setting classpath. I was specifying class path of my code in Client only. It had to be specified for Server & Worker also.
 
Thanks

On November 8, 2013 at 4:39 PM Tapas <[hidden email]> wrote:
Hi.
 
I'm using jgap 3.4.4. I set up some code to compute my fitness values on a
grid. It is almost identical to that from examples/grid/fitnessDistributed. The problem is to generate helloworld.
My sample chromosome is an array of StringGene(but each string having single character)

The server, client & two workers are on the same machine. 

 What happens on runing client
I got an java.net.SocketException, below is the output on running console
.
.
.
101  2013-11-08 16:20:35,179 [Thread-0] WARN   Client starts sending work requests
Splitting request strategy
106  2013-11-08 16:20:35,184 [Thread-0] WARN   Sending work request 0
146  2013-11-08 16:20:35,224 [Thread-0] WARN   Sending work request 1
149  2013-11-08 16:20:35,227 [Thread-0] WARN   Sending work request 2
java.net.SocketException: Broken pipe
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
    at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1870)
    at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1779)
    at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1283)
    at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1228)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1424)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
    at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1570)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:350)
    at org.homedns.dade.jcgrid.util.GridMessageFlatChannel.send(GridMessageFlatChannel.java:62)
    at org.homedns.dade.jcgrid.client.GridClient.send(GridClient.java:55)
    at org.jgap.distr.grid.JGAPClient.sendWorkRequests(JGAPClient.java:132)
    at org.jgap.distr.grid.JGAPClient.evolve(JGAPClient.java:183)
    at org.jgap.distr.grid.JGAPClient.run(JGAPClient.java:111)
155  2013-11-08 16:20:35,233 [Thread-0] ERROR  Error catched on client side: Error while doing the work
java.net.SocketException: Broken pipe
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
    at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1870)
    at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1779)
    at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1283)
    at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1228)
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1424)
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
    at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1570)
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:350)
    at org.homedns.dade.jcgrid.util.GridMessageFlatChannel.send(GridMessageFlatChannel.java:62)
    at org.homedns.dade.jcgrid.client.GridClient.send(GridClient.java:55)
    at org.jgap.distr.grid.JGAPClient.sendWorkRequests(JGAPClient.java:132)
    at org.jgap.distr.grid.JGAPClient.evolve(JGAPClient.java:183)
    at org.jgap.distr.grid.JGAPClient.run(JGAPClient.java:111)

Kindly help me. Thanks
Tapas

 

-------------------------------------------------------------------------------------------------------------------------------
This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
jgap-announce mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jgap-announce