Search:

Type: Posts; User: elamre

Search: Search took 0.09 seconds.

  1. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    What is this? is this real life? now it works. But why?

    I changed my FileSendRecieve to the following:


    public class FileSendRecieve {
    Socket socket;
    OutputStream socketOut;
    InputStream...
  2. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    Yeah i know, sometimes it works, and sometimes it doesn't. this makes it very hard for me to find the problem and fix it.

    Also i don't know what that is about. I gave a possible explanation on...
  3. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    That one is one big mess really, since the server and client are in the same console.
    Also yes that is from the same object.
    here is the messy AllInOne:
    ...
  4. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    I honestly have no clue why the AllInOne works and why this one doesnt. I posted the output in the posts above your post. Or is that not what you mean?

    Edit, wait a sec, the only thing that...
  5. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    Owh, the client seems to read everything already, since this is what happens on the server:


    2012-07-27 21:13:09.335 - SYSTEM: Logger initalized
    2012-07-27 21:13:09.335 - SYSTEM: Server starting...
  6. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    Ok i found something interesting, the second thime there are 0 bytes available to read.


    2012-07-27 21:05:00.736 - SYSTEM: Logger initalized
    2012-07-27 21:05:00.737 - DEBUG: Recieving first...
  7. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    I have not, and i would not exactly know how i could do that? Is there some sort of function which tells me the amount of bytes that is available to read?

    edit:
    nvm, that would be the...
  8. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    Hmm, i really have the idea that something might be wrong with the server. I could not see a reason why the client would not work? I printed out the values, and everything seems fine and should be...
  9. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    Where would you say is a good place to debug?
    I added some debug lines:
    Server output:

    2012-07-27 20:29:11.830 - SYSTEM: Logger initalized
    2012-07-27 20:29:11.831 - DEBUG: Recieving first file!...
  10. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    I dont really know what the difference could be. The only thing is that all the classes are nested now. And that everything gets executed out of 1 class.
    The output for the first client connected:
    ...
  11. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    I have tried it with several clients, and putting sleeps in between so it takes a while. And without sleeps as well.

    There is a lot of debugging, however i use my own made Logger for this, and...
  12. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    Silly me, i just reinstalled my pc and forgot to install JDK.

    Hmm, the odd thing is, in the AllInOne class, it works. But whenever i try to run it using the classes, it doesnt work. Would you mind...
  13. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    Hmm, im not very good at this #-o I cant even seem to run it.


    import java.io.BufferedInputStream;
    import java.io.BufferedOutputStream;
    import java.io.Closeable;
    import...
  14. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    Nvm, misunderstood it wrongly. Doing it right now.
  15. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    Ok i updated my main post. Its a lot of code to process though. But i'd really like to fix it! :)
  16. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    ok I'll update my post with the complete code.

    The

    while(true)

    is there because i didnt want to close the socket. Just a test
  17. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] Re: EOFException

    I wish i could, but according to my logic it should NOT be doing that. That's where it goes wrong.
    It's just a conclusion i made after doing research on the internet.
  18. Thread: EOFException

    by elamre
    Replies
    33
    Views
    6,503

    [SOLVED] EOFException

    Hello all,

    I'm trying to make my own dropbox kind of program. Just for the funs of it, and extreme customisation.
    Now i've got a small problem while trying to send the file info in advance....
Results 1 to 18 of 18