title: FirebaseException: Failed to bounce to type in Android but Model class properties and JSON properties are same
body: <p>I'm still getting an exception:</p>
  
  <pre><code>com.firebase.client.FirebaseException: Failed to bounce to type exception 
  </code></pre>
  
  <p>for following line</p>
  
  <pre><code>Peoples people = dataSnapshot.getValue(Peoples.class);
  </code></pre>
  
  <p><strong>Peoples object</strong></p>
  
  <pre><code>public class Peoples {
  
      private String ambition;
      private String fname;
      private String lname;
      private String emailid;
       Peoples(){
  
       }
       Peoples(String ambition,String fname,String lname,String emailid){
          this.ambition=ambition;
          this.fname=fname;
          this.lname=lname;
          this.emailid=emailid;
       }
  
  
       public String getAmbition() {
          return ambition;
       }
  
       public String getFname() {
          return fname;
       }
  
       public String getLname() {
          return lname;
       }
  
       public String getEmailid() {
          return emailid;
       }
  }
  </code></pre>
  
  <p><strong>Data</strong></p>
  
  <pre><code>peoples  
   -K3yJU5z646EZiIliPuJ
     ambition: "Doctor"
     emailid: "harshan@gmail.com"
     fname: "Mohammed"
     lname: "Thanish"
   -K3yJcoLNqY228wQO1AX
     ambition: "Doctor"
     emailid: "ndlhassan@gmail.com"
     fname: "Mohammed"
     lname: "Thanish"
  </code></pre>
  
  <p><strong>Code</strong></p>
  
  <pre><code>userRef
    .orderByChild("emailid")
    .equalTo("ndlhassan@gmail.com")
    .addValueEventListener(new ValueEventListener() {
      @Override
      public void onDataChange(DataSnapshot dataSnapshot) {
        System.out.println("USERRRRRRRRRRRRRRRRRRR are " + dataSnapshot.getChildrenCount() + " blog posts");
        System.out.println("USERRRRRRRRRRRRRRRRRRR" + dataSnapshot.getValue());
        Peoples people = dataSnapshot.getValue(Peoples.class);
        System.out.println("USERRRRRRRRRRRRRRRRRRR" + people.getEmailid());
      }
  
      @Override
      public void onCancelled(FirebaseError firebaseError) {
  
      }
    });
  </code></pre>