Internal Server Error Geoserver
Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Geographic Information Systems Questions Tags Users Badges Unanswered Ask Question _ Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top 500 error when uploading shape file to Geoserver with C# up vote 1 down vote favorite I receive a 500 internal server error when attempting to PUT a shape file using REST. I can manually import the file, publish and preview it. So the file is fine. Geoserver log: 2016-05-24 12:20:25,921 INFO [catalog.rest] - PUT file, mimetype: application/zip 2016-05-24 12:20:27,140 INFO [catalog.rest] - Auto-configuring datastore: testshapes 2016-05-24 12:20:27,140 ERROR [geoserver.rest] - java.lang.NullPointerException at org.geoserver.catalog.rest.DataStoreFileResource.updateParameters(DataStoreFileResource.java:515) at org.geoserver.catalog.rest.DataStoreFileResource.handlePut(DataStoreFileResource.java:271) at org.restlet.Finder.handle(Finder.java:298) at org.geoserver.rest.BeanDelegatingRestlet.handle(BeanDelegatingRestlet.java:38) at org.restlet.Filter.doHandle(Filter.java:105) at org.restlet.Filter.handle(Filter.java:134) at org.restlet.Router.handle(Router.java:444) Fiddler RAW view of request and response: PUT http://localhost:8080/geoserver/rest/workspaces/test/datastores/testshapes/file.shp HTTP/1.1 Content-Type: application/zip Authorization: Basic YWRtaW46Z2Vvc2VydmVy Host: localhost:8080 Content-Length: 205898 Expect: 100-continue Connection: Keep-Alive HTTP/1.1 500 Internal Server Error Transfer-Encoding: chunked Server: Jetty(6.1.8) 0 C# code: public bool UploadShapeFile(string workspace, string newStoreName, byte[] fileContents) { byte[] localShapeFile = fileContents; String sUrl = GEOSERVER_HOST + "workspaces/" + workspace + "/datastores/" + newStoreName + "/file.shp"; WebRequest request = WebRequest.Create(sUrl); request.ContentType = "application/zip"; request.Method = "PUT"; request.Credentials = new NetworkCredential(GEOSERVER_USER, GEOSERVER_PASSWD); request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes(GEOSERVER_USER + ":" + GEOSERVER_PASSWD)));
› Classic List Threaded ♦ ♦ Locked 8 messages Katie Essadro Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ trying to create a layer for a coveragestore using http://gis.stackexchange.com/questions/194712/500-error-when-uploading-shape-file-to-geoserver-with-c the rest API Hello all, I have created a coveragestore in geoserver using the rest API like this: curl -u admin:geoserver -v -XPOST -H "Content-type: text/xml" –T C:\Users\katie\Desktop\pyramidstore.xml http://localhost:8080/geoserver/rest/workspaces/walker/coveragestores?configure=all My xml was this: › Classic List http://osgeo-org.1560.x6.nabble.com/Printing-in-geoserver-NetworkError-500-Internal-Server-Error-td3793348.html Threaded ♦ ♦ Locked 1 message robertdbuckley Reply | Threaded Open this post in threaded view ♦ ♦ https://trac.osgeo.org/mapserver/ticket/479 | Report Content as Inappropriate ♦ ♦ Printing in geoserver - NetworkError: 500 Internal Server Error HI,Ubuntu internal server 10.04Tomcat6I get this error related to printcapabilites"NetworkError: 500 Internal Server Error - http://maps.zgb.de:8080/geoserver/pdf/info.json"Does this look like a geoserver problem?I have checked that the 6 libraries have been installed into the data_dir printing folder libraries are installed..and internal server error the config.yaml file is present also.In the geoserver docs there doesn´t seem to be anything else to config it?anyone know what is happening?yours,Robert ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb_______________________________________________ Geoserver-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/geoserver-users Yours with thanks, Robert Buckley System: Linux Ubuntu 10.04 Server / Tomcat6 / Geoserver 2.1.2 / GeoWebCache 1.2.6) « Return to GeoServer - User | 1 view|%1 views Loading... Free forum by Nabble Edit this page causes Error 500 on remote server Reported by: dmorissette Owned by: mapserverbugs Priority: high Milestone: Component: WMS Client Version: 4.1 Severity: normal Keywords: Cc: Description Bart van den Eijnden wrote: > > When I try to simulate your problem (with your mapfile) I get an error > in the mapserver error file which says: > > [Mon Nov 10 20:16:52 2003] [error] [client 127.0.0.1] Mon Nov 10 > 20:16:52 2003 - msHTTPExecuteRequests(): HTTP request error. HTTP GET > request failed with status 500 () for > http://www.geoserver.nrw.de:80/GeoOgcWms1.3/servlet/BK50?SERVICE=WMS&VERSION=1.1.0&LAYERS=BK50%3ABodenkarte&FORMAT=image%2Fpng&TRANSPARENT=TRUE&STYLES=&REQUEST=GetMap&WIDTH=600&HEIGHT=600&SRS=EPSG:31466&BBOX=2500004.166667,5600004.166667,2504995.833333,5604995.833333&EXCEPTIONS=application/vnd.ogc.se_inimage > > > The strange thing is that when I use the URL directly in a browser I get > a map. > > Does anybody have an idea why Mapserver thinks it is a HTTP 500 status > and not a 200 status which I get by using a sniffer directly on the > GetMap URL? > > Best regards, > Bart > Here is a mapfile that reproduces this. MAP EXTENT 2500000 5600000 2505000 5605000 ## EXTENT 2490637 5574425 2738496 5821724 IMAGECOLOR 255 255 255 IMAGETYPE PNG SIZE 400 300 STATUS ON NAME "DEMO" PROJECTION "init=epsg:31466" END WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER DEBUG TRUE NAME "BK50" TYPE RASTER STATUS ON CONNECTION "http://www.geoserver.nrw.de:80/GeoOgcWms1.3/servlet/BK50?" CONNECTIONTYPE WMS METADATA "wms_name" "BK50:Bodenkarte" "wms_server_version" "1.1.0" "wms_formatlist" "image/png,image/jpeg,image/bmp" "wms_format" "image/png" "wms_title" "Geoserver Bodenkarte" "wms_srs" "EPSG:31466 EPSG:31462 EPSG:31492 EPSG:31467 EPSG:25831 EPSG:25832 EPSG:25833" "wms_boundingbox" "EPSG:31466 2490637 5574425 2738496 5821724" "wms_latlonboundingbox" "5.8686 50.3018 9.5103 52.4726" END END END Oldest first Newest first Threaded Comments only Change History (3) comment:1 Changed 13 years ago by dmorissette Using curl at the command line to download this URL does work. odd. comment:2 Changed 13 years ago by dmorissette Status changed from new to assigned Andreas Müller wrote: Hi Daniel, that's consistent with the exception the remote server sends, which I already cited in my first mail to the list. Here it comes again: