Questions tagged [protostuff]

Protostuff is the stuff that leverages google's protobuf.

A serialization library with built-in support for forward-backward compatibility (schema evolution) and validation.

Protocol Buffers file parser and code generator.

web-site: http://www.protostuff.io/

source: https://github.com/protostuff/protostuff

43 questions
0
votes
2 answers

Backward Compatibility when adding a field in response of an API

I have added a couple of new fields to a Json response of an object .It rus fine when we update the client to hit the API . But older versions of the API give a serialization error. I am using PROTOSTUFF to serialize and deserialize the object . How…
Aman Kumar Sinha
  • 407
  • 6
  • 17
0
votes
1 answer

Protostuff serialize object like Map>

How can I serialize object like following example using Protostuff: Map> I know that I must to use MapSchema, but I don't know what I need to do with this object.
stoxa
  • 3
  • 2
0
votes
1 answer

Issue in deserialize protostuff object in Kafka Consumer

Getting following exception while deserializing byte[] into protostuff object in Kafka Consumer java.lang.NegativeArraySizeException at com.dyuproject.protostuff.GraphIOUtil.mergeDelimitedFrom(GraphIOUtil.java:209) at…
0
votes
1 answer

How to change the serializer/deserializer to be used by Aerospike?

I am using java client of aerospike. I wish to change the serializer that aerospike uses for java objects i.e. java serializer. I intend to use other faster serialization libraries e.g. PROTOSTUFF/AVRO. How do i set my custom serializer for use by…
Sachin Sharma
  • 1,446
  • 4
  • 18
  • 37
0
votes
1 answer

deserialize protostuff byte array with javascript

I used protostuff to transform to byte array a json input i have. The code in java is: LinkedBuffer buffer = LinkedBuffer.allocate(1024); Schema orderSchema = RuntimeSchema.getSchema(String.class); int i = 1 ; for(String p:poligonsStr) { …
Jolie
  • 33
  • 7
0
votes
0 answers

Akka http: Is it possible to use protostuff in akka-http marshalling and unmarshalling

I need to transfer instances of a class with a single field which is a Map[String, AnyRef] over wire. And I have issues to construct marshaller and unmarshaller to do the work, However I can serialize and deserialize instances of the class using…
Origin Jing
  • 109
  • 12
0
votes
1 answer

How to fix "import com.dyuproject cannot be resolved" error

I'm fairly new to Java and especially new to Maven and specifically the protostuff project (protostuff website). I need to use protostuff to serialize/deserialize XML to google's protobuf format. I tried using the protobuf-java-format package, but…
jkwinn26
  • 63
  • 8
0
votes
1 answer

Serialization and De-serialization of Throwable across JDK 1.6 and JDK 1.7 using ProtoStuff

We have two system one Running with JDK 1.6 and another with JDK 1.7. To communicate between the two node we are using ProtoStuff Serialization to convert binary & transfer to other node where its again the binary is de-serialized. JDK 1.7 added…
Pavan
  • 1
  • 2
0
votes
2 answers

Preserve unknown fields using Protostuff

I have this Java code (source): // Deserialize Person person = new Person(); InputStream in; XmlIOUtil.mergeFrom(in, person, Person.getSchema()); // Do stuff... // Serialize back into XML OutputStream out; XmlIOUtil.writeTo(out, person,…
Sundae
  • 724
  • 1
  • 8
  • 27
0
votes
0 answers

How to build akka-protostuff-serialization?

I'm using akka (akka-2.2.1) through java and I'm not familiar with scala or sbt. I need to change the serializer to one of the following. https://github.com/romix/akka-protostuff-serialization https://github.com/romix/akka-kryo-serialization How to…
RakeshPrasad
  • 103
  • 6
0
votes
1 answer

Protostuff serialized bytecode on Android cannot be deserialized on PC

When I try to deserialize my serialized model on PC, I get the strange error seen at the bottom. Deserializing works on Android, as does the case where I serialize the same model on PC and deserialize it on PC. So this appears to be an…
user2667976
  • 157
  • 2
  • 6
0
votes
1 answer

Using protostuff, how to skip reading a deleted entity?

I am part of a team that use Protostuff to read/write data. This is the mergeFrom method of a class extends from a Schema class: @Override public void mergeFrom(Input input, Entity entity) throws IOException { for(int number =…
swdev
  • 4,997
  • 8
  • 64
  • 106
-1
votes
1 answer

Problem with Import object_detection/protos/image_resizer.proto but not used protobuf compilation in OS High Sierra

I have a problem in a OS terminal compiled: ./bin/protoc object_detection/protos/*.proto --python_out=. object_detection/protos/input_reader.proto:5:1: warning: Import object_detection/protos/image_resizer.proto but not used. Anyone knows how can…
1 2
3