-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Describe the bug
I found plugins loading has several issues after current changes on dev.
- RestServer can't load correctly although Applicationlogs can work well. The error is:
System.NullReferenceException: Object reference not set to an instance of an object.
at Neo.Plugins.ApplicationLogs.LogReader.OnSystemLoaded(NeoSystem system)
at Neo.NeoSystem..ctor(ProtocolSettings settings, IStoreProvider storageProvider, String storagePath) in E:\PR-test\neo-PR#4202\neo\src\Neo\NeoSystem.cs:line 154
at Neo.NeoSystem..ctor(ProtocolSettings settings, String storageProvider, String storagePath) in E:\PR-test\neo-PR#4202\neo\src\Neo\NeoSystem.cs:line 128
at Neo.CLI.MainService.Start(CommandLineOptions options) in E:\PR-test\neo-PR#4202\neo\src\Neo.CLI\CLI\MainService.cs:line 350
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
Seems RestServer is scanning all AppDomain which makes loading conflicts with ApplicationLogs
Here:
WebHost.CreateDefaultBuilder()
.ConfigureServices((context, services) =>
{
services.AddControllers();
})- Can't load
SignClientcorrectly. Error is:
System.ArgumentException: Can't find the storage provider LevelDBStore (Parameter 'storageProvider')
at Neo.NeoSystem..ctor(ProtocolSettings settings, String storageProvider, String storagePath) in E:\PR-test\neo-PR#4202\neo\src\Neo\NeoSystem.cs:line 128
at Neo.CLI.MainService.Start(CommandLineOptions options) in E:\PR-test\neo-PR#4202\neo\src\Neo.CLI\CLI\MainService.cs:line 350
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
- Can't load
SqliteWalletcorrectly. The same error:
neo> System.ArgumentException: Can't find the storage provider LevelDBStore (Parameter 'storageProvider')
at Neo.NeoSystem..ctor(ProtocolSettings settings, String storageProvider, String storagePath) in E:\PR-test\neo-PR#4202\neo\src\Neo\NeoSystem.cs:line 128
at Neo.CLI.MainService.Start(CommandLineOptions options) in E:\PR-test\neo-PR#4202\neo\src\Neo.CLI\CLI\MainService.cs:line 350
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
Expected behavior
They all should be loaded correctly.
Metadata
Metadata
Assignees
Labels
No labels