While i uploading shape file, got error. If you have any suggestions or ideas, do not hesitate to share. I’m grateful for even a keyword…
My Command:
curl -v -u usr:psw -XPUT -H “Content-type: application/zip” --data-binary @myzip .zip https://myGeoserverAdress /geoserver/rest/workspaces/myworkspaces /datastores/mydatastones /file.shp
</pre><p><b>Root Cause</b></p><pre>java.lang.NullPointerException
org.geoserver.rest.catalog.DataStoreFileController.updateParameters(DataStoreFileController.java:644)
org.geoserver.rest.catalog.DataStoreFileController.dataStorePut(DataStoreFileController.java:319)
jdk.internal.reflect.GeneratedMethodAccessor780.invoke(Unknown Source)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.base/java.lang.reflect.Method.invoke(Method.java:566)
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:892)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797)
…
User-Agent: curl/7.78.0
Accept: /Content-type: application/zipContent-Length: 229
} [229 bytes data]
Mark bundle as not supporting multiuse< HTTP/1.1 500 Internal Server Error< Content-Type: text/html;charset=utf-8< Date: Fri, 11 Nov 2022 14:41:18 GMT< Server: nginx/1.23.2< Access-Control-Allow-Origin: *< Content-Language: en< Transfer-Encoding: chunked< X-Frame-Options: SAMEORIGIN<{ [3847 bytes data]100 13195 0 12966 100 229 24971 441 --:--:-- --:--:-- --:--:-- 25423LoggingFilter.java:101) org.geoserver.filters.XFrameOptionsFilter.doFilter(XFrameOptionsFilter.java:77) org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:53) org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:46) org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:42) org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)</pre><p><b>Note</b> The full stack trace of the root cause is available in the server logs.</p><hr class="line" /><h3>Apache Tomcat/9.0.37</h3></body></html>
|