Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

java.net.SocketException

Posted on 2003-11-16
7
696 Views
Last Modified: 2013-12-24
I have a CFMX page that is using CFCONTENT to feed the user a PDF document.  code is the following:

<CFHEADER NAME="content-disposition" VALUE="filename=#filename#">
<CFCONTENT TYPE="application/pdf" FILE="#absFilePath#">

My error log (using <CFERROR> in the Application.cfm) is reporting the following error sometimes:  

"The cause of this output exception was that: java.net.SocketException: Connection reset by peer: socket write error. "

I can duplicate the error by cancelling the download before it completes.  Also, everything I've seen on the Internet indicates that this is caused by the user cancelling the download.  However, I am getting the error more than I think I should.

I was wondering if anyone has encountered this before and if so what caused it and what can be done about it.  Is it nothing and I shouldn't worry, or is it something that I can remedy?

Thanks,

Justin
0
Comment
Question by:newstandard
  • 3
  • 3
7 Comments
 
LVL 11

Accepted Solution

by:
hart earned 150 total points
ID: 9761565
i think either the user is cancelling the operation or the internet connection must have got reset while downloading.

what is the size of the pdf file. is it very big???

if yes then u could ask users to use softwares like getright to download the files because even if the connections gets reset or some other thing happens, the users can always re intiliaze the download from where ever it got stopped..

this is just a suggestion not a solution :-)
may be someone else could give u a better solution :-)


Regards
Hart
0
 

Author Comment

by:newstandard
ID: 9761567
hmmm...the files aren't that big...i think all of them are less than a meg...

what would cause the connection to be reset as you say?  our ISP or theirs?  any way of telling?
0
 
LVL 17

Assisted Solution

by:anandkp
anandkp earned 100 total points
ID: 9761588
I dont think u need to bother abt it - the users may cancel the download on purpose or they may lose the connection inb/w ... so theres no real way of avoiding this.

the log files just gives u a indication of what has happened & its nothing u need to worry abt !
0
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 

Author Comment

by:newstandard
ID: 9761590
thx
0
 
LVL 11

Expert Comment

by:hart
ID: 9778980
???
0
 
LVL 11

Expert Comment

by:hart
ID: 9778981
???
0
 

Author Comment

by:newstandard
ID: 9779652
i guess i won't worry about it then.  it just seems like we are getting an awful lot of these errors.  if anyone in the future has a similar problem and sees this post please send me an email to justin@coffeegeek.net to let me know what you discover, if anything.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question