serializable Questions

13

Solved

What exactly does it mean for a class to be Serializable in Java? Or in general, for that matter...
Enneahedron asked 7/8, 2010 at 9:36

5

Solved

Referring to What is the correct way to make a custom .NET Exception serializable? and Are all .NET Exceptions serializable? ... Why should my exceptions be serializable? Someone said "it can ...
Rosenbaum asked 30/6, 2009 at 23:58

6

Solved

I am using Prisma and Next.js. When I try to retrieve the content from Prisma in getStaticProps it does fetch the data but I can't pass it on to the main component. export const getStaticProps = as...
Suppository asked 22/12, 2021 at 12:30

12

What is the difference between Serializable and Externalizable in Java?
Milson asked 3/5, 2009 at 19:58

4

Solved

I want convert my json string response from API to object: val obj = Json.decodeFromString<MyModel>(jsonResponseString) My data class: @Serializable data class MyModel( @SerializedName(&quo...
Levitt asked 24/12, 2020 at 20:38

13

we are haunted by occasional occurences of exceptions such as: com.google.gwt.user.client.rpc.SerializationException: Type 'xxx' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializa...
Morganne asked 23/1, 2010 at 10:17

16

Why does Android provide 2 interfaces for serializing objects? Do Serializable objects interopt with Android Binder and AIDL files?
Alkahest asked 23/7, 2010 at 23:26

8

Solved

I have an ArrayList of an object. The object contains the types 'Bitmap' and 'String' and then just getters and setters for both. First of all is Bitmap serializable? How would I go about serializi...
Naval asked 20/2, 2013 at 13:38

2

I am trying to understand the following code. // File: LambdaTest.java package test; import org.apache.spark.SparkConf; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api.j...
Lindbergh asked 4/8, 2015 at 11:2

23

Solved

I understood, I think, that a "Bean" is a Java-class with properties and getters/setters. As much as I understand, it is the equivalent of a C struct. Is that true? Also, is there a real...

5

Solved

For example: Object A contains Object B that contains Object C that contains Object A. Will Object A serialize properly? Comment #9 here indicates that it does not work . In contrast, XStream in...
Goines asked 24/11, 2009 at 19:50

5

Solved

My generic method needs to serialize the object passed to it, however just insisting that it implements ISerializable doesn't seem to work. For example, I have a struct returned from a web service ...
Gunshy asked 3/6, 2009 at 15:45

3

I have a document Term matrix with nine documents: I am running the code as below: import pyLDAvis.gensim topicData = pyLDAvis.gensim.prepare(ldamodel, docTermMatrix, dictionary) pyLDAvis.displ...
Rubidium asked 23/9, 2017 at 12:49

3

Solved

I must be missing something really obvious. I'm quite new to C# but have been programming in C/C++ for years, so sorry if it IS something blindingly obvious ;) [See Edit for newer problems] I'm t...
Falsetto asked 20/3, 2012 at 14:49

6

Solved

I have a couple objects, Location, in my app stored in an ArrayList and use parcelable to move these between activities. The code for the object looks like this: public class Location implements ...
Joey asked 10/2, 2015 at 18:24

3

Solved

I'm trying to auto generate json_serializable code for my models in flutter app. Here is an example of my model: import 'package:propro/src/models/product_model.dart'; import 'package:propro/src/mo...
Tailpiece asked 10/8, 2020 at 5:38

2

Solved

I have implemented onRestoreInstanceState and onSaveInstanceState. They both work successfully when the app is minimized (by pressing the home button, or another activity is in the foreground). How...
Dela asked 19/1, 2013 at 0:28

3

Assuming I have a class User with many fields: public class User { public Integer id; public String name; public String username; public Integer age; public Address address; public String pho...
Teresetereshkova asked 25/8, 2020 at 23:33

5

Solved

The code SngList.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView a, View v, int position, long id) { Intent intent = new Intent(getActivity(), NowPlayin...
Shostakovich asked 9/8, 2013 at 13:27

1

Solved

UPDATE I have built a small sample and will add all code to this post. I have to believe there is an answer/explanation to this and am hoping someone can educate me on what I'm missing. Class field...
Tillandsia asked 9/3, 2020 at 6:40

3

To get more control over serialization, I have converted a class from [DataContract] to [Serializable], implementing both GetObjectData and the special deserializing constructor. When I do this, th...
Jewbaiting asked 2/4, 2009 at 17:26

5

Solved

I have class mentioned below: public class JsonHistoryList extends ArrayList<JsonHistory> implements Serializable{} I wish to pass it through intent using timerService.putExtra(TimerServ...
Principate asked 2/9, 2014 at 12:9

5

Solved

I'm completly new to Moq and now trying to create a mock for System.Reflection.Assembly class. I'm using this code: var mockAssembly = new Mock<Assembly>(); mockAssembly.Setup( x => x....
Shallot asked 23/4, 2010 at 4:38

6

I created a class, which has several member variables, all of which are serializable... except one Bitmap! I tried to extend bitmap and implement serializable, not thinking Bitmap is a final class....
Clementina asked 14/5, 2011 at 15:29

2

We develop very usual spring MVC application We have: Controller layer (@RestComtroller + @GetMapping and @PostMapping) Service layer(@Service) Repository layer (CrudRepository from spring-da...
Stink asked 5/9, 2018 at 20:4

© 2022 - 2024 — McMap. All rights reserved.