CFMX 6.1 throwng lots of java.net.SocketException: Connection reset

2004-12-28 Thread Dov Katz
Any idea why these are sprouting up all over my mx6.1(windows) logs? Users get 
the standard JRun disconnect/protocol error page.

Any help is appreciated...


12/28 21:19:24 error Error while reading header HTTP-REFERER
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:66).



12/28 21:19:24 error Error while reading header CODESNIPPET
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream


12/28 21:19:23 error Error while reading header S_UNABLE
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)


12/28 21:19:22 error Error in getRealPathFromConn
java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.j


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188913
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFMX 6.1 throwng lots of java.net.SocketException: Connection reset

2004-12-28 Thread Sean Corfield
On Tue, 28 Dec 2004 21:52:26 -0400, Dov Katz [EMAIL PROTECTED] wrote:
 Any idea why these are sprouting up all over my mx6.1(windows) logs? Users 
 get the standard JRun disconnect/protocol error page.

I'll bet you've got isDefined(someUnqualifiedVariable) in your code
- if the variable isn't defined, CF looks up the list of scopes (per
the docs) and will eventually attempt to look in CGI scope if it
hasn't found the variable elsewhere. If the connection between the
browser and the web server has closed (for a variety of reasons) then
the JRun connector will fail to read the variable from the header.

You're much safer using
structKeyExists(someScope,someUnqualifiedVariable) which is not only
much faster but will avoid the (harmless) errors you are seeing, e.g.,

cfif structKeyExists(variables,codesnippet)
...
/cfif
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme
Got Gmail? -- I have 6 invites to give away!

If you're not annoying somebody, you're not really alive.
-- Margaret Atwood

~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188914
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54