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.

121 questions
0
votes
0 answers

Can I use ViewScoped without Serializing beans in JSF 2.1.10

We are using JSF 2.1.10 & mojarra and I don't see we will upgrade to 2.2 or 2.1.18 any time soon because of some other dependencies. Now, I want to use ViewScope for my managedBean as i have some ajax functionality. If i use requestScope, it keep on…
nani21984
  • 911
  • 2
  • 13
  • 21
0
votes
2 answers

Java: when serializing an object, I get NotSerializableException from classes I'm not trying to serialize

I have three packages inside src: model, view, and controller. view has a couple of JFrames, model has a couple of classes that deal with the logic of the program, and controller has one class containing instances of the JFrames from view, and only…
nmburroni
  • 11
  • 5
0
votes
2 answers

Android: Serializing an array of Objects

Situation: I wish to send an array of objects (of different types) from a client to a server using ObjectOutputStream. Problem : The Object array is not serializable (I get a NotSerializable Exception). What I tried: I created a dummy class that…
Abhishek
  • 743
  • 1
  • 15
  • 28
0
votes
1 answer

Java Serialization Produces NotSerializableException (Unknown Reason)

I am writing an application in Java and part of what it needs to do is serialize some objects so they can be imported later. When I wrote the serialization code, it did not work correctly. After much tinkering, I believe I have narrowed it down to…
cryptopi
  • 303
  • 9
  • 19
0
votes
1 answer

confused how to handle NotSerializableException

i am working on social website, and i am using JSF 2.2 and i have some beans with view scopes in those beans services are injected. i am getting the famous NotSerializableException sometimes in tomcat and i have some questions: 1- what are the…
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
0
votes
6 answers

Reading/writing object from file

Hello can anybody help me with writing and reading object in file in Java? This is the code I use, it makes me this Exception: java.io.NotSerializableException Here is the code I use: public void zapisDat() { sez = new SeznamLodi(seznamLodiPC,…
Jan Hakl
  • 75
  • 1
  • 9
0
votes
1 answer

NotSerializableException in Android

I verified from the java docs that boolean and byte are serializable. As per the android docs, my class implements the serializable interface. I am not sure why I keep getting the exception. What am I missing here? The class is like this: public…
Sarvavyapi
  • 810
  • 3
  • 23
  • 35
0
votes
2 answers

Pass HttpClient object from one activity to another

I have a class that use DefaultHttpClient object to execute http rest requests. Im trying to use the same HttpClient object to execute another request in different class and I tried to pass the class I'm using as a serialized object to the new…
0
votes
2 answers

JAVA: Class Won't Serialize

I've been working on a program to learn more about JAVA, and I'm almost finished. It's been a while since I've worked with Serialization, and even after brushing up on it, I'm still missing something. I'm trying to save this class into a file, but…
Kyle
  • 151
  • 1
  • 2
  • 14
0
votes
3 answers

Why am I getting NotSerializableException?

I have a class implementing Serializable, but I'm having trouble finding why it throws this exception whenever I try to write it it disk. I'm trying to write ValueConatiner.class public class ValueContainer implements Serializable { private…
Kyle
  • 151
  • 1
  • 2
  • 14
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
  • 476
  • 5
  • 17
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,452
  • 9
  • 58
  • 95
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
  • 17,363
  • 67
  • 204
  • 344
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
  • 663
  • 8
  • 13
1 2 3
8 9