Unable to start HiveMQ Enterprise Edition

Hi Team,

I have downloaded the HiveMQ Enterprise Edition 4.7.1 and trying to run. Getting the below error.

2021-10-14 21:11:42,708 INFO - Starting HiveMQ Enterprise Server
2021-10-14 21:11:42,708 INFO - HiveMQ version: 4.7.1
2021-10-14 21:11:42,708 INFO - HiveMQ home directory: C:\hivemq-ce-2021.2
2021-10-14 21:11:42,716 INFO - Log Configuration was overridden by C:\hivemq-ce-2021.2\conf\logback.xml
2021-10-14 21:11:43,109 INFO - This node’s ID is zV8PO
2021-10-14 21:11:43,109 INFO - Clustering is disabled
2021-10-14 21:11:43,167 ERROR - Uncaught Error:
java.lang.IndexOutOfBoundsException: Index -2 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(
at java.base/jdk.internal.util.Preconditions.checkIndex(
at java.base/java.util.Objects.checkIndex(
at java.base/java.util.ArrayList.get(
at com.esotericsoftware.kryo.util.MapReferenceResolver.getReadObject(Unknown Source)
at com.esotericsoftware.kryo.Kryo.readReferenceOrNull(Unknown Source)
at com.esotericsoftware.kryo.Kryo.readObject(Unknown Source)
at fd.c.a(Unknown Source)
at fd.a.a(Unknown Source)
at fb.c.a(Unknown Source)
at com.hivemq.HiveMQServer.a(Unknown Source)
at com.hivemq.HiveMQServer.d(Unknown Source)
at com.hivemq.HiveMQServer.main(Unknown Source)
Press any key to continue . . .

Thanks & Regards,

Hi @vgkkonda,

The problem is that the EE version (4.7.1) tries to load the data of the CE version and that is not possible (as I see you run 4.7.1 in hivemq-ce-2021.2 folder).

Delete (or backup) the content of the data folder and the problem should be gone.

Michael from the HiveMQ team

1 Like

Thank you @michael_w .
Not sure why it was pointing to CE edition folder. I added HIVEMQ_HOME environment variable and will change it accordingly when I want to switch between CC and EE.

Thanks for your support.

Thanks & Regards,

1 Like

Hi @michael_w
I think the logic in run.bat to find out the HiveMQ folder is having issue.
If there are multiple edition of HiveMQ in your machine then it picks whichever it finds the first one if there is HIVEMQ_HOME environmental variable is set.

I think the logic in run.bat needs to be changed, correct me if I am wrong?

Thanks & Regards,