Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #24106 > unrolled thread
| Started by | Duncan Elliot <duncanfme@googlemail.com> |
|---|---|
| First post | 2013-05-17 06:42 -0700 |
| Last post | 2013-05-17 10:04 -0700 |
| Articles | 6 — 4 participants |
Back to article view | Back to comp.lang.java.programmer
Client/Server + oOut.writeObject(tDataToClient); ERROR Duncan Elliot <duncanfme@googlemail.com> - 2013-05-17 06:42 -0700
Re: Client/Server + oOut.writeObject(tDataToClient); ERROR markspace <markspace@nospam.nospam> - 2013-05-17 08:39 -0700
Re: Client/Server + oOut.writeObject(tDataToClient); ERROR Arne Vajhøj <arne@vajhoej.dk> - 2013-05-17 21:52 -0400
Re: Client/Server + oOut.writeObject(tDataToClient); ERROR Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-05-17 23:56 -0300
Re: Client/Server + oOut.writeObject(tDataToClient); ERROR Arne Vajhøj <arne@vajhoej.dk> - 2013-05-18 08:44 -0400
Re: Client/Server + oOut.writeObject(tDataToClient); ERROR Duncan Elliot <duncanfme@googlemail.com> - 2013-05-17 10:04 -0700
| From | Duncan Elliot <duncanfme@googlemail.com> |
|---|---|
| Date | 2013-05-17 06:42 -0700 |
| Subject | Client/Server + oOut.writeObject(tDataToClient); ERROR |
| Message-ID | <b6c9fe97-4b05-49ea-b547-3f22bbd376ff@googlegroups.com> |
Hi there, I am trying to implement the client / server example in this tutorial: http://en.wikibooks.org/wiki/Java_Programming/Client_Server It works when the server is not hosted on the same machine as the client. When both are on the same machine I get an error: java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) I suspect there is an additional step I need to take if I wanted to test it locally, any idea?? Thanks, Duncnan
[toc] | [next] | [standalone]
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Date | 2013-05-17 08:39 -0700 |
| Message-ID | <kn5ini$164$1@dont-email.me> |
| In reply to | #24106 |
On 5/17/2013 6:42 AM, Duncan Elliot wrote: > I suspect there is an additional step I need to take if I wanted to > test it locally, any idea?? Generally speaking, no. This sort of things works fine on my machine, I do it all the time. Check your local configuration, especially firewalls and virus software. Turn that stuff off for a quick check to see if it's interfering. BTW that tutorial you linked to looks a little dubious at best. Why not use the official one? <http://docs.oracle.com/javase/tutorial/networking/sockets/>
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2013-05-17 21:52 -0400 |
| Message-ID | <5196dee5$0$32105$14726298@news.sunsite.dk> |
| In reply to | #24109 |
On 5/17/2013 11:39 AM, markspace wrote: > BTW that tutorial you linked to looks a little dubious at best. Why not > use the official one? > > <http://docs.oracle.com/javase/tutorial/networking/sockets/> Good advice. That wikibooks example is pretty bad in many ways. Arne
[toc] | [prev] | [next] | [standalone]
| From | Arved Sandstrom <asandstrom2@eastlink.ca> |
|---|---|
| Date | 2013-05-17 23:56 -0300 |
| Message-ID | <b5Clt.1$KM4.0@newsfe25.iad> |
| In reply to | #24124 |
On 05/17/2013 10:52 PM, Arne Vajhøj wrote: > On 5/17/2013 11:39 AM, markspace wrote: >> BTW that tutorial you linked to looks a little dubious at best. Why not >> use the official one? >> >> <http://docs.oracle.com/javase/tutorial/networking/sockets/> > > Good advice. > > That wikibooks example is pretty bad in many ways. > > Arne > It's atrocious. I can sort of guess what programming languages and operating systems the author used for this problem in the past, but I'll wager he had less than 6 months of Java under his belt when he wrote that abortion. I started looking at the rest of the pages there for Java, and it's worrisome stuff. Part of the problem is, a lot of it - maybe all of it - is clearly written by a guy who doesn't have an excellent command of English. But why would you even want to waste your time? Better reference material and tutorials on all of this have existed for 10-15 years. AHS
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2013-05-18 08:44 -0400 |
| Message-ID | <519777b5$0$32116$14726298@news.sunsite.dk> |
| In reply to | #24125 |
On 5/17/2013 10:56 PM, Arved Sandstrom wrote: > On 05/17/2013 10:52 PM, Arne Vajhøj wrote: >> On 5/17/2013 11:39 AM, markspace wrote: >>> BTW that tutorial you linked to looks a little dubious at best. Why not >>> use the official one? >>> >>> <http://docs.oracle.com/javase/tutorial/networking/sockets/> >> >> Good advice. >> >> That wikibooks example is pretty bad in many ways. >> > It's atrocious. I can sort of guess what programming languages and > operating systems the author used for this problem in the past, You were also thinking Windows and C++? :-) > but I'll > wager he had less than 6 months of Java under his belt when he wrote > that abortion. > > I started looking at the rest of the pages there for Java, and it's > worrisome stuff. Part of the problem is, a lot of it - maybe all of it - > is clearly written by a guy who doesn't have an excellent command of > English. > > But why would you even want to waste your time? Better reference > material and tutorials on all of this have existed for 10-15 years. The good thing about the internet is that is that everybody can post what they want. The bad thing about internet is that everybody can post what they want. :-) Arne
[toc] | [prev] | [next] | [standalone]
| From | Duncan Elliot <duncanfme@googlemail.com> |
|---|---|
| Date | 2013-05-17 10:04 -0700 |
| Message-ID | <3a38e2cb-981d-4ecb-b285-2f10bdad029c@googlegroups.com> |
| In reply to | #24106 |
Thanks Mark - It is dubious, I cant get it to behave properly. I will give up on it. Cheers, Duncan
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web