protostream | serialization library based on Protocol Buffers | Serialization library

 by   infinispan Java Version: 4.6.5.Final License: Non-SPDX

kandi X-RAY | protostream Summary

kandi X-RAY | protostream Summary

protostream is a Java library typically used in Utilities, Serialization applications. protostream has no vulnerabilities, it has build file available and it has low support. However protostream has 38 bugs and it has a Non-SPDX License. You can download it from GitHub, Maven.

ProtoStream is a serialization library based on Protobuf data format. It is open source software released under the Apache License, v2.0. ProtoStream is part of the Infinispan data grid platform. For more information about Infinispan visit the project's website on

            kandi-support Support

              protostream has a low active ecosystem.
              It has 26 star(s) with 26 fork(s). There are 14 watchers for this library.
              There were 3 major release(s) in the last 6 months.
              protostream has no issues reported. There are 3 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of protostream is 4.6.5.Final

            kandi-Quality Quality

              protostream has 38 bugs (0 blocker, 0 critical, 36 major, 2 minor) and 511 code smells.

            kandi-Security Security

              protostream has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              protostream code analysis shows 0 unresolved vulnerabilities.
              There are 1 security hotspots that need review.

            kandi-License License

              protostream has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              protostream releases are not available. You will need to build from source code and install.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              protostream saves you 11880 person hours of effort in developing the same functionality from scratch.
              It has 23995 lines of code, 2364 functions and 246 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed protostream and discovered the below as its top functions. This is intended to give you an instant insight into protostream implemented functionality, and help decide if they suit your requirements.
            • Generate the proto documentation
            • Write proto type
            • Generate the indentation
            • Scan class
            • Write byte to stream
            • Write integer
            • Writes an input stream to the stream context
            • Command - line parser
            • Parses command line options
            • Write integer field
            • Write array
            • Writes a collection to the stream
            • Gets the base packages
            • Processes the generated AutoPropertiesBuilder
            • Serializes a User object to a proto stream
            • Returns a TypeMirror for the given type
            • Checks if a generated source file is up to date
            • Ensure that the builder is instantiated
            • Reads an account from a proto stream
            • Write long array
            • Write integer array
            • Append the proto definition
            • Reads a transaction from a proto stream
            • Deserialize a User object
            • Translates the modifiers of the given Element
            • Unmarshalls the deserialized field
            Get all kandi verified functions for this library.

            protostream Key Features

            No Key Features are available at this moment for protostream.

            protostream Examples and Code Snippets

            No Code Snippets are available at this moment for protostream.

            Community Discussions


            AutoProtoSchemaBuilder is not generating proto file
            Asked 2020-May-28 at 18:59

            Updated my code as per @Ryan Emerson suggestion but still i don't see any auto-generation of Impl file and proto file



            Answered 2020-May-27 at 16:44

            You are not saying which build system is used. maven maybe ? Did you add the protostream annotation processor as a dependency? Having a definite answer to these questions would help unriddle the issue of code generation. And after, we still need to find out who is supposed to initialize that dummyInitializer field.



            Updating from Infinispan 7 to 10, how to deal with UUID as key of UUID as field in a class?
            Asked 2020-Mar-06 at 10:17

            I am trying to update a big project that was using Infinispan 7 to the v10.1.3.

            I would like to use the new protostream marshaller, but I don't understand how to be able to use UUID as cache key, or even (easier ?) as a field in a class that I want to insert in a cache.

            My cache was accessed like that : Map testUUIDAsKey = manager.getCache("t1");

            Here when trying to put a value into the cache, infinispan tells me that he don't know how to marshal an uuid.

            Ok, so after reading the documentation, I tryied to switch to a easier test case : Map testUUIDAsField = manager.getCache("t2");

            Here, the Bar class have a field of type UUID, and I tried to use the protostream annotation processor that will generated and build a proto file automatically when the right annotation are used.

            But this time, the annotation processor tells me that UUID class must be instantiable using an accessible no-argument constructor.

            I know that protobuf can't manage UUID, I can store the value as string or by storing the 2 long values part of an uuid.

            How can I register a UUID marshaller that would use String as it representation in the end ?

            And how can I tell the annotation processor that it must use this marshaller ?

            Then, how can I use UUID as a key ?




            Answered 2020-Mar-06 at 10:17

            Currently Infinispan registers a Protostream marshaller for the UUID, but unfortunately it is only in the server. I have created ISPN-11426 to make it so that UUIDs will be marshallable out of the box in embedded mode in future releases (10.1.4.Final and 11.x).

            In the mean time, you can get UUIDs to work as the key by creating a SerializationContextInitializer and defining a UUIDMarshallerclass:



            Infinispan 9 - Server exception when trying to put an object in cache using Hotrod client and Protobuf
            Asked 2018-Nov-08 at 01:12

            I have a problem using Infinispan 9.4.0/9.4.1 with Hot Rod Client and Protobuf protocol in order to be able to use queries.

            This is my cache configuration:



            Answered 2018-Nov-07 at 09:41

            To be able to use queries over Hot Rod, you don't need compatibility mode, I can see your cache has . Query also does not require the deployment of entities in the server.

            Regarding compatibility mode, it was deprecated in Infinispan 9.4.0, the alternative being

            Finally, if you really need to store unmarshalled objects in the cache,you need to deploy entities and marshallers in the server. To deploy extra protobuf marshallers, see:


            To deploy entities, see:




            java.lang.ClassNotFoundException: org.infinispan.protostream.RawProtobufMarshaller in JBoss Fuse
            Asked 2017-Dec-13 at 12:48

            Note: I've narrowed the problem down, and rewritten the question

            I am trying to use Infinispan (in the guise of JBoss Data Grid) in Karaf (in the guise of JBoss Fuse) and hitting a wall when it comes to the protostream dependency. I wonder if anyone out there can tell me what I'm doing wrong.

            I have boiled my problem down to a sample project here:

            The project contains a blueprint which declares two beans: a factory for creating an Infinispan RemoteCache and a bean produced by the factory for accessing the default cache. There's also an example entity with protostream annotations and a feature file to install it.

            When the feature is installed it looks good:



            Answered 2017-Dec-13 at 12:48

            Turns out this was actually a bug in protostream. Support from Red Hat got this fixed.

            See for details.


            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install protostream

            You can download it from GitHub, Maven.
            You can use protostream like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the protostream component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer For Gradle installation, please refer .


            Bug reports go here.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone infinispan/protostream

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Serialization Libraries


            by protocolbuffers


            by google


            by capnproto


            by protobufjs


            by golang

            Try Top Libraries by infinispan


            by infinispanJava


            by infinispanJava


            by infinispanJava


            by infinispanGo