Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
107 views

I am trying to load data from Java object streams from another application. Since I do not have access to the source code of that application, I used jdeserialize to extract the class definitions from ...
uli's user avatar
  • 71
0 votes
0 answers
108 views

I'm not sure what happened when saving a file, but now when I try to load it I get java.io.EOFException. All of the code is in try/catch blocks but there was no error when saving the file. Opening the ...
vincatzero's user avatar
0 votes
1 answer
67 views

Java 21 Sockets allowing for multiple connections using ObjectInputStream and ObjectOutputStream produce EOF on second request I have a Client side, a (middleman) Bridge Server and an Inventory ...
JavaEnthusiast27's user avatar
0 votes
0 answers
75 views

I'm writing a large scale program in java where I keep track of the Nodes with different data structures. Specifically, one of my Node type have 2 left & right pointers for 2 different Binary ...
dgezgin's user avatar
  • 11
0 votes
0 answers
105 views

I am trying to use an ObjectOutputStream and an ObjectInputStream to store multiple BookLibrary objects in an ArrayList, but whenever I attempt to read in the data from the text file ("data.txt&...
ProfessorChicken's user avatar
0 votes
1 answer
66 views

When using Java socket to transfer a file, I set byte[] BUFFER = new byte[1024 * 8], and using objectInputStream.read(BUFFER, 0, BUFFER.length) to receive file stream, but the return value of ...
Krlin Homon's user avatar
0 votes
1 answer
74 views

If the sender uses ois.writeObject to continuously send two objects of the same class to the receiver, and the receiver uses oos.readObject to read, is it possible for the receiver to treat the two ...
Mr Right's user avatar
0 votes
0 answers
42 views

I am trying to create an instance of the class Account and it cannot have the same handle as other accounts, which is checked using a for loop which compares the handle passed a parameter to the ...
Samuel W's user avatar
1 vote
0 answers
559 views

After update from Gradle 6 to 7.x i cannot solve and find the cause of missing properties. For fields File and File Collection that being annotated @Input `Reason: A property of type 'File' annotated ...
One String Samurai's user avatar
1 vote
1 answer
45 views

I have an abstract Entity public class Entity<ID> { private ID id; public ID getId() { return id; } public void setId(ID id) { this.id = id; } } And a User ...
Flaviu's user avatar
  • 49
0 votes
0 answers
658 views

I'm trying to read an ArrayList of objects from a BinaryI/O but I keep getting the error "class java.lang.Boolean cannot be cast to class java.util.ArrayList (java.lang.Boolean and java.util....
Abbs's user avatar
  • 1
0 votes
1 answer
59 views

I'm saving objects from two array lists to a file and if I restart the application I have called a read method at the startup which will read the data from the file and add them to the array lists But ...
Ramal Abeysekera's user avatar
0 votes
0 answers
217 views

in java you could add the file within the project so you could use it on any device, i.e if the file is "data.dat" in java I could put the file in the project root and write this line try (...
Osama Abkar's user avatar
0 votes
0 answers
149 views

I am a beginner in java and practicing IO stream and Serialization .In below problem unable to read all data into a Arraylist and print it. by using the ObjectOutputStream insert the content by user ...
Tannu's user avatar
  • 1
0 votes
1 answer
69 views

On a Spring Boot application (2.3.3), I have a dependency to a module developed by my company. From a service I'm calling a method from this dependency which needs a file loaded from resources (src/...
Antoine's user avatar
  • 570
1 vote
1 answer
97 views

I try to use ObjectInputStream and ObjectOutputStream in my Java project but the object I want to send on the network contains other objects than String, int, boolean etc... so it does not work when I ...
Akashiro's user avatar
1 vote
1 answer
143 views

I'm saving some Java objects in files. I seralize them that way : Class Timestamp.java: public class Timestamp implements java.io.Serializable { private static final long serialVersionUID = 1L; ...
E.F's user avatar
  • 199
0 votes
1 answer
651 views

I am learning Java and I'm trying to get a programme to write the attributes of one class instance of another into a .txt file, like a phonebook for instance. I have a class User : package idpack; ...
VeraTuran's user avatar
0 votes
0 answers
896 views

I have a problem with java.lang.Object stream. InputStream actually is a real Object[]. readObject method reads only one object. How can I read stream objects correctly? Sample code is below. ...
karatas.hakan's user avatar
0 votes
0 answers
83 views

i have a server that work if change String with clients. Now,i want to use Object instead of String but the server doesn't receive anything and get stugged before the sout like the client doesn't sand ...
Matteo Pagliarello's user avatar
0 votes
1 answer
115 views

I'm trying to send files in chunks from a client to server via byte arrays. I'm using ObjectInputStream. The write works and the filesize matches but when I open the file, I only get a blank textfile(...
Arturo's user avatar
  • 301
0 votes
1 answer
553 views

So I have a working ObjectOutputStream in a method that I start by calling the method in main. I need to then read the file it created and print out all 5 objects in it. Right now I'm only printing ...
Skye Smith's user avatar
1 vote
1 answer
750 views

i'm using the example from this repo https://github.com/kojenov/serial/tree/master/3-4.%20upload, which is presenting a method for specifying a way to protect form unsafe deserialization in Java by ...
IvanChuchulski's user avatar
1 vote
1 answer
443 views

I am making an instant messaging application where I set up a TLS connection between two phones where one acts as a Server and the other as the Client. When trying to send a message I get this ...
Ellen W's user avatar
  • 85
0 votes
2 answers
548 views

I am writing a small program that inserts customer details in ArrayList and write it in file. The problem is with ObjectOutputStream I was able to append data in file with turning FileOutputStream(&...
MoinAhmad's user avatar

1
2 3 4 5
13