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

NPE occurs at startup if conf directory doesn't exists #41

Closed
To-om opened this issue Nov 24, 2016 · 0 comments
Closed

NPE occurs at startup if conf directory doesn't exists #41

To-om opened this issue Nov 24, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@To-om
Copy link
Contributor

To-om commented Nov 24, 2016

Classpath is scanned at startup in order to collect model classes. The default location of configuration file is included in classpath (conf).
In the current distribution, confdirectory doesn't exist as we put it in /etc/thehive/. This is the cause of the NullPointerException:

2016-11-23 06:31:54,289 [WARN] from org.reflections.Reflections in main - could not create Dir using directory from url file:/opt/thehive/conf. skipping.
java.lang.NullPointerException: null
	at org.reflections.vfs.Vfs$DefaultUrlTypes$3.matches(Vfs.java:239)
	at org.reflections.vfs.Vfs.fromURL(Vfs.java:98)
	at org.reflections.vfs.Vfs.fromURL(Vfs.java:91)
	at org.reflections.Reflections.scan(Reflections.java:237)
	at org.reflections.Reflections.scan(Reflections.java:204)
	at org.reflections.Reflections.<init>(Reflections.java:129)
	at global.TheHive.configure(Module.scala:61)
@To-om To-om added the bug label Nov 24, 2016
@To-om To-om added this to the 2.9.1 milestone Nov 24, 2016
@To-om To-om self-assigned this Nov 24, 2016
To-om pushed a commit that referenced this issue Nov 24, 2016
@To-om To-om closed this as completed Nov 24, 2016
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

1 participant