Re: [Geoserver-users] WFS URL Unexpected Behaviour

2022-10-24 Thread Jody Garnett
That server seems sad; could not get GetCapabilities from it... was trying
to figure out what version of WFS is being used:

Adjusting your query with startIndex and maxFeatures seems to work
-
https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP=715319.3721917,1028613.368105,735025.9926936,1041407.195003=2=2
-
https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP=715319.3721917,1028613.368105,735025.9926936,1041407.195003=3=2

--
Jody Garnett


On Tue, 18 Oct 2022 at 16:55, Oscar Wu  wrote:

> Hi everyone,
>
> I'm seeing an irregular behaviour with a WFS I'm working with when I apply
> a BBOX filter to it. The WFS is hosted by a government's open data
> catalogue.
>
> The link itself is working:
>
> https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP
> 
>
> When I add a bbox to filter out the data, it is also working:
>
> https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP=715319.3721917,1028613.368105,735025.9926936,1041407.195003
> 
>
> However, if I want to apply some pagination with count and startIndex, the
> request would error out.
>
> https://openmaps.gov.bc.ca/geo/pub/wfs?request=GetFeature=json=OBJECTID=WHSE_BASEMAPPING.DRA_DGTL_ROAD_ATLAS_MPAR_SP=715319.3721917,1028613.368105,735025.9926936,1041407.195003=1=0
>
>
> What really confused me is that if I get rid of the bbox and only use
> count and startIndex, the link is working again and it did return the
> number of feature I requested.
>
> I've tried a bbox + count + startIndex filtering with other datasets from
> the same catalogue and they were all working. I'm wondering if something
> could stop bbox and count+startIndex from working together in this
> particular case?
>
> Thank you!
>
> Oscar
> ___
> Geoserver-users mailing list
>
> Please make sure you read the following two resources before posting to
> this list:
> - Earning your support instead of buying it, but Ian Turton:
> http://www.ianturton.com/talks/foss4g.html#/
> - The GeoServer user list posting guidelines:
> http://geoserver.org/comm/userlist-guidelines.html
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] How can I use ActiveMQ Artemis as plugin in GeoServer?

2022-10-24 Thread Brad Hards
On Monday, 24 October 2022 3:26:23 PM AEDT Navid Taheri wrote:
> I found Apache ActiveMQ broker plugin among community extensions list, As
> you know, activemq released two different versions a "Classic" and
> "Artemis", I think GeoServer ActiveMQ plugin in community extensions list
> probably didn't build based on ActiveMQ Artemis version, I'm going to know,
> If I want to use ActiveMQ Artemis version as a plugin in GeoServer 2.20.X
> what should I do?

Probably you need to do the work - that is the concept for a community module. 

That said, it may not be very difficult to make it work, but you may not get 
much performance improvement out of the change without doing profiling and 
testing.

My usual questions: What you already tried? What were the results? What were 
you expecting to happen instead?

Brad





___
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users


Re: [Geoserver-users] geoserver not working properly after data_dir migration.

2022-10-24 Thread Jody Garnett
I am not quite sure how to help on this one?

That kind of error occurs when a geoserver is tripping over itself trying
to write out two configuration changes at the same time.
Do you have in-process locking or file locking enabled? If you have
in-process locking you should just be able to restart ...

The file system watchers are expected; they do things like watch the
security configuration files for changes.
--
Jody Garnett


On Fri, 14 Oct 2022 at 05:07, Ярослав Минин via Geoserver-users <
geoserver-users@lists.sourceforge.net> wrote:

> Hello, geoserver community!
>
> Got issues after declaring our production data directory as
> geoserver_data_dir on a new geoserver instance run in a container with
> tomcat 8. Geoserver version is 2.20.4. Previous geoserver was 2.15.
>
> Problems:
>
>1. Layers page not opening with no error in the log.
>2. Layer Preview not opening with no error in the log.
>3. Server Status page _sometimes_not opening with no error in the log.
>4. Service pages like WMS contains no workspace in a drop-down list.
>5. When trying to click «Save» on a workspace page I get an error:
>«failed to upgrade lock from read to write state, please re-try the
>configuration operation». Thought that it has something to do with
>privileges of the user that runs geoserver but it has unlimited access to
>all folders needed including GEOSERVER_DATA_DIR folder.
>
> My colleague has run a new container on his local machine with the same
> 2.20.4 with default data_dir and it worked fine. Applying a copy of our
> production data_dir leads to same bad behaviour mentioned above. We have
> come to nothing with this problem. Maybe someone could point us.
>
> Thanks anyway!
> Yaras.
>
> Verbose Log for this error:
>
> 2022-10-14 10:51:32,400 DEBUG [org.geoserver] - Thread 5597 could not get
> the lock in mode WRITE
> 2022-10-14 10:51:32,400 WARN [data.workspace] - Failed to save workspace
> java.lang.RuntimeException: Failed to upgrade lock from read to write
> state, please re-try the configuration operation
> at
> org.geoserver.GeoServerConfigurationLock.tryUpgradeLock(GeoServerConfigurationLock.java:170)
> at
> org.geoserver.catalog.LockingCatalogFacade.invoke(LockingCatalogFacade.java:34)
> at com.sun.proxy.$Proxy25.save(Unknown Source)
> at org.geoserver.catalog.impl.CatalogImpl.save(CatalogImpl.java:1495)
> at
> org.geoserver.security.SecureCatalogImpl.save(SecureCatalogImpl.java:1534)
> at
> org.geoserver.catalog.impl.AbstractFilteredCatalog.save(AbstractFilteredCatalog.java:841)
> at
> org.geoserver.catalog.impl.AbstractCatalogDecorator.save(AbstractCatalogDecorator.java:704)
> at
> org.geoserver.web.data.workspace.WorkspaceEditPage.saveWorkspace(WorkspaceEditPage.java:237)
> at
> org.geoserver.web.data.workspace.WorkspaceEditPage.access$000(WorkspaceEditPage.java:78)
> at
> org.geoserver.web.data.workspace.WorkspaceEditPage$4.onSubmit(WorkspaceEditPage.java:204)
> at
> org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1312)
> at org.apache.wicket.markup.html.form.Form.process(Form.java:976)
> at
> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:797)
> at
> org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:687)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> at
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
> at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:241)
> at
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895)
> at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
> at
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
> at
> org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
> at