Skip to content
Advertisement

Direct Buffer Memory error when connecting mqtt

we are running an Apache Beam Apllication on a Flink Cluster.

Since a few days the application fails with the following error:

JavaScript

The connection is build up with the following method:

JavaScript

But it runs on my machine When I start the application from my eclipse project all works fine. So the error only happen in the Flink Cluster which makes debugging a little bit difficult.

The only thing that has changed on the server was an update to openjdk-11.0.14. Updating the java on my pc to the same version doesn’t create the error at all.

So I’m running out of ideas what could cause the error.

So I checked the following things

  • Is the SSL Zertificate valid –> Yes
  • Is username and password correct –> Yes
  • Is there any logging on the mqtt side –> no

It seems the Java application fails before it could connect to the mqtt broker. Because there aren’t any login attempts on the mqtt broker.

We are using spring-boot-2.1.18 and hivemq-mqtt-client:1.2.2. The Broker is an vernemq.

Any suggestions are welcome.

Thanks in advance

Advertisement

Answer

So I got fixed it.

I don’t know where the problem exactly was.

I load a backup of my vm when all was working. Then I updated openjdk-11 to the latest version. After this the error appears again.

So it’s really an problem with the update to openjdk-11-jdk 11.0.14.

After deleting openjdk and make a clean reinstall all works fine again.

Maybe this will help someone.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement