Questions tagged [serializable]

Serialization is the process of converting a data structure or object state into a format that can be stored. The `SerializableAttribute` is a .NET Framework attribute that signifies the object is serializable. The `Serializable` Java marker interface indicates that an object can be serialized using standard JVM serialization mechanisms. Other languages and frameworks have similar abstract classes or attributes.

Serialization is the process of converting a data structure or object state into a format that can be stored.

The SerializableAttribute is a .NET Framework attribute that signifies the object is serializable. Other languages and frameworks have similar abstract classes or attributes.

The Serializable Java marker interface indicates that an object can be serialized using standard JVM serialization mechanisms.

Other uses of this tag should probably use .

891 questions
-1
votes
1 answer

deserializing objects run issue

I'm getting the following error after running my code: Any ideas on what causing that and how to fix it? Here is Restore(): public void Restore() { try { ObjectInputStream is = new ObjectInputStream(new…
dxbh0517
  • 41
  • 7
-1
votes
1 answer

Empty ArrayList after reading a file through Deserialization

LOGIC OF CODE :- So I have a code that creates an arraylist of object "List" that holds name and age. After adding We serialize it into a folder and then We create another Araylist of Object "List". After that we deserialize the serialized file into…
-1
votes
2 answers

ObjectInputStream - reading an object - Is there a way to prevent a call to a no arg superclass constructor?

I'm writing a PreferedCustomer object to a .dat file using FileIOStreams and ObjectIOStreams. I'm practicing Inheritance so there is a simple class hierarchy. PreferredCustomer.java inherits from Customer.java Customer.java inherits from…
-1
votes
1 answer

Error shown on flask when calling Flash restful service. TypeError: Object of type 'Response' is not JSON serializable

I am new to python and I am sort of debugging code which has been passed to me (also going through some links to learn python). I am setting up flask restful service and when I try to submit the inputs from the client and send the request, Flask…
Abraham
  • 1
  • 1
-1
votes
3 answers

app crashes when passing object via intent

I have a RecyclerView and onclicking any item I want to start an activity by sending the object corresponding to the item via intent. But app crashes when i try to send the object. My Model class public class ProductListDataModel…
visakh r
  • 175
  • 1
  • 11
-1
votes
2 answers

How to insert non-parceable and non-serializable object into Bundle

I'm using the twitter API for android. From a call, a List of 'Tweet' objects is returned. I want to save this list into my savedInstanceBundle when required so I don't have to make the large http call again. The problem is that 'Tweet' does not…
SimpleJack
  • 151
  • 1
  • 12
-1
votes
1 answer

How to pass data from ListView in one Activity to a TextView which is found on another Activity?

I managed to add text to the ListView, but I want to pass the ListView data to a TextView which is in another activity by clicking on the button 'Button'. I don't know how to use Serializable or Parcelable to pass data through Listview. Layout…
Arso
  • 11
  • 1
-1
votes
1 answer

ObjectOutputStream duplicate output

Cannot even find the problem itself in this case. When the program reads from objects.dat, the output is only the variables of the last objects in the array. Program output screenshot. I have combed through the code several times and cannot find the…
Kacey VH
  • 3
  • 3
-1
votes
2 answers

When i click on autolink url, app crash

FATAL EXCEPTION: main Process: com.stonker, PID: 4874 java.lang.RuntimeException: Parcelable encountered IOException writing…
Mehul Santoki
  • 1,208
  • 1
  • 12
  • 25
-1
votes
1 answer

Forcibly mark a class in a library of a SDK as Serializable in C#

My application uses an SDK (that I have bought recently). Although I have marked my class as serializable, when I want to serialize it, an error occurs: Type 'FLib.FClass' in Assembly 'IOp.FLib, Version=1.7.0.0, Culture=neutral, PublicKeyTocken=nul'…
M Ahmadzadeh
  • 121
  • 7
-1
votes
1 answer

How to implement Serializable for my project to have persistence?

My main method: public class ToDoList extends Application{ public static void main(String[] args) { launch(args); } public void start(Stage primaryStage) throws Exception { Pane pane =…
-1
votes
2 answers

Bundle.putSerializable serializing reference, not value?

EDIT:: Updated code to show what concerns me: Changing properties of mData in Frag changes properties mData in Sender and their memory reference is the same.. I'm passing a custom data class into a child view via bundles, with the intent of…
Mars
  • 2,505
  • 17
  • 26
-1
votes
1 answer

How do I return a resultset object from a remote method?

The idea is to pass a query to a remote method, have that remote method execute it and let it send the result set back to the calling method. Here is the caller method btnOK.setOnAction((e)-> { String query = "SELECT * FROM…
user6483706
-1
votes
2 answers

adding Elements to Serialized ArrayList without loading ArrayList into RAM in JAVA

Is it possible to add Elements into an Array list in java that is already serialized to the disk without reloading it into RAM. I Need this for saving strucutred data from an XML file to load data into a mysql database. The XML File has several GB…
arget888
  • 69
  • 1
  • 7
-1
votes
2 answers

ObjectInputStream stops loop

So I'm creating a server and client program, Server Class: package Networking; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.ServerSocket; import java.net.Socket; import…
John Mason
  • 23
  • 5