[Geoserver-devel] [JIRA] (GEOS-10523) APIConfigurationSupport InvocableHandlerMethod called with null request

Jody Garnett created an issue

GeoServer / BugGEOS-10523

APIConfigurationSupport InvocableHandlerMethod called with null request

Issue Type:

BugBug

Affects Versions:

2.21.0

Assignee:

Unassigned

Attachments:

null_request.txt

Components:

Community modules, REST

Created:

01/Jun/22 10:12 PM

Environment:

Temurin: 1.8.0_332 (OpenJDK 64-Bit Server VM)

Ubuntu 20.04.4 LTS

Priority:

MediumMedium

Reporter:

Jody Garnett

I am troubleshooting the following failure when accessing the geoserver/rest controller.

01 047 19:47:54 ERROR  [geoserver.rest] - null
java.lang.NullPointerException
	at org.geoserver.ogcapi.APIConfigurationSupport$APIInvocableHandlerMethod.doInvoke(APIConfigurationSupport.java:57)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)

The OGC API implementation APIInvocableHandlerMethod is trying to process a null request obtained from from Request request = Dispatcher.REQUEST.get().

The stack trace shows the following:

  • org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
  • org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:368)
  • org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:174)
  • org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
  • org.geoserver.ows.HTTPHeadersCollector.doFilter(HTTPHeadersCollector.java:48)
  • org.geoserver.flow.controller.IpBlacklistFilter.doFilter(IpBlacklistFilter.java:89)
  • org.geoserver.flow.ControlFlowCallback.doFilter(ControlFlowCallback.java:264)

I expect {{ ThreadLocalsCleanupFilter }} has already already cleaned up the Dispatcher.REQUEST.

As this exception does not have a message trouble shooting this issue is hindered by https://osgeo-org.atlassian.net/browse/GEOS-10522.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100199-sha1:4212c97)

Atlassian logo