Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console search doesn't work when SqlDataProvider is used #720

Closed
napernik opened this issue Feb 13, 2020 · 0 comments
Closed

Console search doesn't work when SqlDataProvider is used #720

napernik opened this issue Feb 13, 2020 · 0 comments
Assignees

Comments

@napernik
Copy link
Contributor

Repro:

  1. Install Composite.Tool.SqlDataProvider package and perform migration to SQL
  2. Search for something to the console.

Expected:
Search results are shown
Actual:
Nothing is shown, and there's the following error in the log:

System.InvalidOperationException: ThreadDataManager hasn't been initialized in the current thread. You probably have forgotten to use Composite.Core.Threading.ThreadDataManager.EnsureInitialize() call on a custom created thread.Example of usage: 
using(Composite.Core.Threading.ThreadDataManager.EnsureInitialize())

{ 
// Code that works with C1 data layer goes here 
..... 
} 
at Composite.Verify.ThrowInvalidOperationException(String message, Object[] formatArguments) 
at Composite.Core.Threading.ThreadDataManager.GetCurrentNotNull() 
at Composite.Plugins.Data.DataProviders.MSSqlServerDataProvider.SqlDataTypeStoresContainer.GetDataContext() 
at Composite.Plugins.Data.DataProviders.MSSqlServerDataProvider.SqlDataTypeStore.GetQueryable() 
at Composite.Plugins.Data.DataProviders.MSSqlServerDataProvider.SqlDataProvider.GetData[T]() 
at Composite.Data.Foundation.PluginFacades.DataProviderPluginFacade.GetData[T](String providerName) 
at Composite.Data.DataFacadeImpl.BuildQueryFromProviders[T](IEnumerable`1 providerNames) 
at Composite.Data.DataFacadeImpl.GetData[T](Boolean useCaching, IEnumerable`1 providerNames) 
at Composite.C1Console.Security.UserGroupFacade.GetUserGroupActiveCultures(String username) 
at Composite.C1Console.Users.UserSettings.GetActiveLocaleCultureInfos(String username, Boolean includeGroupAssignedCultures) 
at Composite.C1Console.Users.UserSettings.GetCurrentActiveLocaleCultureInfo(String username) 
at Composite.Plugins.Search.Endpoint.ConsoleSearchRpcService.<QueryAsync>d__4.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 
at WampSharp.V2.Rpc.AsyncLocalRpcOperation.<InnerInvokeAsync>d__3`1.MoveNext()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant