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

Server startup error when using collector_expiration_threshold config option #1194

Closed
bernd opened this Issue May 29, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@bernd
Member

bernd commented May 29, 2015

Source: https://groups.google.com/forum/?hl=en#!topic/graylog2/KLHsZ-0SUFI

When starting graylog with the following function enabled it fails on bootup.

collector_expiration_threshold = 14d (or 20d or 30d)

Fail message:

Exception in thread "main" java.lang.ClassCastException: com.github.joschi.jadconfig.util.Duration cannot be cast to java.lang.Integer
        at com.github.joschi.jadconfig.validators.PositiveIntegerValidator.validate(PositiveIntegerValidator.java:11)
        at com.github.joschi.jadconfig.JadConfig.validateParameter(JadConfig.java:207)
        at com.github.joschi.jadconfig.JadConfig.processClassFields(JadConfig.java:141)
        at com.github.joschi.jadconfig.JadConfig.process(JadConfig.java:99)
        at org.graylog2.bootstrap.CmdLineTool.readConfiguration(CmdLineTool.java:316)
        at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:161)
        at org.graylog2.bootstrap.Main.main(Main.java:58)

Centos 6.6 and either with java 1.7 or 1.8

@bernd bernd added the bug label May 29, 2015

@bernd bernd self-assigned this May 29, 2015

@bernd bernd added this to the 1.1.0 milestone May 29, 2015

@bernd bernd closed this in 3cde0f0 May 29, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment