Jackson Mismatched Input Exception

Suppose you are trying to do something like: But the output is something like: There are at least two reasons: Configuration file does not exist; Setters for MyConfiguration.class are named incorrectly or cannot be accessed.

READ MORE

Using gRPC with JKS

gRPC doesn’t support JKS out of the box, but there is a workaround. Below is an example of how to use gRPC and JKS. Server side Client side If you don’t need to use custom truststore, you need to do nothing. If you need to use custom truststore, use example below: You can use trustManagerFactory […]

READ MORE

OPENSSL internal: SSLV3 ALERT HANDSHAKE FAILURE

Full text of the error: If you encounter such an error, there are at least two reasons: Incompatible version of boring-ssl library. Private key problem. For example, we wrote our own KeyManager implementation and the getPrivateKey() method returns null, or there is no such private key at all.

READ MORE

Apache Curator: Invalid config event received

The exception looks like this: We know, that in zookeeper.properties (or zoo.cfg) there is a cluster configuration of the following type: From a certain version of ZooKeeper, it became like this https://zookeeper.apache.org/doc/r3.5.3-beta/zookeeperReconfig.html#ch_reconfig_format: Apache Curator switched to a new format, discontinuing support for the old one. However, ZooKeeper kept it: on the same page in the […]

READ MORE

Keytab encryption types list

Let’s imagine that we needed to determine what principles and what encryption types exist in a certain keytab. To do this, we will use the ktutil utility: After we have entered the CLI of this utility, we type the following commands: Something like this will be displayed:

READ MORE

Error while calling a method on a Groovy class

You may encounter an error when compiling your project that looks like this: It is not at all clear what class are meant. If you work with IntelliJ IDEA – this is the reason. Sometime it parses maven build/compile logs incorrectly, so the second part of the exception was lost. Compile manually through the terminal […]

READ MORE

ZooKeeper recursive watcher

If you need to set up a recursive watchers (watch on all nodes), the standard ZooKeeper’s Watcher class will not help much – it is installed on only 1 node (or one-level-forward when you calling getChildren()), and is also a one-time event. This means that after each watch trigger, you need to install a new […]

READ MORE