• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Connection reset by peer: socket write error?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been getting some errors lately saying:

java.net.SocketException: Connection reset by peer: socket write error

Now I understand this happens when the connection object is alive but the underlying connection has been disconnected in some way. I'm not exactly sure how you handle connections. Is there a connection pool? Is there a way for me to enable a test ping command so it will check if the connection is still good and if not open a new one?
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't there a "ClientAbortException" message with this exception?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With some of them, yes.
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, these exceptions occur when the page is loading and the user clicks stop or enters in some another link before the page gets complete loaded. Is not a bug or something, and you can ignore it.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, thanks, that clears up those. But I've had the error in other cases as well.


[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which mysql version are you using? Have you changed the connector/j driver which comes with JForum to some another version, or are you using the default?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I went for a while without getting this problem, but it happened again today.

MySQL version 4.1.10
I don't think I changed the connector, it's version 3.0.15.
[originally posted on jforum.net by mattcoz]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's the driver version which is causing problems to you. Mysql 4.1+ should use the 3.1.x series driver version. Latest version of JForum comes with version 3.1.4-beta.

Note that, although it has "beta" in the name, is the driver which best work. I have tested version 3.1.6 and 3.1.7 and it does not work well.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I'll give that a try.
[originally posted on jforum.net by mattcoz]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!