Profile Picture

Exception error - build 39

Posted By blousetrader 5 Years Ago
Message
Posted Friday April 20 2012
Got the exception error below when stoploss order was hit - it had partially filled 1 of 5 contracts when this occurred and shut off the system.

The service plugin RightEdge.TWSCSharpPlugin.TWSPlugin threw an exception of type System.IO.IOException
at RightEdge.Shared.ServiceWrapper.DoError(Exception e)
at RightEdge.Shared.BrokerWrapper.CancelOrder(String orderId)
at RightEdge.Common.PositionManager.UpdateSpecialOrder(PositionData pos, TradeType type)
at RightEdge.Common.PositionManager.UpdateSpecialOrders(PositionData pos)
at RightEdge.Common.PositionManager.PositionOrderFilled(PositionData pos, PositionState posState, BrokerOrder order, Fill fill, TradeType tradeType, String description, Boolean sendUpdate)
at RightEdge.Common.PositionManager.OnOrderFilled(BrokerOrder order, Fill fill, PositionData pos, PositionState posState, TradeOrder tradeOrder)
at RightEdge.Common.PositionManager.broker_OrderUpdated(BrokerOrder brokerOrder, Fill fill, String information)
at RightEdge.Shared.BrokerWrapper.<>c__DisplayClass3.b__0(Object )
at RightEdge.Shared.CallbackStub.DoCallback()

Inner Exception:
An exception of type System.IO.IOException was thrown.
Unable to write data to the transport connection: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full.
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
at System.IO.BinaryWriter.Write(Byte[] buffer)
at Krs.Ats.IBNet.IBClient.send(String str)
at Krs.Ats.IBNet.IBClient.send(Int32 val)
at Krs.Ats.IBNet.IBClient.CancelOrder(Int32 orderId)
at RightEdge.TWSCSharpPlugin.TWSPlugin.internalCancelOrder(Int32 id, BrokerOrder order)
at RightEdge.TWSCSharpPlugin.TWSPlugin.CancelOrder(String orderId)
at RightEdge.Shared.BrokerWrapper.CancelOrder(String orderId)

Inner Exception:
An exception of type System.Net.Sockets.SocketException was thrown.
An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full
at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)

Edited: Friday April 20 2012 by blousetrader
Posted Monday April 23 2012
This is a network error communicating with TWS. It says "the system lacked sufficient buffer space or because a queue was full"-- this sounds like something that could happen if TWS wasn't processing messages that the plugin was sending to it.

This doesn't look like something we can prevent, although there's not really enough information to be sure. If you can provide the logs from the TWS plugin for that day, it might provide us with some useful information.

Thanks,
Daniel
Posted Tuesday April 24 2012
Here's the log

Attachments
log.fri.txt (1,767 views, 201.00 KB)
Posted Wednesday April 25 2012
Hi blousetrader,

The log I'm looking for is the one created by the RightEdge TWS plugin, not the one created by TWS itself. Go to the Help\About RightEdge dialog, then click on the "Application Data" folder link. Under the folder that is displayed, there should be a TWSLogs folder, and in it should be some files with names like RightEdgeTWSPluginLog2012-02-17.txt. The log in that folder is the one I'm looking for.

Thanks,
Daniel
Posted Wednesday April 25 2012
Take two.

Attachments
RightEdgeTWSPluginLog2012-04-20.txt (202 views, 15.00 KB)


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems