Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] TheHive doesn't start correctly #1429

Closed
To-om opened this issue Jul 9, 2020 · 0 comments
Closed

[Bug] TheHive doesn't start correctly #1429

To-om opened this issue Jul 9, 2020 · 0 comments
Assignees
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@To-om
Copy link
Contributor

To-om commented Jul 9, 2020

Request Type

Bug

Problem Description

TheHive doesn't bind to 9000/tcp.
Logs stops after from org.reflections.Reflections in main - Reflections took 536 ms to scan 1 urls, producing 133 keys and 2057 values
With further investigation, an error occurs in database initialisation:

java.lang.ExceptionInInitializerError: null
        at org.janusgraph.graphdb.database.management.ModifierType.<clinit>(ModifierType.java:23)
        at org.janusgraph.graphdb.database.management.ManagementSystem.setConsistency(ManagementSystem.java:1268)
        at org.thp.thehive.models.TheHiveSchemaDefinition.$anonfun$operations$7(TheHiveSchemaDefinition.scala:48)
Caused by: java.lang.NullPointerException: null
        at org.janusgraph.graphdb.database.management.ModifierType.values(ModifierType.java:22)
        at org.janusgraph.graphdb.types.TypeDefinitionCategory.<clinit>(TypeDefinitionCategory.java:84)
        at org.janusgraph.graphdb.database.management.ModifierType.<clinit>(ModifierType.java:23)
        at org.janusgraph.graphdb.database.management.ManagementSystem.setConsistency(ManagementSystem.java:1268)
        at org.thp.thehive.models.TheHiveSchemaDefinition.$anonfun$operations$7(TheHiveSchemaDefinition.scala:48)

The class ModifierType from JanusGraph uses the class TypeDefinitionCategory (also from JanusGraph) during its class initialisation. But TypeDefinitionCategory also uses the class ModifierType during class initialisation. In some circumstances (not completely understood), this situation implies a NullPointerException.

Steps to Reproduce

The occurrence of this error depends of initialisation order.

Possible Solutions

Force initialisation of TypeDefinitionCategory before ModifierType

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

1 participant