Hi,
I am getting 'java.lang.IllegalStateException' error (details provided below) when I try to import a shape file from a directory or from a PostgreSQL database. I have tried the solution from http://stackoverflow.com/questions/2039522/getting-a-no-thread-bound-request-found-error-from-spring-in-my-web-app but no dice.
The following are some version details:
1. Geoserver version: 2.7.3
2. Geofence version: 2.2.0 (latest stable release)
3. Geofence probe: 2.7.x
4. Operating System: CentOS 6.7
I added the following in web.xml to display the 'Authentication' section in the Geoserver's admin page after configuring geofence. Without this XML block the 'Authentication' section was not accessible.
<context-param>
<param-name>GEOSERVER_XSTREAM_WHITELIST</param-name> <paramvalue>org.geoserver.geoserver.authentication.auth.GeoFenceAuthenticationProviderConfig</paramvalue>
</context-param>
Geofence Configuration:
1 admin user with all privileges and a successful connection to 'default-gs'.
Geoserver Login: I use the admin user listed in Geofence to login and import files.
Note that I did not face any such issues if Geofence is not included in the Geoserver's environment.
Can some one suggest a solution.
Thanks,
Vijay Ramalingam
**************************DATA IMPORT ERROR*****************************
java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:131)
at org.geoserver.geofence.GeofenceAccessManager.retrieveCallerIpAddress(GeofenceAccessManager.java:214)
at org.geoserver.geofence.GeofenceAccessManager.getAccessLimits(GeofenceAccessManager.java:328)
at org.geoserver.security.ResourceAccessManagerWrapper.getAccessLimits(ResourceAccessManagerWrapper.java:210)
at org.geoserver.security.CatalogFilterAccessManager.getAccessLimits(CatalogFilterAccessManager.java:64)
at org.geoserver.security.SecureCatalogImpl.buildWrapperPolicy(SecureCatalogImpl.java:815)
at org.geoserver.security.SecureCatalogImpl.buildWrapperPolicy(SecureCatalogImpl.java:775)
at org.geoserver.security.SecureCatalogImpl.checkAccess(SecureCatalogImpl.java:501)
at org.geoserver.security.SecureCatalogImpl.getResourceByName(SecureCatalogImpl.java:372)
at org.geoserver.catalog.impl.AbstractFilteredCatalog.getResourceByName(AbstractFilteredCatalog.java:295)
at org.geoserver.catalog.impl.AbstractCatalogDecorator.getResourceByName(AbstractCatalogDecorator.java:238)
at org.geoserver.importer.Importer.doIndirectImport(Importer.java:971)
at org.geoserver.importer.Importer.run(Importer.java:817)
at org.geoserver.importer.Importer.run(Importer.java:767)
at org.geoserver.importer.Importer$5.call(Importer.java:850)
at org.geoserver.importer.Importer$5.call(Importer.java:844)
at org.geoserver.importer.job.Job.call(Job.java:16)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
*********************************END***************************************************
--
---------------------------------------
Vijay P. Ramalingam, Ph.D.
Research Software Developer
National Center for Computational Hydroscience and Engineering
The University of Mississippi
Phone: (662) 915 8975, (662) 915 7788
E-mail:virjay@anonymised.com
---------------------------------------