Link to home
Start Free TrialLog in
Avatar of newstandard
newstandard

asked on

java.net.SocketException

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
ASKER CERTIFIED SOLUTION
Avatar of hart
hart
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of newstandard
newstandard

ASKER

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?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thx
???
???
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.