Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ ckan
- Unhandled Exception:
- Autofac.Core.DependencyResolutionException: An exception was thrown while activating CKAN.Configuration.JsonConfiguration. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor()' on type 'JsonConfiguration'. ---> Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'System.Collections.Generic.IDictionary`2[System.String,System.String]' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
- To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
- Path 'AuthTokens', line 32, position 17.
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract) [0x00058] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x00012] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0007f] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConverter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target) [0x00069] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00280] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00161] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at CKAN.Configuration.JsonConfiguration.LoadConfig () [0x0001f] in <4e761fcc12274ad085987d4e4301546f>:0
- at CKAN.Configuration.JsonConfiguration..ctor () [0x00028] in <4e761fcc12274ad085987d4e4301546f>:0
- at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,object[])
- at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate () [0x0008f] in <4e761fcc12274ad085987d4e4301546f>:0
- --- End of inner exception stack trace ---
- at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate () [0x00113] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance (Autofac.IComponentContext context, System.Collections.Generic.IEnumerable`1[T] parameters) [0x000b2] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.InstanceLookup.Activate (System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& decoratorTarget) [0x0002c] in <4e761fcc12274ad085987d4e4301546f>:0
- --- End of inner exception stack trace ---
- at Autofac.Core.Resolving.InstanceLookup.Activate (System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& decoratorTarget) [0x00071] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.InstanceLookup+<>c__DisplayClass6_0.<Execute>b__0 () [0x00011] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare (System.Guid id, System.Func`1[TResult] creator) [0x00045] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.InstanceLookup.Execute () [0x00065] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance (Autofac.Core.ISharingLifetimeScope currentOperationScope, Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00071] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.ResolveOperation.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.ResolveOperation.Execute (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00016] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00041] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Container.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.ResolutionExtensions.TryResolveService (Autofac.IComponentContext context, Autofac.Core.Service service, System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& instance) [0x00023] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.ResolutionExtensions.ResolveService (Autofac.IComponentContext context, Autofac.Core.Service service, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00030] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.ResolutionExtensions.Resolve (Autofac.IComponentContext context, System.Type serviceType, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00007] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.ResolutionExtensions.Resolve[TService] (Autofac.IComponentContext context, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.ResolutionExtensions.Resolve[TService] (Autofac.IComponentContext context) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at CKAN.KSPManager..ctor (CKAN.IUser user, CKAN.Configuration.IConfiguration configuration) [0x00026] in <4e761fcc12274ad085987d4e4301546f>:0
- at CKAN.CmdLine.MainClass.Execute (CKAN.KSPManager manager, CKAN.CmdLine.CommonOptions opts, System.String[] args) [0x00247] in <4e761fcc12274ad085987d4e4301546f>:0
- at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x000a1] in <4e761fcc12274ad085987d4e4301546f>:0
- [ERROR] FATAL UNHANDLED EXCEPTION: Autofac.Core.DependencyResolutionException: An exception was thrown while activating CKAN.Configuration.JsonConfiguration. ---> Autofac.Core.DependencyResolutionException: An exception was thrown while invoking the constructor 'Void .ctor()' on type 'JsonConfiguration'. ---> Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'System.Collections.Generic.IDictionary`2[System.String,System.String]' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize correctly.
- To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.
- Path 'AuthTokens', line 32, position 17.
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureArrayContract (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract) [0x00058] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.Object existingValue, System.String id) [0x00012] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0007f] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConverter propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target) [0x00069] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject (System.Object newObject, Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, System.String id) [0x00280] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x00161] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType, Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerMember, System.Object existingValue) [0x0006d] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.JsonConvert.DeserializeObject (System.String value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x0002d] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at Newtonsoft.Json.JsonConvert.DeserializeObject[T] (System.String value) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at CKAN.Configuration.JsonConfiguration.LoadConfig () [0x0001f] in <4e761fcc12274ad085987d4e4301546f>:0
- at CKAN.Configuration.JsonConfiguration..ctor () [0x00028] in <4e761fcc12274ad085987d4e4301546f>:0
- at (wrapper dynamic-method) System.Object.lambda_method(System.Runtime.CompilerServices.Closure,object[])
- at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate () [0x0008f] in <4e761fcc12274ad085987d4e4301546f>:0
- --- End of inner exception stack trace ---
- at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate () [0x00113] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance (Autofac.IComponentContext context, System.Collections.Generic.IEnumerable`1[T] parameters) [0x000b2] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.InstanceLookup.Activate (System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& decoratorTarget) [0x0002c] in <4e761fcc12274ad085987d4e4301546f>:0
- --- End of inner exception stack trace ---
- at Autofac.Core.Resolving.InstanceLookup.Activate (System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& decoratorTarget) [0x00071] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.InstanceLookup+<>c__DisplayClass6_0.<Execute>b__0 () [0x00011] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Lifetime.LifetimeScope.GetOrCreateAndShare (System.Guid id, System.Func`1[TResult] creator) [0x00045] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.InstanceLookup.Execute () [0x00065] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance (Autofac.Core.ISharingLifetimeScope currentOperationScope, Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00071] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.ResolveOperation.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Resolving.ResolveOperation.Execute (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00016] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00041] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.Core.Container.ResolveComponent (Autofac.Core.IComponentRegistration registration, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.ResolutionExtensions.TryResolveService (Autofac.IComponentContext context, Autofac.Core.Service service, System.Collections.Generic.IEnumerable`1[T] parameters, System.Object& instance) [0x00023] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.ResolutionExtensions.ResolveService (Autofac.IComponentContext context, Autofac.Core.Service service, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00030] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.ResolutionExtensions.Resolve (Autofac.IComponentContext context, System.Type serviceType, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00007] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.ResolutionExtensions.Resolve[TService] (Autofac.IComponentContext context, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at Autofac.ResolutionExtensions.Resolve[TService] (Autofac.IComponentContext context) [0x00000] in <4e761fcc12274ad085987d4e4301546f>:0
- at CKAN.KSPManager..ctor (CKAN.IUser user, CKAN.Configuration.IConfiguration configuration) [0x00026] in <4e761fcc12274ad085987d4e4301546f>:0
- at CKAN.CmdLine.MainClass.Execute (CKAN.KSPManager manager, CKAN.CmdLine.CommonOptions opts, System.String[] args) [0x00247] in <4e761fcc12274ad085987d4e4301546f>:0
- at CKAN.CmdLine.MainClass.Main (System.String[] args) [0x000a1] in <4e761fcc12274ad085987d4e4301546f>:0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement