Simple.Web.JsonFx.Tests [FAIL] (Mono only)
Closed this issue · 2 comments
ianbattersby commented
xUnit.net console test runner (32-bit .NET 4.0.30319.17020)
Copyright (C) 2007-11 Microsoft Corporation.
xunit.dll: Version 1.9.0.1566
Test assembly: /Users/ian/code/Simple.Web/test/Simple.Web.JsonFx.Tests.dll
Simple.Web.JsonFx.Tests.JsonFxContentTypeHandlerTests.PicksUpOrdersLinkFromCustomers [FAIL]
JsonFx.Serialization.SerializationException : Invalid IL code in (wrapper dynamic-method) object: (object): IL_0001: call 0x00000001
---- System.InvalidProgramException : Invalid IL code in (wrapper dynamic-method) object: (object): IL_0001: call 0x00000001
Stack Trace:
at JsonFx.Serialization.DataWriter`1[JsonFx.Model.ModelTokenType].Write (System.Object data, System.IO.TextWriter output) [0x00000] in <filename unknown>:0
at Simple.Web.JsonFx.JsonMediaTypeHandler.Write (IContent content, System.IO.Stream outputStream) [0x00000] in <filename unknown>:0
at Simple.Web.JsonFx.Tests.JsonFxContentTypeHandlerTests.PicksUpOrdersLinkFromCustomers () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
----- Inner Stack Trace -----
at (wrapper managed-to-native) System.Delegate:CreateDelegate_internal (System.Type,object,System.Reflection.MethodInfo,bool)
at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure, Boolean allowClosed) [0x00000] in <filename unknown>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method, Boolean throwOnBindFailure) [0x00000] in <filename unknown>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method) [0x00000] in <filename unknown>:0
at System.Reflection.Emit.DynamicMethod.CreateDelegate (System.Type delegateType) [0x00000] in <filename unknown>:0
at JsonFx.CodeGen.DynamicMethodGenerator.GetPropertyGetter (System.Reflection.PropertyInfo propertyInfo) [0x00000] in <filename unknown>:0
at JsonFx.Serialization.Resolvers.MemberMap..ctor (System.Reflection.PropertyInfo propertyInfo, DataName dataName, JsonFx.Serialization.Resolvers.ValueIgnoredDelegate isIgnored) [0x00000] in <filename unknown>:0
at JsonFx.Serialization.Resolvers.ResolverCache.BuildMap (System.Type objectType, IDictionary`2& maps) [0x00000] in <filename unknown>:0
at JsonFx.Serialization.Resolvers.ResolverCache.LoadTypeName (System.Type type) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetTypeName (System.Object value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetArrayTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, IEnumerable value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, System.Object value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetObjectTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, DataName typeName, IEnumerator`1 enumerator) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetArrayTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, IEnumerable value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, System.Object value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetArrayTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, IEnumerable value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, System.Object value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetTokens (System.Object value) [0x00000] in <filename unknown>:0
at JsonFx.Serialization.DataWriter`1[JsonFx.Model.ModelTokenType].Write (System.Object data, System.IO.TextWriter output) [0x00000] in <filename unknown>:0
Tests complete: 1 of 2
Simple.Web.JsonFx.Tests.JsonFxContentTypeHandlerTests.PicksUpOrdersLinkFromCustomer [FAIL]
JsonFx.Serialization.SerializationException : Invalid IL code in (wrapper dynamic-method) object: (object): IL_0001: call 0x00000001
---- System.InvalidProgramException : Invalid IL code in (wrapper dynamic-method) object: (object): IL_0001: call 0x00000001
Stack Trace:
at JsonFx.Serialization.DataWriter`1[JsonFx.Model.ModelTokenType].Write (System.Object data, System.IO.TextWriter output) [0x00000] in <filename unknown>:0
at Simple.Web.JsonFx.JsonMediaTypeHandler.Write (IContent content, System.IO.Stream outputStream) [0x00000] in <filename unknown>:0
at Simple.Web.JsonFx.Tests.JsonFxContentTypeHandlerTests.PicksUpOrdersLinkFromCustomer () [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
----- Inner Stack Trace -----
at (wrapper managed-to-native) System.Delegate:CreateDelegate_internal (System.Type,object,System.Reflection.MethodInfo,bool)
at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, Boolean throwOnBindFailure, Boolean allowClosed) [0x00000] in <filename unknown>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method, Boolean throwOnBindFailure) [0x00000] in <filename unknown>:0
at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method) [0x00000] in <filename unknown>:0
at System.Reflection.Emit.DynamicMethod.CreateDelegate (System.Type delegateType) [0x00000] in <filename unknown>:0
at JsonFx.CodeGen.DynamicMethodGenerator.GetPropertyGetter (System.Reflection.PropertyInfo propertyInfo) [0x00000] in <filename unknown>:0
at JsonFx.Serialization.Resolvers.MemberMap..ctor (System.Reflection.PropertyInfo propertyInfo, DataName dataName, JsonFx.Serialization.Resolvers.ValueIgnoredDelegate isIgnored) [0x00000] in <filename unknown>:0
at JsonFx.Serialization.Resolvers.ResolverCache.BuildMap (System.Type objectType, IDictionary`2& maps) [0x00000] in <filename unknown>:0
at JsonFx.Serialization.Resolvers.ResolverCache.LoadTypeName (System.Type type) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetTypeName (System.Object value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetArrayTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, IEnumerable value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, System.Object value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetObjectTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, DataName typeName, IEnumerator`1 enumerator) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetArrayTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, IEnumerable value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetTokens (System.Collections.Generic.List`1 tokens, ICycleDetector detector, System.Object value) [0x00000] in <filename unknown>:0
at JsonFx.Model.ModelWalker.GetTokens (System.Object value) [0x00000] in <filename unknown>:0
at JsonFx.Serialization.DataWriter`1[JsonFx.Model.ModelTokenType].Write (System.Object data, System.IO.TextWriter output) [0x00000] in <filename unknown>:0
Tests complete: 2 of 2
2 total, 2 failed, 0 skipped, took 0.456 seconds
ianbattersby commented
This is an issue with JsonFx as reported here; will refer to Xamarin :(
ianbattersby commented
I have a workaround for this, yet to be pushed however.