varunon9 / Remote-Control-PC

Control Laptop using Android. Remote control PC consists of android as well as desktop app written in Java to control laptop using phone.
MIT License
194 stars 97 forks source link

Application Crashes #10

Closed hammadbutt closed 7 years ago

hammadbutt commented 7 years ago

Application gets terminated whenever I press the Live Screen displaying the following error on the server side.

java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2601) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1319) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:371) at remotecontrolpc.desktop.server.Server.connect(Server.java:51) at remotecontrolpc.desktop.MainScreen$4.run(MainScreen.java:244) java.net.SocketException: Socket closed at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) at java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1877) at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1786) at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1286) at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1231) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1427) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java:1577) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:351) at remotecontrolpc.desktop.filesharing.Screenshot$1.run(Screenshot.java:39)

varunon9 commented 7 years ago

I have updated Android as well as Desktop app. Please download latest code and check once again.

hammadbutt commented 7 years ago

Thank you for your response. Let me take a look again.

On 3 August 2017 at 23:34, Varun kumar notifications@github.com wrote:

I have updated Android as well as Desktop app. Please download latest code and check once again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/varunon9/Remote-Control-PC/issues/10#issuecomment-320053731, or mute the thread https://github.com/notifications/unsubscribe-auth/AWR4_EYehFYZt55MV7vp5Q7Tz3qoEos6ks5sUhK1gaJpZM4Oh8Y5 .

hammadbutt commented 7 years ago

I have tried the updated code, but it doesn't connect with the desktop application. Here is a screenshot, you can see the error at the desktop side.

2017-08-08

varunon9 commented 7 years ago

Is your netbeans using Java 8?

varunon9 commented 7 years ago

Fixed.