![]() NewBuilder.getCarinformationBuilder(1).setCountry( fleetObj.getCARINFORMATION().getCOUNTRY() ) ![]() NewBuilder.getCarinformationBuilder(1).setCity( carObj.getCARINFORMATION().getCITY() ) NewBuilder.getCarinformationBuilder(1).setPostalcode( carObj.getCARINFORMATION().getPOSTALCODE() ) ![]() NewBuilder.getCarinformationBuilder(1).setStreet( carObj.getCARNFORMATION().getSTREET() ) Here is the code which shows how the data is written on the server side: // carObj returns the necessary Stringsīuilder newBuilder = DesktopDevice_() Repeated Carinformation carinformation = 3 Option java_outer_classname = "DesktopDevice_getCarsResponse" Therefore I hope that it is enough to post the protobuf definition here: package protobuf I know that in most cases the error lies in a protobuf file with the wrong syntax. The expection happens when I call "parseFrom()". When I am deserializing the sent payload on the client side eclipse throws a expection of the follogwing type: Exception in thread "main" : Protocol message tag had invalid wire type. My application sends data through protobuf from a server to a client.
0 Comments
Leave a Reply. |