protocol-buffers

Protocol Buffers MIME problem

梦想的初衷 提交于 2019-12-07 21:44:31
Help! Trying to implement Protocol Buffers via Rest (Jersey), but get this exception. class com.util.ProtobufMessageBodyReader class com.util.ProtobufMessageBodyWriter Jul 6, 2010 3:43:37 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-9102 Jul 6, 2010 3:43:37 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 45485 ms Jul 6, 2010 3:49:00 PM org.apache.catalina.connector.CoyoteAdapter convertURI SEVERE: Invalid URI encoding; using HTTP default Jul 6, 2010 3:49:00 PM com.sun.jersey.spi.container.ContainerRequest getEntity SEVERE: A

Protobuf RPC not available on Hadoop 2.2.0 single node server?

戏子无情 提交于 2019-12-07 18:47:48
问题 I am trying to run a hadoop 2.2.0 mapreduce job on my local single node cluster installed by following this tutorial: http://codesfusion.blogspot.co.at/2013/10/setup-hadoop-2x-220-on-ubuntu.html?m=1 Though on the server side the following exception is thrown: org.apache.hadoop.ipc.RpcNoSuchProtocolException: Unknown protocol: org.apache.hadoop.yarn.api.ApplicationClientProtocolPB at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.getProtocolImpl(ProtobufRpcEngine.java:527)

maven-protoc-plugin configuration in pom.xml incorrect

不问归期 提交于 2019-12-07 18:23:17
问题 Problem I am solving : I need a Maven plugin for Protobuf and from my google searches, I have concluded that the maven-protoc-plugin has the most mindshare at the moment. The most recent activity on this plugin was in March 2013 which is also very encouraging (Link: https://code.google.com/p/protobuf/issues/detail?id=476) My roadblocks : I am unable to get the plugin to work. Specifically, I am unable to get the plugin to download. I use Maven with Eclipse [Eclipse Java EE IDE for Web

C++ serialization library that supports partial serialization? [closed]

本秂侑毒 提交于 2019-12-07 18:16:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Are there any good existing C++ serialization libraries that support partial serialization? By "partial serialization" I mean that I might want to save the values of 3 specific members, and later be able to apply that saved copy to a different instance. I'd only update those 3 members and leave the others intact.

VS Code PyLint Error E0602 (undefined variable) with ProtoBuf compiled Python Structure

跟風遠走 提交于 2019-12-07 16:31:15
问题 I was using Visual Studio for a long time, but it was becoming too complicated to maintain. Now I tried to move to VS Code, but it throws a number of PyLint error messages that don't make sense to me (and the program still works as expected). These errors happen primarily with Python code generated from a GoogleProtoBuf structure. For example: from lbsnstructure.lbsnstructure_pb2 import lbsnPost def geoaccuracy_within_threshold(post_geoaccuracy, min_geoaccuracy): """Checks if geoaccuracy is

What are features of using Proguard in project with Protocol Buffers?

风流意气都作罢 提交于 2019-12-07 16:26:50
问题 I have a project in where Google Protocol Buffers are used. Once I try to obfuscate it with ProGuard it seems that protobuf causes problem. All my own classes I package into mybuildedclasses.jar . Google code is packaged into protbuf.jar mybuildedclasses.jar protobuf.jar other external jars After that I am trying to obfuscate mybuildedclasses.jar . Config file is similar to this one. Eventually all jars are packaged inside another fat jar. I run the program and once message is tried to be

protocol buffers: how to serialize and deserialize multiple messages into a file (c++)?

女生的网名这么多〃 提交于 2019-12-07 11:03:31
问题 I am new to Protocol Buffers and c++ but my task requires me to use the two. I want to write a structure of data ( message) into a single file multiple times and be able to read the data. i can read and write a single message but multiple messages is proving harder. I have looked for answers for hours but i can't seem to be able to read the data as a structure. Any example code or pointers will be very helpful. This is the format of my structure: typedef struct Entry { char name[ NAME_MAX];

How to handle different versions of python protobuf

我的梦境 提交于 2019-12-07 10:43:36
问题 My python package contains a lot of files compiled by python-protobuf (python2-protobuf-2.5.0 on Arch Linux), I installed the package on Ubuntu server 12.04.3 (which have python-protobuf-2.4.1), tried to run the code, and hit the following error: from google.protobuf.internal import enum_type_wrapper ImportError: cannot import name enum_type_wrapper I think it's because the protobuf modules in my package are compiled by protobuf-2.5.0 and they do not work with protobuf-2.4.1. I have no idea

Extending protobuf.FieldOptions in imported .proto file

半城伤御伤魂 提交于 2019-12-07 09:57:12
问题 I'm trying to define my custom field option in google protocol buffers. If I create such a file, everything works ok: import "google/protobuf/descriptor.proto"; package tutorial; extend google.protobuf.FieldOptions { optional int32 myopt = 70000; } message Persona { required string name = 1 [(myopt)=5]; } However, if I try to move "myopt" definition to another file, compilation fails: myext.proto: package myext; import "google/protobuf/descriptor.proto"; extend google.protobuf.FieldOptions {

How to capture and modify Google Protocol Buffers in a Django view?

余生颓废 提交于 2019-12-07 08:36:28
Here is a link to the proto file . Please can someone help me understand how to make this work: from django.views.decorators.csrf import csrf_exempt from bitchikun import payments_pb2 @csrf_exempt def protoresponse(request): xpo = payments_pb2.Payment.ParseFromString(request) t = type(xpo) xpa = request.PaymentACK xpa.payment = xpo.SerializeToString() xpa.memo = u'success' return HttpResponse(xpa.SerializeToString(), content_type="application/octet-stream") All input appreciated :) OK so I think I understand what is happening now. You have a system which is POSTing a serialized protobuf to