Failed App-schema REST export

Added by Francisco Caldeira about 2 years ago

Hi all,

I'm testing the Export Alignment to PostGis/Geoserver.

I tried in 2 different Windows machines with Hale 2.9.4

I have a Geoserver 2.8.2 (in Linux and Windows 7 too, both of them reported the error) and PostGreSQL/PostGIS database version 9.5

The error is:

[12:29:32] org.apache.http.client.HttpResponseException: Not Found

eu.esdihumboldt.hale.io.geoserver.rest.ResourceException: org.apache.http.client.HttpResponseException: Not Found
at eu.esdihumboldt.hale.io.geoserver.rest.AbstractResourceManager.create(AbstractResourceManager.java:249)
at eu.esdihumboldt.hale.io.geoserver.rest.AbstractResourceManager.create(AbstractResourceManager.java:209)
at eu.esdihumboldt.hale.io.appschema.writer.AppSchemaMappingUploader.publishNamespaces(AppSchemaMappingUploader.java:91)
at eu.esdihumboldt.hale.io.appschema.writer.AppSchemaMappingUploader.handleMapping(AppSchemaMappingUploader.java:78)
at eu.esdihumboldt.hale.io.appschema.writer.AbstractAppSchemaConfigurator.execute(AbstractAppSchemaConfigurator.java:92)
at eu.esdihumboldt.hale.common.core.io.impl.AbstractIOProvider.execute(AbstractIOProvider.java:102)
at eu.esdihumboldt.hale.ui.io.IOWizard$3.run(IOWizard.java:684)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.apache.http.client.HttpResponseException: Not Found
at eu.esdihumboldt.hale.io.geoserver.rest.AbstractResourceManager$2.handleResponse(AbstractResourceManager.java:236)
at eu.esdihumboldt.hale.io.geoserver.rest.AbstractResourceManager$2.handleResponse(AbstractResourceManager.java:1)
at org.apache.http.client.fluent.Response.handleResponse(Response.java:90)
at eu.esdihumboldt.hale.io.geoserver.rest.AbstractResourceManager.create(AbstractResourceManager.java:225)
... 7 more

any ideias?

Regards
Francisco Caldeira


Replies (2)

RE: Failed App-schema REST export - Added by Stefano Costa about 2 years ago

Hi Francisco,
judging from the error, it looks like HALE is getting a HTTP 404 (Not Found) error from GeoServer when it attempts to create secondary namespaces... could you please double check the "Target URL" you entered in the "Export destination" dialog?

It should point to the base URL of your GeoServer, something like http://<host>:<port>/geoserver

Best regards,
Stefano Costa

RE: Failed App-schema REST export - Added by Francisco Caldeira about 2 years ago

Hello Stefano,

Thanks for the reply.

I'm pretty sure about the base url in my Geoserver (http://inspire.ine.pt/geoserver), you can test the access the url.

I noticed that App-Schema REST Export created in the geoserver a Store type Application Schema DataAccess. which I assume it's ok.

But if in Geoserver I try to add a layer of that store I receive this error:

Could not list layers for this store, an error occurred retrieving them: java.lang.RuntimeException: Unable to obtain connection: Cannot create PoolableConnectionFactory (FATAL: no pg_hba.conf entry for host "193.192.7.159", user "XXX", database "XXXXXXX", SSL off)

Could this be connected? It looks like It can't login the PostGreSQL/PostGIS database rigth?

Regards
F

(1-2/2)