Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: EOF Exception using InputStream/ReadObject

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Thanked 0 Times in 0 Posts

    Default EOF Exception using InputStream/ReadObject

    Hello there java comunity!

    I'm looking for this specific problem but the solutions i see are for diferent implementations.

    I'm making a free time exercise for learning java on my vacations (I'm starting indeed), i was making some sort of "system" that allows you handle objects into a ArrayList, it may save objects from an ArrayList to a file and read them too, the saving feature seems to work(the file is created with no errors), but the loading of the file throws a EOF Exception, and I know right where is the error (In the method "Leer" from the file "Archivo Curso"), just when the input stream calls the method readObject. Is there a way to fix this error, I leave the netbeans project here for you to check

    Thanks for your help


    P.D: The ones to check are only Principal.java, Curso.java, AdminCurso.java and ArchivoCurso.java , the rest are not implemented yet

    I think the implementation is not wrong at all, the problem is the handling of EOF, i dont get how to make it work properly

  2. #2
    Join Date
    Jul 2012
    Thanked 19 Times in 19 Posts

    Default Re: EOF Exception using InputStream/ReadObject

    can't read your lab01.rar

Similar Threads

  1. ZipEntry to InputStream or java.io.File. How?
    By goodguy in forum File I/O & Other I/O Streams
    Replies: 4
    Last Post: November 27th, 2011, 06:50 AM
  2. 1 packet delay with inputstream
    By tobi06 in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: October 27th, 2011, 04:53 AM
  3. Looping an inputstream
    By Trunk Monkeey in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 25th, 2011, 02:39 PM
  4. [SOLVED] InputStream to File
    By aussiemcgr in forum Java Theory & Questions
    Replies: 2
    Last Post: May 2nd, 2011, 01:05 PM
  5. InputStream Problem at Client Side
    By pavan in forum Web Frameworks
    Replies: 1
    Last Post: March 26th, 2010, 03:21 AM