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.


>> REGISTER NOW TO START POSTING


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

Results 1 to 2 of 2

Thread: Java error "java.io.EOFException" in server client program

  1. #1
    Junior Member
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Java error "java.io.EOFException" in server client program

    Hi All,

    I am establishing the proxy server to communicate the date between devices using serial port but after serial port connection,it should start the Proxy Server and still run till the communication is happening...but server became started but it became halted due to error-

    Starting Proxy Server", "", "ProxyMgr.getServerProcess", ""

    "Proxy Server halted", "", "ProxyMgr.cleanupOnRemoteServerError", "java.io.EOFException at
    java.io.ObjectInputStream$PeekInputStream.readFull y(ObjectInputStream.java:2281) at java.io.ObjectInputStream$BlockDataInputStream.rea dShort(ObjectInputStream.java:2750) at java.io.ObjectInputStream.readStreamHeader(ObjectI nputStream.java:780) at java.io.ObjectInputStream.<init>(ObjectInputStream .java:280) at dpg.remoteObj.ProxyMgr.getObjectInputStream(ProxyM gr.java:998) at com.liebert.dpg.remoteObj.ProxyMgr.readObject(Prox yMgr.java:949) at dpg.remoteObj.ProxyMgr$1.run(ProxyMgr.java:171) at java.lang.Thread.run(Thread.java:619) at com.liebert.dpg.fnd.Thread_1.doTask(Thread_1.java: 367) at dpg.fnd.Thread.run(Thread_1.java:240) "
    Please help me to understand the problem and solution to resolve it..

    Thanks in advance..


  2. #2
    mmm.. coffee JavaPF's Avatar
    Join Date
    May 2008
    Location
    United Kingdom
    Posts
    3,336
    My Mood
    Mellow
    Thanks
    258
    Thanked 286 Times in 225 Posts
    Blog Entries
    4

    Default Re: Server became stoped

    Hello smartguy and welcome to the forums.

    The EOFException signals that an end of stream has been reached unexpectedly during input.

    Is the serial port somehow being closed after connection?

    It is hard to offer a solution without testing the code myself.
    Please use [highlight=Java] code [/highlight] tags when posting your code.
    Forum Tip: Add to peoples reputation by clicking the button on their useful posts.

    Looking for a Java job? Visit - Java Programming Careers