title: Read a Specific Value from Firebase Database in android
body: <p>I am trying to get a specific value from a firebase database that I have already created. I have followed this <a href="https://www.youtube.com/watch?v=Yt75ZIGdJ4Y" rel="nofollow noreferrer">youtube tutorial</a> and another <a href="https://stackoverflow.com/questions/38652007/how-to-retrieve-specific-list-of-data-from-firebase?rq=1">similar question</a> which is quite related to what I am trying to achieve. </p>
  
  <p>This is how my Firebase Database looks like <a href="https://i.stack.imgur.com/McryY.jpg" rel="nofollow noreferrer">Database Tree</a></p>
  
  <p>I am trying to fetch all the individual items like Name, Snippet, Lat, Long from this db. </p>
  
  <p>Here is what I have tried so far. Right now I have only tried to get <strong>Name</strong> item</p>
  
  <p><strong>In Oncreate Method :</strong></p>
  
  <pre><code>final TextView nametext = (TextView)findViewById(R.id.name);
  
          Firebase.setAndroidContext(this);
         final Firebase ref = new Firebase("https://fir-with-maps.firebaseio.com/Group 2");
  
          final List&lt;PlumbersList&gt; listofplumbers = new ArrayList&lt;&gt;();
  
          ref.addChildEventListener(new ChildEventListener() {
              @Override
              public void onChildAdded(DataSnapshot dataSnapshot, String s) {
  
                  PlumbersList plumberslist = dataSnapshot.getValue(PlumbersList.class);
                  listofplumbers.add(plumberslist);
                  String name = plumberslist.Name;
                  nametext.setText(name);
              }
  
              @Override
              public void onChildChanged(DataSnapshot dataSnapshot, String s) {
  
              }
  
              @Override
              public void onChildRemoved(DataSnapshot dataSnapshot) {
  
              }
  
              @Override
              public void onChildMoved(DataSnapshot dataSnapshot, String s) {
  
              }
  
              @Override
              public void onCancelled(FirebaseError firebaseError) {
  
              }
          });
  
      }
  </code></pre>
  
  <p><strong>PlumberList class</strong></p>
  
  <pre><code>public class PlumbersList {
  
      String Name;
      String Snippet;
      String Lat;
      String Long;
  
      public PlumbersList() {
      }
  
      public PlumbersList(String name, String snippet, String lat, String aLong) {
          Name = name;
          Snippet = snippet;
          Lat = lat;
          Long = aLong;
      }
  
      public String getName() {
          return Name;
      }
  
      public String getSnippet() {
          return Snippet;
      }
  
      public String getLat() {
          return Lat;
      }
  
      public String getLong() {
          return Long;
      }
  </code></pre>
  
  <p>The app crashes after a few seconds. Here is what error logcat looks like</p>
  
  <pre><code>09-09 23:41:19.381 1375-1375/digiart.mapwithfirebase E/UncaughtException: com.firebase.client.FirebaseException: Failed to bounce to type
  at com.firebase.client.DataSnapshot.getValue(DataSnapshot.java:183)
  at digiart.mapwithfirebase.checkingfirebase$1.onChildAdded(checkingfirebase.java:36)
  at com.firebase.client.core.ChildEventRegistration.fireEvent(ChildEventRegistration.java:48)
  at com.firebase.client.core.view.DataEvent.fire(DataEvent.java:45)
  at com.firebase.client.core.view.EventRaiser$1.run(EventRaiser.java:38)
  at android.os.Handler.handleCallback(Handler.java:815)
  at android.os.Handler.dispatchMessage(Handler.java:104)
  at android.os.Looper.loop(Looper.java:210)
  at android.app.ActivityThread.main(ActivityThread.java:5833)
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:372)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879)
  Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "Snippet" (class digiart.mapwithfirebase.PlumbersList), not marked as ignorable (0 known properties: ])
  at [Source: java.io.StringReader@297f6a4e; line: 1, column: 13] (through reference chain: digiart.mapwithfirebase.PlumbersList["Snippet"])
  at com.fasterxml.jackson.databind.DeserializationContext.reportUnknownProperty(DeserializationContext.java:555)
  at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:708)
  at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1160)
  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:315)
  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:121)
  at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888)
  at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034)
  at com.firebase.client.DataSnapshot.getValue(DataSnapshot.java:181)
  at digiart.mapwithfirebase.checkingfirebase$1.onChildAdded(checkingfirebase.java:36) 
  at com.firebase.client.core.ChildEventRegistration.fireEvent(ChildEventRegistration.java:48) 
  at com.firebase.client.core.view.DataEvent.fire(DataEvent.java:45) 
  at com.firebase.client.core.view.EventRaiser$1.run(EventRaiser.java:38) 
  at android.os.Handler.handleCallback(Handler.java:815) 
  at android.os.Handler.dispatchMessage(Handler.java:104) 
  at android.os.Looper.loop(Looper.java:210) 
  at android.app.ActivityThread.main(ActivityThread.java:5833) 
  at java.lang.reflect.Method.invoke(Native Method) 
  at java.lang.reflect.Method.invoke(Method.java:372) 
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113) 
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879) 
      09-09 23:41:19.711 1375-1375/digiart.mapwithfirebase E/AndroidRuntime: FATAL EXCEPTION: main                                                                           Process: digiart.mapwithfirebase, PID: 1375
  com.firebase.client.FirebaseException: Failed to bounce to type
  at com.firebase.client.DataSnapshot.getValue(DataSnapshot.java:183)
  at digiart.mapwithfirebase.checkingfirebase$1.onChildAdded(checkingfirebase.java:36)
  at com.firebase.client.core.ChildEventRegistration.fireEvent(ChildEventRegistration.java:48)
  at com.firebase.client.core.view.DataEvent.fire(DataEvent.java:45)
  at com.firebase.client.core.view.EventRaiser$1.run(EventRaiser.java:38)
  at android.os.Handler.handleCallback(Handler.java:815)
  at android.os.Handler.dispatchMessage(Handler.java:104)
  at android.os.Looper.loop(Looper.java:210)
  at android.app.ActivityThread.main(ActivityThread.java:5833)
  at java.lang.reflect.Method.invoke(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:372)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879)
  Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "Snippet" (class digiart.mapwithfirebase.PlumbersList), not marked as ignorable (0 known properties: ])
  at [Source: java.io.StringReader@297f6a4e; line: 1, column: 13] (through reference chain: digiart.mapwithfirebase.PlumbersList["Snippet"])
  at com.fasterxml.jackson.databind.DeserializationContext.reportUnknownProperty(DeserializationContext.java:555)
  at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:708)
  at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1160)
  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:315)
  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:121)
  at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888)
  at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034)
  at com.firebase.client.DataSnapshot.getValue(DataSnapshot.java:181)
  at digiart.mapwithfirebase.checkingfirebase$1.onChildAdded(checkingfirebase.java:36) 
  at com.firebase.client.core.ChildEventRegistration.fireEvent(ChildEventRegistration.java:48) 
  at com.firebase.client.core.view.DataEvent.fire(DataEvent.java:45) 
  at com.firebase.client.core.view.EventRaiser$1.run(EventRaiser.java:38) 
  at android.os.Handler.handleCallback(Handler.java:815) 
  at android.os.Handler.dispatchMessage(Handler.java:104) 
  at android.os.Looper.loop(Looper.java:210) 
  at android.app.ActivityThread.main(ActivityThread.java:5833) 
  at java.lang.reflect.Method.invoke(Native Method) 
  at java.lang.reflect.Method.invoke(Method.java:372) 
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113) 
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:879) 
  </code></pre>
  
  <p>I am new in android coding so I might be making some very silly mistake here.</p>