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

How to debug Error(no valid constructor)?

There isn't error until I use writeobject but it keeps give me no valid constructor error, even if I created no-arg constructor and UID, what was the problem in my coding? Here's an error code in console java.io.InvalidClassException:…
Uiyeob
  • 9
  • 2
-1
votes
1 answer

Errorwhen WriteObject from Server To Socket

Some one help me this this exception when send object from server to client it is NotSerializableException << and i try to solve the error and implements the interface Serializable and same exception >> >>> > /* * To change this license…
-1
votes
1 answer

ObjectOutputStream can't write my object

I'm making a group-chatting program by using socket but cant write my Message object into the socket objectOutputStream. The server side objectInputStream found nothing (avalible = 0). I have try to flush but it dosen't work. Please help guy. enum…
-1
votes
1 answer

Why can I serialize attributes but not the object itself?

I am working on a little quiz tool and face problems when I want to persist my objects (questions). This is my save method within the class Question, which imports "java.io.*": public static boolean saveQuestion(String file, Question q){ try{ …
-1
votes
1 answer

Wicket JDBC dao NotSerializableException when called on AjaxEventBehavior Click

So I'm having an issue writing to the db on click. On click: I am calling an API, grabbing the data, and writing to a DB table. I'm getting a NotSerializableException exception and I believe it to be because I'm calling the dao in the click: …
D2Gambit
  • 21
  • 6
-1
votes
2 answers

Proper way of passing Object from Activity to Activity using Serializable?

I am trying to pass an object from one activity to another , my object is custom class of java and already implements serializable. the main problem , i can't find a proper way to achieve it. all answers from other questions on stackoverflow of…
-1
votes
1 answer

How to compile a serializable object at runtime using C# CSharpCodeProvider and BinaryFormatter

So, I have the following code as text: using digitracktest.DigiTrack.CoreLogic; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Script.Serialization; using…
-1
votes
5 answers

Serializable save game function not working

I am trying to save a game state with no success. public void saveGame(){ board = GameBoard.this; try ( OutputStream file = new FileOutputStream(board); <---- error in this line OutputStream buffer = new BufferedOutputStream(file); …
AW90
  • 53
  • 1
  • 10
-1
votes
2 answers

Android passing ArrayList within Intent
I know that there are 2 ways to do this, Parcelable and Serializable. Another method (a bad one) is static variables. An entry of that list can be instance of class A or class B. I tried passing the list using Parcelable and Serializable with no…
Hamzeh Soboh
  • 7,572
  • 5
  • 43
  • 54
-1
votes
1 answer

How to make a Java class with non-primitive objects save state of those objects while serializing

I have a class that implements Serializable and has a following structure: public class WorkWishesForm implements Serializable { //================================================================================ // Переменные …
Denis Kutlubaev
  • 15,320
  • 6
  • 84
  • 70
-1
votes
2 answers

Serializable inner-class

I was trying to figure out why my code is throwing a "java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: core.FlightOrder$FlightTicket" exception. I have class declared as: public class FlightOrder implements…
-1
votes
1 answer

vb.net serialization of system objects?

I am working with sending objects over network. I have it working with custom objects just fine but my question is can I serialize system objects? For example I want to serialize the System.Net.NetworkInformation.NetworkInterface object on one…
Willy
  • 137
  • 13
-1
votes
1 answer

java serialVersionUID not works as I needed

I am developing an application that have some params as config data. I wrote a swing app and declare a class as ConfigClass.I add configuration params fields to this class and store it by serializable implementation to a file. During read and write,…
Moh Tarvirdi
  • 685
  • 1
  • 13
  • 25
-1
votes
3 answers

how can we have a serializable object?

I have a question that for example I have a GameStartegy class that has 53 fields and the type of all is one interface for example Strategy and one of these fields are Date and the will be initialized when we create an object,how can i create a…
Johanna
  • 27,036
  • 42
  • 89
  • 117
-1
votes
1 answer

How should ISerializable object store binary data?

I have a reference type which contains raw image data in unmanaged memory. It's clear how to store the metadata (width, height) using SerializationInfo, but what is the best way to store a BLOB? The only thing I can see is using…
Ben Voigt
  • 277,958
  • 43
  • 419
  • 720