Open offtherailz opened 6 years ago
This simply requires an update of the geostore dependencies to the version currently used in MS stable branch 2020.01.xx
This still doesn't work, as far as I can see the error is the same reported above: are maybe the jars not properly updated in mvn repo?
HTTP Status 500 - java.lang.NullPointerException
type Exception report
message java.lang.NullPointerException
description The server encountered an internal error that prevented it from fulfilling this request.
exception
com.google.common.util.concurrent.UncheckedExecutionException: java.lang.NullPointerException
com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2203)
com.google.common.cache.LocalCache.get(LocalCache.java:3937)
com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)
it.geosolutions.geostore.services.rest.security.TokenAuthenticationFilter.authenticate(TokenAuthenticationFilter.java:142)
it.geosolutions.geostore.services.rest.security.GeoStoreAuthenticationFilter.doFilter(GeoStoreAuthenticationFilter.java:85)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
it.geosolutions.geostore.services.rest.security.GeoStoreAuthenticationFilter.doFilter(GeoStoreAuthenticationFilter.java:87)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
root cause
java.lang.NullPointerException
it.geosolutions.geostore.services.rest.security.SessionTokenAuthenticationFilter.checkToken(SessionTokenAuthenticationFilter.java:64)
it.geosolutions.geostore.services.rest.security.TokenAuthenticationFilter$1.load(TokenAuthenticationFilter.java:126)
it.geosolutions.geostore.services.rest.security.TokenAuthenticationFilter$1.load(TokenAuthenticationFilter.java:124)
com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)
com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319)
com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)
com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)
com.google.common.cache.LocalCache.get(LocalCache.java:3937)
com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)
com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)
it.geosolutions.geostore.services.rest.security.TokenAuthenticationFilter.authenticate(TokenAuthenticationFilter.java:142)
it.geosolutions.geostore.services.rest.security.GeoStoreAuthenticationFilter.doFilter(GeoStoreAuthenticationFilter.java:85)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
it.geosolutions.geostore.services.rest.security.GeoStoreAuthenticationFilter.doFilter(GeoStoreAuthenticationFilter.java:87)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
Note: this issue is present also in production.
Steps to reproduce
expected result
current result
Details:
localhost.log
Referenced code in the error is: https://github.com/geosolutions-it/geostore/blob/master/src/modules/rest/impl/src/main/java/it/geosolutions/geostore/services/rest/security/TokenAuthenticationFilter.java#L142