The error I find is using a class that inherits from AsyncTask on Android.
Inside I use an object of my class User, it communicates with a server, it handles the data ... until I do the return and I skip this exception. The class is imported
protected User doInBackground(Object... values){
//código de conexión con el servidor
ObjectInputStream stream = new ObjectInputStream(socket.getInputStream());
user = (User) stream.readObject();
// Aquí puedo obtener todos los datos del usuario
String received = user.getPhone();
Log.i("I/TCP Client", "Received " + received);
Log.i("I/TCP Client", "");
//cierra conexion
socket.close();
//publishProgress(received);
return user; // y justo cuando llega aquí salta al error
}catch...
Thank you very much.