Jackson YAML to POJO mapping
If you got MismatchedInputException: Then visit this link: https://mchesnavsky.tech/jackson-mismatched-input-exception/.
READ MOREsimply about difficult
If you got MismatchedInputException: Then visit this link: https://mchesnavsky.tech/jackson-mismatched-input-exception/.
READ MORESuppose 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 MOREIf you need to get a list of keytab principals through Java code, you can use the sun.security.krb5.internal.ktab.KeyTab class:
READ MOREgRPC 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 MOREFull 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 MOREFull text of the error: If you encounter such an exception, it could mean that you are trying to access somewhere using https/ssl/tls, but the endpoint does not support it, and supports plain connection/http. Thanks ingenuity2k.
READ MOREThe 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 MORELet’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 MOREYou 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 MOREIf 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