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

Java 11 build crash #990

Closed
siisar opened this issue May 31, 2019 · 2 comments
Closed

Java 11 build crash #990

siisar opened this issue May 31, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@siisar
Copy link

siisar commented May 31, 2019

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu 18
TheHive version / git hash last version
Package Type From source

Problem Description

When trying to build the project from the doc section "Build it Yourself", it crashes when executing:
./sbt clean stage
The errors are related to VM options that are no longer supported in Java 11 (for instance UseConcMarkSweepGC, UseParNewGC)

Steps to Reproduce

Try to build from source, with java 11, with the command ./sbt clean stage

Possible Solutions

Please adjust the VM options to java 11

@To-om
Copy link
Contributor

To-om commented Jun 3, 2019

Can you provide more details ? What is the output ?

@siisar
Copy link
Author

siisar commented Jun 3, 2019

$ ./sbt clean stage
OpenJDK 64-Bit Server VM warning: Option AggressiveOpts was deprecated in version 11.0 and will likely be removed in a future release.
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

After trying removing the VM option UseParNewGC, the error persists this way:

OpenJDK 64-Bit Server VM warning: Option AggressiveOpts was deprecated in version 11.0 and will likely be removed in a future release.
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error occurred during initialization of VM
Multiple garbage collectors selected

So the VM options need reviewing and being adjusted to java 11

java version:
openjdk version "11.0.3" 2019-04-16

@To-om To-om closed this as completed Jun 3, 2019
@To-om To-om added this to the 3.4.0-RC1 milestone Jun 3, 2019
@To-om To-om added the bug label Jun 3, 2019
@To-om To-om self-assigned this Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants