Git Product home page Git Product logo

Comments (6)

AqlaSolutions avatar AqlaSolutions commented on June 25, 2024

Hi, without a reproducable example it's impossible to say what's going on.

from aqlaserializer.

inethui avatar inethui commented on June 25, 2024

The setup is complicated and involves many core business objects in our system. So I don't know how to create a reproducible example for you to take a look. However, I can debug into Aqla, are there some classes or methods I should watch closely in order to trouble shoot this issue?

from aqlaserializer.

inethui avatar inethui commented on June 25, 2024

In deserialization, does Aqla follow the object reference chain? For example, if class A has a field "b" which reference class B, would Aqla deserialize B before finish up deserializing A?

from aqlaserializer.

inethui avatar inethui commented on June 25, 2024

I noticed that there are two kinds of call stacks in deserialization:

AqlaSerializer.Serializers.CompiledSerializer.AqlaSerializer.Serializers.IProtoSerializer.Read Line 74
AqlaSerializer.Meta.RuntimeTypeModel.Deserialize Line 1080
AqlaSerializer.ProtoReader.ReadTypedObject Line 787
AqlaSerializer.ProtoReader.ReadObject Line 773

and

AqlaSerializer.NetObjectCache.GetKeyedObject Line 46
AqlaSerializer.NetObjectHelpers.ReadNetObject_End Line 37

The second one is the failed one. Does this indicate something abnormal?

from aqlaserializer.

AqlaSolutions avatar AqlaSolutions commented on June 25, 2024

The setup is complicated and involves many core business objects in our system. So I don't know how to create a reproducible example for you to take a look.

Try removing fields one by one until you find which one causes this. Then you can make a reproducable example to post here.

This exception tells that there is an attempt to retrieve object reference which was not constructed yet. It's impossible to say anything more from the compiled stacktrace. At least you should try disabling RuntimeTypeModel.AutoCompile.

I would put a few breakpoints inside NetObjectHelpers methods to understand what's going on. You can also make use of RuntimeTypeModel.GetDebugSchema method to understand the structure of serializers.

In deserialization, does Aqla follow the object reference chain? For example, if class A has a field "b" which reference class B, would Aqla deserialize B before finish up deserializing A?

Usually yes but there is an index of all keyed objects at the start of stream unless you use some switches of ProtoCompatibility.

from aqlaserializer.

inethui avatar inethui commented on June 25, 2024

I figured this out, it's a problem on our side. Thanks a lot for the help!

from aqlaserializer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.