jasonjack2015 / protobuf

Automatically exported from code.google.com/p/protobuf
Other
0 stars 0 forks source link

Protocol buffers java #683

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have a .java class created by RestaurantBestLocationDTO.proto called 
RestaurantBestLocationDTOOuterClass so i make a api get call to my server 
with content-type application/x-protobuf then i got a message but i can find 
the way to parse this message into a RestaurantBestLocationDTOOuterClass list 

im doing something like this 

Parser<List<RestaurantBestLocationDTOOuterClass>> parserData;
List<RestaurantBestLocationDTOOuterClass> list = 
parserData.parseFrom(inputStream);

obviously it says that the error is nullpointer exception because parserData is 
null
but i cant get an Instance because is an Inferface

so can i do to get what i want?

i just need to parse the response and get the list

What is the expected output? What do you see instead?
I want to get a List of RestaurantBestLocationDTOOuterClass 

What version of the product are you using? On what operating system?
protobuf 2.6.1

Please provide any additional information below.
...

Original issue reported on code.google.com by bisteni...@gmail.com on 19 Dec 2014 at 4:32