title: Using retrofit with realm is failing to get the json with objects inside
body: <p>I 'm having problems when trying to use the retrofit with realm when I need to pick up an object that has other inner object.</p>
  
  <p>The problem is the <code>.enqueue</code> method of retrofit never get a callback and it Looks like the parse is taking forever.</p>
  
  <p>I got this in the logs</p>
  
  <p><a href="https://i.stack.imgur.com/pO2MO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pO2MO.png" alt="enter image description here"></a></p>
  
  <p>The code work when the model classes bellow has no other model within (Album and Artist).</p>
  
  <p>The simple Json im parsing. It is an album with an artist inside.</p>
  
  <pre><code>{
      id: "2",
      name: "CoverGirl",
      image: "http://res.cloudinary.com/thefader/image/upload/s--Ky_sXRw2--/w_760,c_limit,q_jpegmini,f_auto/mila_j_cover_q96o4t.jpg",
      bigger: false,
      artist: {
          id: 2,
          name: "Mila J",
          image: "http://www.billboard.com/files/styles/article_main_image/public/media/mila-j-pose-2015-billboard-650.jpg"
      }
  }
  </code></pre>
  
  <p>Album class</p>
  
  <pre><code>public class Album {
      private int id;
      private String name;
      private Artist artist;
  
      ...getter and setter for all attributes
  }
  </code></pre>
  
  <p>Artist class</p>
  
  <pre><code>public class Artist extends RealmObject{
      private int id;
      private String name;
  
      ...getter and setter for all attributes
  }
  </code></pre>
  
  <p>And i'm calling it using</p>
  
  <pre><code>    Retrofit retrofit = new Retrofit.Builder()
              .baseUrl("my_url_is_here")
              .addConverterFactory(GsonConverterFactory.create())
              .build();
  
      GitHubService service = retrofit.create(GitHubService.class);
      //The problem is here. the enqueue method stops here, and in the log cat show the messages that is in the image I publish
      service.getAlbum().enqueue(new Callback&lt;Album&gt;() {
          @Override
          public void onResponse(Call&lt;Album&gt; call, Response&lt;Album&gt; response) {
              System.out.println();
          }
  
          @Override
          public void onFailure(Call&lt;Album&gt; call, Throwable t) {
              System.out.println();
          }
      });
  </code></pre>
  
  <p>I think the problem is because my models extends <code>RealmObject</code> an retrofit can't parse it for some reason.</p>
  
  <p>I just want a explanation or maybe a solution for this. Any answers will be very helpful.</p>