Questions tagged [notserializableexception]

Exception thrown when an instance is required to have a Serializable interface.

In Java, NotSerializableException class which extends ObjectStreamException class is responsible for notserializableexception. Thrown when an instance is required to have a Serializable interface. The serialization runtime or the class of the instance can throw this exception. The argument should be the name of the class.

111 questions
0
votes
1 answer

JBoss AS7 Hornetq - RemoteConenctionFactory lookup fails with RoundRobinConnectionLoadBalancingPolicy NotSerializableException

I'm using JBoss AS 7 Hornetq. Our standalone java application interacts with a queue and sends messages. We had the entire environment setup and it was working pretty smoothly. Suddenly, one fine day, our standalone application failed with the below…
Pavan Kulkarni
  • 456
  • 3
  • 15
0
votes
1 answer

java.io.NotSerializableException: com.wings.marketingevent.util.FlowWizard

I think it's simple but I got stuck with this. The idea is would like to use the liferay wizard as in: https://www.primefaces.org/showcase/ui/panel/wizard.xhtml. I have this on the xhtml:
mrjimoy_05
  • 3,014
  • 6
  • 51
  • 89
0
votes
0 answers

Hadoop - java.io.NotSerializableException

I'm having a tough time figuring out the issue with Serialization in hadoop. Here's my class - public class CrawlerTweet implements Serializable, Writable { private static final long serialVersionUID = 1L; private String keywords; …
user2508012
  • 43
  • 1
  • 3
  • 5
0
votes
1 answer

NotSerializableException during serialization of JFrame. Make `JFileChooser` transient to serialization

I wanted to serialize my JFrame but unfortunately I get NotSerializableException. I thought that the JFileChoosers are the reason so I added transient modifier to them: transient JFileChooser fc = new JFileChooser("."); And they are because removing…
Yoda
  • 15,011
  • 59
  • 173
  • 291
0
votes
1 answer

NotSerializableException when using DefaultComboBoxModel in another class

I'm working on a big school project and it's coming to an end. I want 2 JComboBoxes to be synchronized at the different classes(JPanels) in my program, and after not knowing much about how JComponents works I found out that it's not the JComboBox…
Amiga
  • 503
  • 7
  • 12
0
votes
3 answers

Java writing/reading unserializable objects to/from file

I am using JSI (Java Spatial Index, RTree) to implement 2D spatial search. I want to save the tree to file, which triggered java.io.NotSerializableException using code below. public class GeographicIndexer { private static final Logger log =…
Nathaniel Ding
  • 156
  • 1
  • 10
0
votes
1 answer

Overriding methods in class implementing Serializable

I am trying to create a distributed processing system on Android through Bluetooth, so I created a class that implements Serializable, made a method to serialize and deserialize that object so that I can send it as a ByteArray. The problem is that I…
0
votes
4 answers

Java notSerializableExceptionError

When trying to save an arraylist of my class Click, I get this error: java.io.NotSerializableException:javax.swing.text.DefaultHighlighter$LayeredHighlightInfo on this line of code: os.writeObject(saveList);. Even though I made my Click class…
0
votes
1 answer

ObjectInputStream throwing NotSerializableException

I'm trying to read an array (called PWlist) of objects from a .dat file using ObjectInputStream. The array contains two different objects, LongPW and PinPW. When I try to perform the read, I am getting this…
-1
votes
1 answer

java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = com.xxx.xxx.xxx.model.CategoryModel)

I am passing a list of model from one fragment A to another fragment B, when when i press recent app button on fragment B it crashed. data class CategoryModel( @SerializedName("id") val id : Int, @SerializedName("name") val categoryName :…
Rakesh kushwaha
  • 439
  • 1
  • 7
  • 18
-1
votes
1 answer

MyClass NotSerializableException

I created a class named Components. It has some components like Button, TextArea, VerticalLayout, etc. I didn't make this class serializable because I don't need to, but when I start the server (I use Tomcat), I get this…
Champ
  • 41
  • 1
  • 7
-1
votes
1 answer

HTTP request from Jenkins pipeline with proxy auth and client certificate

I need to make an HTTP call from my Jenkins pipeline to an external HTTPS resource that requires client certificate. Additionally, Jenkins is behind a corporate proxy that requires authentication. After quite a bit of struggle I managed to get a…
-1
votes
2 answers

NotSerializableException occuring where it shouldn't

I've been working with Java for a few months now and I'm still fairly new to it, so any help is appreciated. I've been working on a game for a while now (based off another game) and wanted to make a level editor. I'm having trouble saving the…
Ryan
  • 617
  • 2
  • 10
  • 29
-1
votes
2 answers

What makes this class non-Serializable?

Im serializing Student class that contains an instance of Statistics class, both classes implement Serializable but the stack trace says this one is not serializable. if you have any more questions let me know. filename.txt: Stud Qu1 Qu2 Qu3 Qu4…
coderguy22296
  • 51
  • 1
  • 7
-1
votes
1 answer

java.rmi.UnmarshalException in RMI call

Please note.. the question has been cleaned up after waisting lot of EJP's time. (Sincere apologies and deeply appreciate the help extended.) We have a client-server application. The communication is RMI. We got the following exception in the…
Nayan Sonthalia
  • 229
  • 1
  • 4
  • 20