File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serialization Question

 
Sachin Deokar
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am getting a write error for the code included below. Can you please help me find the reason for this error.

Here's the error that i am getting.

Thanks for your help.

Sachin Deokar
 
Ireneusz Kordal
Ranch Hand
Posts: 423
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remove (comment) lines 30 and 40.
You cannot close streams inside writeObject / readObject methods.
 
Sachin Deokar
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You.
 
Stephen Davies
Ranch Hand
Posts: 352
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sachin Deokar wrote:Thank You.


Also be aware, the new SCJP exam objectives no longer include serialization questions
 
Sachin Deokar
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephen Davies wrote:
Also be aware, the new SCJP exam objectives no longer include serialization questions


Is this something that was changed recently, coz I can see it being included in the objective. SCJP 1.6 Objectives. I am following what's included in the Kathy Sierra SCJP 1.6 book.
Given a scenario involving navigating file systems, reading from files, writing to files, or interacting with the user, develop the correct solution using the following classes (sometimes in combination), from java.io: BufferedReader, BufferedWriter, File, FileReader, FileWriter, PrintWriter, and Console.


Thanks,
Sachin
 
Bharadwaja Cheruvu
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error says, paths for which ever files the objects are serialized into are incorrect.
Files will automatically be created, but the paths where files would be created should be correct.
 
Bert Bates
author
Sheriff
Posts: 8898
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stephen is correct!

After the book was published, Sun / Oracle removed the Serialization topic from the exam.

What we have discovered however is that not all prometric centers update the exams at exactly the same time. So there is a remote chance that a few prometric centers *might* still be using an older version of the exam. I don't know how to verify that ahead of time? Perhaps you can call your local prometric center and ask which set of objectives they're using? Perhaps that would work?

For sure, if you go to the Oracle website you can see the current set of objectives. Not only has Serialization been removed since K&B was published, but the 4th Thread objective, the one conerning wait and notify, has also been removed.

hth,

Bert
 
Swerrgy Smith
Ranch Hand
Posts: 94
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bert Bates wrote:Stephen is correct!

After the book was published, Sun / Oracle removed the Serialization topic from the exam.

What we have discovered however is that not all prometric centers update the exams at exactly the same time. So there is a remote chance that a few prometric centers *might* still be using an older version of the exam. I don't know how to verify that ahead of time? Perhaps you can call your local prometric center and ask which set of objectives they're using? Perhaps that would work?

For sure, if you go to the Oracle website you can see the current set of objectives. Not only has Serialization been removed since K&B was published, but the 4th Thread objective, the one conerning wait and notify, has also been removed.

hth,

Bert


Hi,

I am looking for links in Oracle Website for the set of objectives.

Can we still use the K and B book which was written for 010-065 for the new update exam 010-066??

Thank you very much.
 
Vijitha Kumara
Bartender
Posts: 3909
9
Chrome Fedora Hibernate
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch, Bharadwaja Cheruvu

Swerrgy Smith wrote:Can we still use the K and B book which was written for 010-065 for the new update exam 010-066??

If no other new objectives are added (even some are removed), yes you can still use it and you'll learn more which would not be a waste



 
Bert Bates
author
Sheriff
Posts: 8898
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since K&B was published two objectives have been removed from the exam:

- serialization

- the last thread-related objective that had to do with wait() and notify() and notifyAll()

Skip those and the book is current.

hth,

Bert
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic