Solved

java.net.SocketException

Posted on 2003-11-16
7
670 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 

Author Comment

by:newstandard
Comment Utility
thx
0
 
LVL 11

Expert Comment

by:hart
Comment Utility
???
0
 
LVL 11

Expert Comment

by:hart
Comment Utility
???
0
 

Author Comment

by:newstandard
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now