Why the client lost data?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
33 views
I send from the client to the server object, entity database table, it has a relationship One To Many. For communication with DB using hibernate. Through the debugger I see that the server is okay, all data is in place:
5ae8e31c102fd365956914.png
And here is the client exception:
5ae8e3e9df8d2661309311.png

The code that I use to transfer:
serializer.writeObject(orderHeaders);

orderHeaders = (ArrayList) of the deserializer.the readObject();


I suspect that this is because I give too much the size of the object. Once you can control this maximum size?
by | 33 views

2 Answers

0 like 0 dislike
Nested data is necessary in some requests to transmit. The in-browser parser can't parse the sub-levels. Some browsers can, but it's not a rule.
by
0 like 0 dislike
Hello.

Pokopaytes on "hibernate lazy initialization" (If you're using it against One to Many fetch = FetchType.LAZY). The problem is that the related object is not loaded from the database (here you need to read about proxy-objects in hibernate).
To explicitly initialize an object from the database, I used:
Hibernate.initialize(Object obj)
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Jun 10, 2019 by SlandShow
110,608 questions
257,187 answers
0 comments
40,796 users