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

Error creating bean with name 'springSecurityFilterChain' #10

Closed
cmattoon opened this issue May 22, 2017 · 1 comment
Closed

Error creating bean with name 'springSecurityFilterChain' #10

cmattoon opened this issue May 22, 2017 · 1 comment

Comments

@cmattoon
Copy link
Contributor

Possibly related to #4 ?

When application.yml is present (used default example on website, plus a trimmed-down version), I get the following error when running java -jar shinyproxy-0.9.1.jar:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springSecurityFilterChain' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.servlet.Filter]: Factory method 'springSecurityFilterChain' threw exception; nested exception is java.lang.NullPointerException

This error only occurs when the config file is present. On its own, it works fine. Logs are below:

Fail (with application.yml): https://pastebin.com/4CDqMG38
Success (no config file): https://pastebin.com/mXrF1bLS

root@shinyproxy: # java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
@fmichielssen
Copy link
Member

Hi,

Can you check your application.yml for the presence of the authentication property? E.g.
shiny: proxy: authentication: none
This property cannot be omitted, please use 'none' for no authentication.

lsano added a commit to CityOfBoston/shinyproxy that referenced this issue Aug 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants