<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Futura Bk";
panose-1:2 11 5 2 2 2 4 2 3 3;}
@font-face
{font-family:"Futura Hv";
panose-1:2 11 7 2 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Grant,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I just logged off the server and logged back on and the QuickFix log shows the following log entries below. There is a 7 hour time difference so 16:47 is really
9:47 Pacific time. The “20141017-14:37:14.894 : Received logon” entry was when I logged in this morning earlier and the app started processing correctly. The entry right after that with the error is when I logged off again. I checked with our system admins
and they said there isn’t any policy on the server that would be restricting the application in any way.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">………………<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">20141017-14:37:11.097 : Session reset: ResetOnLogon<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">20141017-14:37:13.550 : Session reset: ResetSeqNumFlag<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">20141017-14:37:13.565 : Initiated logon request<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">20141017-14:37:14.894 : Received logon<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">20141017-16:47:42.648 : Session FIX.4.4:552/ADMIN->ICE disconnecting: System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed
by the remote host<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> at QuickFix.SocketInitiatorThread.ReadSome(Byte[] buffer, Int32 timeoutMilliseconds)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> at QuickFix.SocketInitiatorThread.Read()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">20141017-16:47:44.914 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">20141017-16:47:45.930 : Connection failed: No connection could be made because the target machine actively refused it 172.18.133.178:1024<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">CURT RETTENMIER<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Information Developer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Avista Utilities<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">HP Enterprise Services<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Telephone</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959"> +1 509.495.8492<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Email</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">
<a href="mailto:curt.rettenmier@avistacorp.com"><span style="color:#595959">curt.rettenmier@avistacorp.com</span></a></span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:blue">
</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959"> <o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">MSC - 28<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">1411 E. Mission, Spokane, WA 99202<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:9.0pt;font-family:"Futura Bk","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><img border="0" width="35" height="17" id="Picture_x0020_1" src="cid:image001.png@01CFE9F0.B2587C40" alt="Description: cid:image001.png@01CD29CD.B57A0640"></span><span style="color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:blue"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">This message and any attached files or documents may contain information that is confidential and considered proprietary to Avista Corporation.</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">
Any unauthorized use, transfer, or disclosure of the information contained herein is strictly forbidden. If you believe that this message has been sent to you in error, please reply to the sender that you have received the message in error and delete the message.</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Quickfixn [mailto:quickfixn-bounces@lists.quickfixn.com]
<b>On Behalf Of </b>Grant Birchmeier<br>
<b>Sent:</b> Friday, October 17, 2014 9:40 AM<br>
<b>To:</b> Mailing list for QuickFIX/n<br>
<b>Subject:</b> Re: {{Quickfixn}} Scheduled task issues<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="color:black">This sounds like some kind of login/permission issue with Windows server, and not really a problem with the QF/n code itself.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Unfortunately, Windows server admin is not one of my skills. Anyone else have any clue?<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Fri, Oct 17, 2014 at 11:34 AM, Rettenmier, Curt <<a href="mailto:Curt.Rettenmier@avistacorp.com" target="_blank">Curt.Rettenmier@avistacorp.com</a>> wrote:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">We set up our new application that uses QuickFix/n on a dedicated Windows server 2012 as a scheduled task to run every morning at 4:00 a.m. We have been previously testing the app
on that server not as a scheduled task (double-clicking on the .exe) and it has been working fine. We set up the task to run using a service account and we configured the task scheduler to run the task whether the user is logged on our not. We also had to
modify a security policy on the server to allow the service account to log on as a batch service. The task scheduler runs the app as scheduled but the problem we are having is that the task runs when no one is logged on to the server and is not able to connect
to our third-party ICE). When I log on to the server later in the morning the app is still running (as it should). At the moment I log on the app is then able to connect to ICE and start processing information. QuickFix logging is turned on and the log is
showing that the target machine (which is the server) is refusing the connection when our QuickFix app tries to connect. This will occur over and over. See log excerpt below. The IP 172.19.133.178 is the server’s IP. As long as I am logged on to the server
our QuickFix/n app works fine. We also are using sTunnel to encrypt the data. sTunnel is set up on the same server.
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-11:01:30.885 : Session FIX.4.4:552/ADMIN->ICE already disconnected: Resetting...<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-11:01:30.901 : Session reset: New session<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-11:01:30.901 : Created session<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-11:01:31.807 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-11:01:33.839 : Connection failed: No connection could be made because the target machine actively refused it
<a href="http://172.18.133.178:1024" target="_blank">172.18.133.178:1024</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-11:01:39.917 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-11:01:40.917 : Connection failed: No connection could be made because the target machine actively refused it
<a href="http://172.18.133.178:1024" target="_blank">172.18.133.178:1024</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-11:01:46.011 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-11:01:47.042 : Connection failed: No connection could be made because the target machine actively refused it
<a href="http://172.18.133.178:1024" target="_blank">172.18.133.178:1024</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-11:01:52.105 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-11:01:53.120 : Connection failed: No connection could be made because the target machine actively refused it
<a href="http://172.18.133.178:1024" target="_blank">172.18.133.178:1024</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">When I logged on to the server this morning to check the task the logs show that the already running app will then successfully connect and work. See log excerpt below. Also if
I kick off the task myself and stay logged on to the machine (with different logon credentials) the app will connect and work just fine.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-14:36:59.112 : Connection failed: No connection could be made because the target machine actively refused it
<a href="http://172.18.133.178:1024" target="_blank">172.18.133.178:1024</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-14:37:04.190 : Connecting to 172.18.133.178 on port 1024<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-14:37:08.347 : Connection succeeded<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-14:37:11.097 : Session reset: ResetOnLogon<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-14:37:13.550 : Session reset: ResetSeqNumFlag<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-14:37:13.565 : Initiated logon request<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">20141017-14:37:14.894 : Received logon<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Any help would be appreciated.
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanks,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">CURT RETTENMIER</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Information Developer</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Avista Utilities</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">HP Enterprise Services</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Telephone</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">
<a href="tel:%2B1%20509.495.8492" target="_blank">+1 509.495.8492</a></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:8.0pt;font-family:"Futura Hv","sans-serif";color:#595959">Email</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">
<a href="mailto:curt.rettenmier@avistacorp.com" target="_blank"><span style="color:#595959">curt.rettenmier@avistacorp.com</span></a></span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:blue">
</span><span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">MSC - 28</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:8.0pt;font-family:"Futura Bk","sans-serif";color:#595959">1411 E. Mission, Spokane, WA 99202</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:9.0pt;font-family:"Futura Bk","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D"><img border="0" width="35" height="17" id="_x0000_i1025" src="cid:image001.png@01CFE9F0.B2587C40" alt="Description: cid:image001.png@01CD29CD.B57A0640"></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:blue"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">This message and any attached files or documents may contain information that is confidential and considered
proprietary to Avista Corporation.</span></b><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"> Any unauthorized use, transfer, or disclosure of the information contained herein is strictly forbidden. If you believe that this message
has been sent to you in error, please reply to the sender that you have received the message in error and delete the message.</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="background:white">Grant Birchmeier</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b><span style="color:#3333FF;background:#FFCC00">Connamara Systems, LLC</span></b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b>Made-To-Measure Trading Solutions.</b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Exactly what you need. No more. No less.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://connamara.com" target="_blank">http://connamara.com</a><o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>