heech
03-19-2009, 09:10 PM
Hi,
I'm opening a thread here, although I've also been exchanging emails with NT support. It's hard having a consistent conversation over email, and I'm desperate.. so I'll give this a try.
I've had 2-3 good weeks with IB and NT, but now bugs are popping up to make the platform unusable.
The symbols are this:
- I opened stock and (wrote) option positions in the last few days; everything worked fine, strategy worked fine.
- now, upon connecting to IB, I get this warning in the log:
3/19/2009 3:11:48 PM Default Error validating request:-'xb' : cause - When the local symbol field is empty, please fill all option fields (right, strike, expiry) ServerValidateError[/quote]
- looking into the TWS log file, I find this:
[code]MF 06:38:15:428 JTS-EServerSocket-40: SECDEF Sending reqId=FixSecDefReqBySymbol38 symbol=FSYS 0 SMART
MF 06:38:15:475 JTS-EServerSocket-40: [0:20:42:1:0:0:0:ERR] -'wb' : cause - When the local symbol field is empty, please fill all option fields (right, strike, expiry)
MF 06:38:15:475 JTS-EServerSocket-40: Anticipated error
MF jextend.d: When the local symbol field is empty, please fill all option fields (right, strike, expiry)
at jextend.wb.d(wb.java:300)
at jextend.y.h(y.java:233)
at jextend.pd.L(pd.java:800)
at jextend.pd.run(pd.java:660)
at java.lang.Thread.run(Unknown Source)
- if I try to continue (no matter how many times I restart NinjaTrader), I get the "NinjaTrader has had an error and must close down" error message.
- the NinjaTrader trace shows this:
2009-03-19 15:11:43:421 (xIB2) Cbi.Connection.ProcessEventArgs.PositionUpdateEven tArgs1: Instrument='FSYS' Account='' Avg price=10.17374705 Quantity=1,500 Market position=Long Operation=Insert Currency=UsDollar
2009-03-19 15:11:43:468 in OnUnhandledThreadException
2009-03-19 15:11:43:546 ********* exception trapped *********
2009-03-19 15:11:43:546 The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.
2009-03-19 15:11:43:546 at System.Data.OleDb.OleDbCommand.ExecuteCommandTextE rrorHandling(OleDbHResult hr)
at System.Data.OleDb.OleDbCommand.ExecuteCommandTextF orSingleResult(tagDBPARAMS dbParams, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommand(Comm andBehavior behavior, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
at Wilson.ORMapper.Internals.Connection.TransactionCo mmand(Guid transactionId, Type entityType, CommandInfo commandInfo, IDbTransaction transaction, String sqlStatement, Parameter[] parameters)
at Wilson.ORMapper.Internals.Instance.InsertObject(Tr ansaction transaction)
at Wilson.ORMapper.Internals.Instance.PersistChanges( Transaction transaction, PersistDepth persistDepth, Boolean parentDeleted)
at Wilson.ORMapper.Transaction.PersistChanges(ICollec tion entityObjects, PersistDepth persistDepth)
at Wilson.ORMapper.ObjectSpace.PersistChanges(ICollec tion entityObjects, PersistDepth persistDepth)
at Wilson.ORMapper.ObjectSpace.PersistChanges(Object entityObject)
at NinjaTrader.Cbi.Connection.CreateInstrument(String name, InstrumentType instrumentType, Exchange exchange, DateTime expiry, Double strikePrice, Right right)
at NinjaTrader.IB.Adapter.Convert(Contract contract, Currency currency, Double tickSize, Double pointValue, Exchange[] exchanges)
at NinjaTrader.IB.AccountUpdatesRequest.ProcessPortfo lioUpdateNow(Adapter adapter, PortfolioUpdate portfolioUpdate)
Note that the trace file message and the TWS error log both refer to FSYS. (It happens with 15 other symbols on the TWS side as well; NT probably just errored out and quit after the first exception on its side.) I'm pretty sure these two errors/exceptions are directly related to each other.
- final result: I get no bars. If I launch a live strategy, nothing. If I open up strategy analyzer and run a strategy, no bars. If I restart NinjaTrader, strategy analyzer works fine until I connect to IB... at which point this repeats itself.
This problem originally started with NT .8 and the previous version of TWS (889..?). I've just updated to NT .9 and TWS 892, and the problem still exists.
HELP.
I'm opening a thread here, although I've also been exchanging emails with NT support. It's hard having a consistent conversation over email, and I'm desperate.. so I'll give this a try.
I've had 2-3 good weeks with IB and NT, but now bugs are popping up to make the platform unusable.
The symbols are this:
- I opened stock and (wrote) option positions in the last few days; everything worked fine, strategy worked fine.
- now, upon connecting to IB, I get this warning in the log:
3/19/2009 3:11:48 PM Default Error validating request:-'xb' : cause - When the local symbol field is empty, please fill all option fields (right, strike, expiry) ServerValidateError[/quote]
- looking into the TWS log file, I find this:
[code]MF 06:38:15:428 JTS-EServerSocket-40: SECDEF Sending reqId=FixSecDefReqBySymbol38 symbol=FSYS 0 SMART
MF 06:38:15:475 JTS-EServerSocket-40: [0:20:42:1:0:0:0:ERR] -'wb' : cause - When the local symbol field is empty, please fill all option fields (right, strike, expiry)
MF 06:38:15:475 JTS-EServerSocket-40: Anticipated error
MF jextend.d: When the local symbol field is empty, please fill all option fields (right, strike, expiry)
at jextend.wb.d(wb.java:300)
at jextend.y.h(y.java:233)
at jextend.pd.L(pd.java:800)
at jextend.pd.run(pd.java:660)
at java.lang.Thread.run(Unknown Source)
- if I try to continue (no matter how many times I restart NinjaTrader), I get the "NinjaTrader has had an error and must close down" error message.
- the NinjaTrader trace shows this:
2009-03-19 15:11:43:421 (xIB2) Cbi.Connection.ProcessEventArgs.PositionUpdateEven tArgs1: Instrument='FSYS' Account='' Avg price=10.17374705 Quantity=1,500 Market position=Long Operation=Insert Currency=UsDollar
2009-03-19 15:11:43:468 in OnUnhandledThreadException
2009-03-19 15:11:43:546 ********* exception trapped *********
2009-03-19 15:11:43:546 The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.
2009-03-19 15:11:43:546 at System.Data.OleDb.OleDbCommand.ExecuteCommandTextE rrorHandling(OleDbHResult hr)
at System.Data.OleDb.OleDbCommand.ExecuteCommandTextF orSingleResult(tagDBPARAMS dbParams, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommandText( Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteCommand(Comm andBehavior behavior, Object& executeResult)
at System.Data.OleDb.OleDbCommand.ExecuteReaderIntern al(CommandBehavior behavior, String method)
at System.Data.OleDb.OleDbCommand.ExecuteNonQuery()
at Wilson.ORMapper.Internals.Connection.TransactionCo mmand(Guid transactionId, Type entityType, CommandInfo commandInfo, IDbTransaction transaction, String sqlStatement, Parameter[] parameters)
at Wilson.ORMapper.Internals.Instance.InsertObject(Tr ansaction transaction)
at Wilson.ORMapper.Internals.Instance.PersistChanges( Transaction transaction, PersistDepth persistDepth, Boolean parentDeleted)
at Wilson.ORMapper.Transaction.PersistChanges(ICollec tion entityObjects, PersistDepth persistDepth)
at Wilson.ORMapper.ObjectSpace.PersistChanges(ICollec tion entityObjects, PersistDepth persistDepth)
at Wilson.ORMapper.ObjectSpace.PersistChanges(Object entityObject)
at NinjaTrader.Cbi.Connection.CreateInstrument(String name, InstrumentType instrumentType, Exchange exchange, DateTime expiry, Double strikePrice, Right right)
at NinjaTrader.IB.Adapter.Convert(Contract contract, Currency currency, Double tickSize, Double pointValue, Exchange[] exchanges)
at NinjaTrader.IB.AccountUpdatesRequest.ProcessPortfo lioUpdateNow(Adapter adapter, PortfolioUpdate portfolioUpdate)
Note that the trace file message and the TWS error log both refer to FSYS. (It happens with 15 other symbols on the TWS side as well; NT probably just errored out and quit after the first exception on its side.) I'm pretty sure these two errors/exceptions are directly related to each other.
- final result: I get no bars. If I launch a live strategy, nothing. If I open up strategy analyzer and run a strategy, no bars. If I restart NinjaTrader, strategy analyzer works fine until I connect to IB... at which point this repeats itself.
This problem originally started with NT .8 and the previous version of TWS (889..?). I've just updated to NT .9 and TWS 892, and the problem still exists.
HELP.