Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Java Development
- :
- java.net.SocketException: ConnectionReset
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
java.net.S ocketExcep tion: Connection Reset
[ Edited ]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-15-2003 05:10 PM - edited 12-15-2003 05:10 PM
OK- Howcome / WhatFor do I get a socket exception (randomly, apparently)?
My program will randomly stop with a stack trace such as:
faultString: java.net.SocketException: Connection reset
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.
at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA6
at com.sun.net.ssl.internal.ssl.InputRecord.read(Dash
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Dasho
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(Dasho
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHa
at org.apache.axis.components.net.JSSESocketFactory.c
at org.apache.axis.transport.http.HTTPSender.getSocke
at org.apache.axis.transport.http.HTTPSender.invoke(H
at org.apache.axis.strategies.InvocationStrategy.visi
at org.apache.axis.SimpleChain.doVisiting(SimpleChain
at org.apache.axis.SimpleChain.invoke(SimpleChain.jav
at org.apache.axis.client.AxisClient.invoke(AxisClien
at org.apache.axis.client.Call.invokeEngine(Call.java
at org.apache.axis.client.Call.invoke(Call.java:2553)
at org.apache.axis.client.Call.invoke(Call.java:2248)
at org.apache.axis.client.Call.invoke(Call.java:2171)
at org.apache.axis.client.Call.invoke(Call.java:1691)
at com.sforce.soap.enterprise.SoapBindingStub.update(
at Insert.runInsertDemo(Insert.java:342)
at Insert.runDemo(Insert.java:80)
at Insert.main(Insert.java:75)
It appears to be happening at any time; either at 80, or even over 1000 records, apparently always on an "insert" operation.
Anyone have any thoughts/ from similar experiences?
Thanks.
KC
Message Edited by kevincar on 12-15-2003 05:10 PM
Message Edited by kevincar on 12-15-2003 05:15 PM
Re: java.net.S ocketExcep tion: Connection Reset
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-23-2003 01:06 PM
>My program will randomly stop with a stack trace such as:
>
> faultString: java.net.SocketException: Connection reset
> faultActor:
> faultNode:
> faultDetail:
> {http://xml.apache.org/axis/}stackTrace: java.net.SocketException: Connection reset
> at java.net.SocketInputStream.read(SocketInputStream.
> at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA6
> ...
Hello all,
I have an update: I appear to have solved my problem by simply
logging back in to the salesforce server.
Has anyone else ran into this problem? Even though I'm
accessing salesforce's server thru a firewall, I don't
see how I can be the only one out there that has this
connection-reset issue.
Kevin
Re: java.net.S ocketExcep tion: Connection Reset
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-23-2003 02:13 PM
Hmm.. There were some issues with socket resets using the on Apache XML-RPC stuff (as those libs didn't leverage Java sockets correctly), but I was hopeful that the new Axis libs (I assume you are on Axis 1.1) had fixed that; personally, I've never seen the issue - can you provide more details? Is it only on long running batch operations that the problem occurs? Any idea how frequently its happening?
At a minimum we should be able to collectively develop some error handling code/pratices.
Re: java.net.S ocketExcep tion: Connection Reset
[ Edited ]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-05-2004 09:51 AM - edited 01-05-2004 09:51 AM
Hi adamg,
>Hmm.. There were some issues with socket resets using the
>on Apache XML-RPC stuff (as those libs didn't leverage
>Java sockets correctly), but I was hopeful that the new
>Axis libs (I assume you are on Axis 1.1) had fixed
>that; personally, I've never seen the issue - can you
>provide more details? Is it only on long running
>batch operations that the problem occurs? Any idea
>how frequently its happening?
Yes, am running Axis 1.1. and yes, I am basically always logged on; maybe there's a better way to do things, but I am updating the SalesForce database with current sales and personnel info on a daily basis; I have a local database of approximately 20,000 people (each represents a SalesForce Account/Contact record) that is constantly being updated from about sixty desktops department-wide, and my java app is always logged on; basically huffing and puffing keeping up with the updates that are occurring on a real-time basis.
>At a minimum we should be able to collectively
>develop some error handling code/pratices.
The immediate solution that seems to work fine for me is to immediately call my login subroutine when a Socket ServiceException occurs. If there is a fix/patch to the Axis libraries, I would certaily welcome it.
Kevin
Message Edited by kevincar on 01-05-2004 10:51 AM

