zoukankan      html  css  js  c++  java
  • Trying to create new feature type inside the store, but no attributes were specified

    11:35:25.244 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Resorting to protocol version default close connection policy
    11:35:25.244 [main] DEBUG org.apache.commons.httpclient.HttpMethodBase - Should NOT close connection, using HTTP/1.1
    11:35:25.244 [main] DEBUG org.apache.commons.httpclient.HttpConnection - Releasing connection back to connection manager.
    11:35:25.244 [main] WARN it.geosolutions.geoserver.rest.HTTPUtils - Bad response: code[400] msg[Trying to create new feature type inside the store, but no attributes were specified] url[http://192.168.8.121:7444/geoserver/rest/workspaces/nyc_roads/datastores/weip_store/featuretypes.xml] method[PostMethod]: <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
    <title>Error 400 Trying to create new feature type inside the store, but no attributes were specified</title>
    </head>
    <body><h2>HTTP ERROR 400</h2>
    <p>Problem accessing /geoserver/rest/workspaces/nyc_roads/datastores/weip_store/featuretypes.xml. Reason:
    <pre>    Trying to create new feature type inside the store, but no attributes were specified</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.18.v20190429</a><hr/>
    
    </body>
    </html>
    
    11:35:25.245 [main] ERROR it.geosolutions.geoserver.rest.GeoServerRESTPublisher - Error creating coverage nyc_roads:weip_store:weip_layer (null)
    11:35:25.245 [main] ERROR it.geosolutions.geoserver.rest.GeoServerRESTPublisher - Unable to create a coverage store for coverage: file:/D:/WorkProject/HNGeology/weipTest/geoserver_rest-master/geoserver_rest-master/testdata/nyc_roads.zip
    false

    此时geoserver中datastore已经创建完成了。排查是因为shp、压缩包以及publishShp的参数layerName名称不一致

  • 相关阅读:
    HDU-4609 3-idiots FFT
    HDU-1402 A * B Problem Plus FFT(快速傅立叶变化)
    HDU-1007 Quoit Design 平面最近点对
    POJ-3714 Raid 平面最近点对
    HDU-4631 Sad Love Story 平面最近点对
    HDU-4630 No Pain No Game 树状数组+离线操作
    HDU-4628 Pieces 搜索 | DP
    HDU-4627 The Unsolvable Problem 简单数学
    HDU-4638 Group 树状数组+离线
    HDU-4635 Strongly connected 强连通,缩点
  • 原文地址:https://www.cnblogs.com/Jeely/p/14767996.html
Copyright © 2011-2022 走看看