{"action":"opened","issue":{"url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/115","repository_url":"https://api.github.com/repos/firebase/FirebaseUI-Android","labels_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/115/comments","events_url":"https://api.github.com/repos/firebase/FirebaseUI-Android/issues/115/events","html_url":"https://github.com/firebase/FirebaseUI-Android/issues/115","id":153568296,"number":115,"title":"Problem with the POJO while using FirebaseRecyclerAdapter","user":{"login":"vijaysaimutyala","id":7084628,"avatar_url":"https://avatars.githubusercontent.com/u/7084628?v=3","gravatar_id":"","url":"https://api.github.com/users/vijaysaimutyala","html_url":"https://github.com/vijaysaimutyala","followers_url":"https://api.github.com/users/vijaysaimutyala/followers","following_url":"https://api.github.com/users/vijaysaimutyala/following{/other_user}","gists_url":"https://api.github.com/users/vijaysaimutyala/gists{/gist_id}","starred_url":"https://api.github.com/users/vijaysaimutyala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijaysaimutyala/subscriptions","organizations_url":"https://api.github.com/users/vijaysaimutyala/orgs","repos_url":"https://api.github.com/users/vijaysaimutyala/repos","events_url":"https://api.github.com/users/vijaysaimutyala/events{/privacy}","received_events_url":"https://api.github.com/users/vijaysaimutyala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-07T02:35:39Z","updated_at":"2016-05-07T02:35:39Z","closed_at":null,"body":"I was following the same example on the Firebase UI github page to populate recycler view with values from Firebase DB. But I'm having some issues with POJO.\r\n\r\nThe following is my POJO\r\n`public class Route {\r\n    String stop;\r\n    String time;\r\n\r\n    public Route() {\r\n    }\r\n\r\n    public Route(String stop, String time) {\r\n        this.stop = stop;\r\n        this.time = time;\r\n    }\r\n\r\n    public String getTime() {\r\n        return time;\r\n    }\r\n\r\n    public String getStop() {\r\n        return stop;\r\n    }\r\n}`\r\n\r\nThe following is my recyclerAdapter code to show data from firebase\r\n`itemsRef = rootRef.child(\"route\");\r\n        Toast.makeText(MainActivity.this, \"crossed itemRef\", Toast.LENGTH_SHORT).show();\r\n        firebaseRecyclerAdapter = new FirebaseRecyclerAdapter<Route, RouteViewHolder>(Route.class, android.R.layout.two_line_list_item, RouteViewHolder.class, itemsRef) {\r\n            @Override\r\n            public void populateViewHolder(RouteViewHolder routeViewHolder, Route route, int i) {\r\n                Toast.makeText(MainActivity.this, \"reached populate view holder\", Toast.LENGTH_SHORT).show();\r\n                Log.d(TAG, \"stop:\" + route.getStop());\r\n                Log.d(TAG, \"time: \" + route.getTime());\r\n                routeViewHolder.place.setText(route.getStop());\r\n                routeViewHolder.time.setText(route.getTime());\r\n            }\r\n        };\r\n        recyclerView.setAdapter(firebaseRecyclerAdapter);\r\n\r\n    }\r\n\r\n    public static class RouteViewHolder extends RecyclerView.ViewHolder {\r\n\r\n        TextView place;\r\n        TextView time;\r\n        View view;\r\n\r\n        public RouteViewHolder(View itemView) {\r\n            super(itemView);\r\n            view = itemView;\r\n            place = (TextView) view.findViewById(android.R.id.text1);\r\n            time = (TextView) view.findViewById(android.R.id.text2);\r\n        }\r\n    }`\r\n\r\nThe following is the error log I get\r\n`E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                                                            Process: abc.com.example.vijsu.listrecyclerfirebase, PID: 17558\r\n                                                                                            com.firebase.client.FirebaseException: Failed to bounce to type\r\n                                                                                                at com.firebase.client.DataSnapshot.getValue(DataSnapshot.java:183)\r\n                                                                                                at com.firebase.ui.FirebaseRecyclerAdapter.parseSnapshot(FirebaseRecyclerAdapter.java:161)\r\n                                                                                                at com.firebase.ui.FirebaseRecyclerAdapter.getItem(FirebaseRecyclerAdapter.java:150)\r\n                                                                                                at com.firebase.ui.FirebaseRecyclerAdapter.onBindViewHolder(FirebaseRecyclerAdapter.java:190)\r\n                                                                                                at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5465)\r\n                                                                                                at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5498)\r\n                                                                                                at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4735)\r\n                                                                                                at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4611)\r\n                                                                                                at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1988)\r\n                                                                                                at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1384)\r\n                                                                                                at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347)\r\n                                                                                                at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574)\r\n                                                                                                at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3026)\r\n                                                                                                at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2903)\r\n                                                                                                at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1457)\r\n                                                                                                at android.support.v7.widget.RecyclerView.access$400(RecyclerView.java:147)\r\n                                                                                                at android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:285)\r\n                                                                                                at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)\r\n                                                                                                at android.view.Choreographer.doCallbacks(Choreographer.java:670)\r\n                                                                                                at android.view.Choreographer.doFrame(Choreographer.java:603)\r\n                                                                                                at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)\r\n                                                                                                at android.os.Handler.handleCallback(Handler.java:739)\r\n                                                                                                at android.os.Handler.dispatchMessage(Handler.java:95)\r\n                                                                                                at android.os.Looper.loop(Looper.java:148)\r\n                                                                                                at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n                                                                                                at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n                                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n                                                                                             Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class abc.com.example.vijsu.listrecyclerfirebase.Route] from String value; no single-String constructor/factory method\r\n                                                                                                at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator._createFromStringFallbacks(StdValueInstantiator.java:428)\r\n                                                                                                at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromString(StdValueInstantiator.java:299)\r\n                                                                                                at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromString(BeanDeserializerBase.java:1056)\r\n                                                                                                at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:136)\r\n                                                                                                at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:123)\r\n                                                                                                at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888)\r\n                                                                                                at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034)\r\n                                                                                                at com.firebase.client.DataSnapshot.getValue(DataSnapshot.java:181)\r\n                                                                                                at com.firebase.ui.FirebaseRecyclerAdapter.parseSnapshot(FirebaseRecyclerAdapter.java:161) \r\n                                                                                                at com.firebase.ui.FirebaseRecyclerAdapter.getItem(FirebaseRecyclerAdapter.java:150) \r\n                                                                                                at com.firebase.ui.FirebaseRecyclerAdapter.onBindViewHolder(FirebaseRecyclerAdapter.java:190) \r\n                                                                                                at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:5465) \r\n                                                                                                at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:5498) \r\n                                                                                                at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4735) \r\n                                                                                                at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:4611) \r\n                                                                                                at android.support.v7.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:1988) \r\n                                                                                                at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1384) \r\n                                                                                                at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1347) \r\n                                                                                                at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:574) \r\n                                                                                                at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:3026) \r\n                                                                                                at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2903) \r\n                                                                                                at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(RecyclerView.java:1457) \r\n                                                                                                at android.support.v7.widget.RecyclerView.access$400(RecyclerView.java:147) \r\n                                                                                                at android.support.v7.widget.RecyclerView$1.run(RecyclerView.java:285) \r\n                                                                                                at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) \r\n                                                                                                at android.view.Choreographer.doCallbacks(Choreographer.java:670) \r\n                                                                                                at android.view.Choreographer.doFrame(Choreographer.java:603) \r\n                                                                                                at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) \r\n                                                                                                at android.os.Handler.handleCallback(Handler.java:739) \r\n                                                                                                at android.os.Handler.dispatchMessage(Handler.java:95) \r\n                                                                                                at android.os.Looper.loop(Looper.java:148) \r\n                                                                                                at android.app.ActivityThread.main(ActivityThread.java:5417) \r\n                                                                                                at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) \r\n                                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) \r\n`\r\n\r\nBut when I remove one of the parameter from the parameterised constructor either stop/ time, it works fine without error but does not return the removed parameter from the getter method. Below\r\nis my firebase DB\r\n![image](https://cloud.githubusercontent.com/assets/7084628/15089810/778f587a-142a-11e6-9e60-8449417b5509.png)\r\n"}}