just updated to the new Version 0.80.3 of Breeze from Version 0.78.3. With the new version i get this in Fiddler:
500 localhost:50372 /api/Breeze/Metadata
{"Message":"An error has occurred.",
"ExceptionMessage":"Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.",
"ExceptionType":"System.Reflection.ReflectionTypeLoadException",
"StackTrace":" at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)\r\n at System.Reflection.RuntimeModule.GetTypes()
at System.Reflection.Assembly.GetTypes()
at Breeze.WebApi.BreezeConfig.<get_Instance>b__1(Assembly a)
at System.Linq.Enumerable.<SelectManyIterator>d__14`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Breeze.WebApi.BreezeConfig.get_Instance()
at Breeze.WebApi.JsonFormatter.Create()
at Breeze.WebApi.BreezeControllerAttribute..cctor()"
}
I had the [BreezeController] Attribute before. Problem seems to be the JSON Serializer. With just [ODataActionFilter] i get the Metadata but thats not enough.
I read the Docs but i do not think i missed a change. Using a Backup of 0.78.3 it works again. Any ideas here?
And: "Retrieve the LoaderExceptions property". How do i get these?
Thanks
This was a bug and is fixed in v 0.80.5. Please let us know of any issues.
Related
uSync import error - Object reference not set to an instance of an object
Extending Umbraco And Using The API
Umbraco 7
We are currently using uSync but now have an environment where we get this below error in the logs when attempting an import
My question is - how can I trace WHICH element is causing this issue during the import? The debugging does not show which element is being processed when the error occurs
Many thanks
2019-03-04 11:09:34,497 [P1716/D7/T160] ERROR
Jumoo.uSync.BackOffice.Controllers.uSyncApiController - Unhandled
controller exception occurred System.NullReferenceException: Object
reference not set to an instance of an object. at
Jumoo.uSync.Core.Serializers.ContentTypeBaseSerializer1.DeserializeBase(IContentTypeBase
item, XElement info) at
Jumoo.uSync.Core.Serializers.ContentTypeSerializer.DeserializeCore(XElement
node) at
Jumoo.uSync.Core.Serializers.SyncBaseSerializer1.DeSerialize(XElement
node, Boolean forceUpdate) at
Jumoo.uSync.BackOffice.Handlers.ContentTypeHandler.Import(String
filePath, Boolean force) at
Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler1.ImportFolder(String
folder, Boolean force, Dictionary2 updates) at
Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler1.ImportFolder(String
folder, Boolean force, Dictionary2 updates) at
Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler1.ImportFolder(String
folder, Boolean force, Dictionary2 updates) at
Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler1.ImportFolder(String
folder, Boolean force, Dictionary2 updates) at
Jumoo.uSync.BackOffice.Handlers.uSyncBaseHandler1.ImportAll(String
folder, Boolean force) at
Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(IEnumerable1
syncHandlers, String folder, Boolean checkConfig, Boolean force,
String groupName) at
Jumoo.uSync.BackOffice.uSyncBackOfficeContext.Import(String groupName,
String folder, Boolean force) at
Jumoo.uSync.BackOffice.uSyncBackOfficeContext.ImportAll(String folder,
Boolean force) at
Jumoo.uSync.BackOffice.Controllers.uSyncApiController.Import(Boolean
force)
I'm not sure Kev who maintains uSync is on here much. I'd raise an issue on the Github repo for uSync here: https://github.com/KevinJump/uSync/issues and Kev will usually get back to you pretty quickly.
It's possibly something to do with a missing DataType or something though.
You can try setting the logger to log more detailed information for uSync which might give you more information to go on. To do this, add the following:
<logger name="Jumoo.uSync"><level value="Debug" /></logger>
to the config/log4net.config file on your site. this should cause uSync to log more information to the /App_Data/umbracoTraceLog.txt file which might give you more useful information!
Hope that helps!
I'm using this code to loop columns of a SharePoint 2013 List.
currentContext.Load(currentList.Fields);
currentContext.ExecuteQuery();
foreach (Field f in currentList.Fields) {
}
No problem with normal columns. But, when I arrive to a lookup column I have this error:
"Unable to cast object of type
'System.Collections.Generic.Dictionary`2[System.String,System.Object]'
to type 'Microsoft.SharePoint.Client.Field'."
I found for example this discussion
This issue came when we were working with TaxonomyFieldValue fields. For us changing references was not an option. This helped:
TaxonomyItem dummy = new TaxonomyItem(web.Context, null);
It will force program to load adequate libraries forcing correct type in runtime.
I had this same issue and updating the references fixed it for me. This question helped me figure it out.
I went from version 14 of "Microsoft.SharePoint.Client" and "Microsoft.SharePoint.Client.Runtime" to version 16 and no longer had the error.
Latest client download
I get an error while querying TaxeRate from QBO using QB API V3.
Here is my request:
String query = "Select * FROM TaxRate ";
List<? extends IEntity> result = service.executeQuery(query).getEntities();
below is what i get in return
Some other Exception in SDK or network happened: org.codehaus.jackson.map.JsonMappingException: Can not construct instance of com.intuit.ipp.data.SpecialTaxTypeEnum from String value 'NO_TAX': value not one of declared Enum instance names
at [Source: N/A; line: -1, column: -1] (through reference chain: com.intuit.ipp.data.TaxRate["SpecialTaxType"])
Can someone help me?
Thank you.
There is a server side change (Addition of a new Enum value) which is causing this devkit break. A newer version of devkit with latest changes (XSD) will be released soon. That will resolve the issue.
As a temporary workaround, you can try to call this without using devkit. Sample V3 call (using dev-defined) - https://gist.github.com/IntuitDeveloperRelations/0913b4c224de758fde0a
Update
This change might get rollbacked from the server side soon. In that case, current devkit will work as it is.
We're unable to re-hydrate the Breeze# client object which has TimeSpan? properties and if prop value is not null
BreezeServer returns the TimeSpan in the ISO 8601 format (eq. "PT8H") but as TimeSpan.Parse() expects different format [ws][-]{ d | [d.]hh:mm[:ss[.ff]] }[ws] a System.FormatException is thrown ("String was not recognized as a valid TimeSpan") in the Breeze.Sharp.JsonEntityConverter while parsing objects.
Is this a known issue? IS there any workaround for it?
Ok, this was a bug and has been fixed in the lastest version on the breeze.sharp GitHub repo, it will also go out in the next release, probably sometime next week. Please confirm whether or not it corrects your issue.
I have a working solution that is using Neo4jClient 1.0.0.646 with no problem. When I install the nuget package for the latest 1.0.0.651 I receive a NullReferenceException on every attempt to return query results. Given the stack trace details below can someone diagnose the issue for me? I am on Json.NET 5.0.6 if that is relevant. I see the REST calls going out and coming back with the correct data so the Cypher is good.
System.NullReferenceException was unhandled by user code
HResult=-2147467261 Message=Object reference not set to an instance
of an object. Source=Neo4jClient StackTrace:
at Neo4jClient.Cypher.CypherQuery.b__0(String
current, String paramName) in
c:\TeamCity\buildAgent\work\5bae2aa9bce99f44\Neo4jClient\Cypher\CypherQuery.cs:line
46
at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable1
source, TAccumulate seed, Func3 func)
at Neo4jClient.Cypher.CypherQuery.get_DebugQueryText() in c:\TeamCity\buildAgent\work\5bae2aa9bce99f44\Neo4jClient\Cypher\CypherQuery.cs:line
43
at Neo4jClient.GraphClient.<>c__DisplayClass1e1.<Neo4jClient.IRawGraphClient.ExecuteGetCypherResultsAsync>b__1d(Task1
responseTask) in
c:\TeamCity\buildAgent\work\5bae2aa9bce99f44\Neo4jClient\GraphClient.cs:line
825
at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
at System.Threading.Tasks.Task.Execute() InnerException:
You haven't provided enough of the exception detail for me to identify exactly where this is occurring.
Please include the full text of the exception in a new issue at https://github.com/readify/Neo4jClient/issues/new
Here are all the changes since 1.0.0.646, if you want to take a peek for anything related to what you're doing: https://github.com/Readify/Neo4jClient/compare/v1.0.0.646...master