Henk8
- ago
Error message

System.NullReferenceException: Object reference not set to an instance of an object.
at WealthLab.Core.Collections.MessageExceptionCollection.StartListener()
at WealthLab.Data.YahooProvider.Initialize()
at WealthLab.Data.ProviderBase.InitializeIfRequired()
at WealthLab.Data.HistoricalDataValet.SelectTokenizer(DataProviderBase last, String token, HistoryScale serv, DateTime setup2, DateTime def3, Int32 connection4Low, DataRequestOptions cust5)
at WealthLab.Data.HistoricalDataValet.CalculateTokenizer(String ident, HistoryScale pol, DateTime field, DateTime second2, Int32 task3start, IHistoryProvider visitor4, DataRequestOptions selection5)
at WealthLab.Data.HistoricalDataValet.InitTokenizer(String value, HistoryScale map, DateTime state, DateTime visitor2, Int32 indexOf_second3, DataRequestOptions key4)
at WealthLab.Data.HistoricalDataValet.GetHistory(String symbol, HistoryScale scale, DateTime start, DateTime end, Int32 maxBars, DataRequestOptions cb)
at WealthLab8.MainController.GetHistory(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars, DataRequestOptions cb)
at WealthLab.ChartWPF.Chart.<>c__DisplayClass137_0.DefineImporter()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at WealthLab.ChartWPF.Chart.FindCollection(Boolean isres, DataSet cust)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
0
306
4 Replies

Reply

Bookmark

Sort
- ago
#1
...that happens for you when you do what?

To add a worthwhile problem report, please explain it clearly, with as many facts as you can think of. Is this a repeatable event? How can we reproduce it?
0
Henk8
- ago
#2
That's the problem. Sometimes i don't have any idea from where it comes. Hopefully it's related to the messages mentionned hereunder.


0
- ago
#3
QUOTE:
Hopefully it's related to the messages mentionned hereunder.

As a side note to explain this [unrelated] error message:

https://www.wealth-lab.com/Discussion/Yahoo-provider-fails-to-get-company-name-11270
https://www.wealth-lab.com/Discussion/Error-collecting-Fundamentals-by-Yahoo-in-the-Log-9622
0
- ago
#4
QUOTE:
Sometimes i don't have any idea from where it comes.

It's evident, at least, that when it happens you have a chart open...

at WealthLab.ChartWPF.Chart.<>c__DisplayClass137_0.DefineImporter()

...that (logically) tries to obtain some historical data to display...

at WealthLab8.MainController.GetHistory(String symbol, HistoryScale scale, DateTime startDate, DateTime endDate, Int32 maxBars, DataRequestOptions cb)

...that ends up initializing the Yahoo provider which then fails to:

at WealthLab.Data.YahooProvider.Initialize()

Hence the exception message, and why is the question. Presumably there may be a [new] issue obtaining a Yahoo cookie - or maybe not.

We'll know more if/when you're able to discover a step by step procedure.
0

Reply

Bookmark

Sort