Re: [Geoserver-users] JDBCConfig export Catalog to XML Catalog in GEOSERVER DAT DIR

2017-11-14 Thread Steve Omondi
Hi Niels,

I wrote some code in geoserver for myself to conveniently export the jdbc
catalog back to the file system. I found a way to do this easily by firing
a bunch of catalog change events to the file system catalog. However, I am
not sure to make it easily available to end users at this point, I assume
that just giving you the code won't be very helpful for you. Perhaps we can
work something out if you are interested.


Copied in this conversation is my colleague Nicolas, and we are very much
interested in the JDBCConfig especially on the work to optimize how it
handles resource caching. This would be the best for our system if we can
make it perform faster.

In the mean time, however, we are more interested on how we can bring back
the JDBC Catalog to XML to make our PROD Environment faster as a
workaround. We'd appreciate getting the code you wrote for yourself and try
to do something with it. We'll probably add a few things here and there to
make it work for our scenarion and communicate that back to you.
Are you able to share the work you've done on Exporting JDBC Catalog back
to XML?


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Kind regards,
Steve Omondi

On Tue, Nov 14, 2017 at 7:24 PM, Niels Charlier  wrote:

> Hello Steve,
>
> First I'd like to say I have been doing some work on considerable
> performance improvements for jdbcconfig. It  happens to be the case that
> jdbcconfig doesn't take good use of its cache and repeatedly sends the same
> queries over and over again. It looks promising but I still need to do some
> improvements and write some tests and I had other work coming on top of it.
> But this is definitely coming.
>
> Also, I wrote some code in geoserver for myself to conveniently export the
> jdbc catalog back to the file system. I found a way to do this easily by
> firing a bunch of catalog change events to the file system catalog.
> However, I am not sure to make it easily available to end users at this
> point, I assume that just giving you the code won't be very helpful for
> you. Perhaps we can work something out if you are interested.
>
> Regards
>
> Niels
>
>
>
> On 09-11-17 11:02, Steve Omondi wrote:
>
> Hi guys,
>
> I have *JDBCConfig* enabled and connected to a Postgres DB. I have over
> 500 layers spread across different workspaces and layergroups.
>
> After running performance tests for GetMap requests against this
> configuration versus XML Catalog based geoserver I really need to revert my
> catalog back to XML in GEOSERVER DAT DIR and probably share it using NFS.
>
> *Is their a method to export the Database Catalog (based on JDBCConfig)
> back to XML Catalog?*
>
> Kind regards,
> Steve Omondi
>
>
> 
>  Virus-free.
> www.avast.com
> 
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> ___
> 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
> Geoserver-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
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

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


[Geoserver-users] Error seeding vector tiles in GeoServer 2.12

2017-11-14 Thread Luca Morandini

Folks,

I have tried building a Docker container with GeoServer 2.12.0, and while the ReST 
API worked when adding layers, seeding layers with a vector tile format failed with:

com.thoughtworks.xstream.mapper.CannotResolveClassException: seedRequest

(It worked from the UI though.)

I then tried with 2.11.3, where everything worked fine.

Am I missing something?

Environment for all tests:

Linux:
Distributor ID: Debian
Description:Debian GNU/Linux 8.7 (jessie)
Release:8.7
Codename:   jessie

JVM:
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-1~bpo8+1-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

Tomcat:
8.0

Cheers,

Luca Morandini
Data Architect - AURIN project
Melbourne eResearch Group
Department of Computing and Information Systems
University of Melbourne
Room 3.32, Level 3, 333 Exhibition St.
Melbourne, 3000 VIC
Tel. +61 03 903 58 380
Skype: lmorandini
LinkedIn: https://www.linkedin.com/in/lmorandini


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
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

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


[Geoserver-users] SLD filter with raster grids

2017-11-14 Thread Bessette-Halsema, Dominique E
Can I apply SLD filters to raster grids where the PropertyName is the band?



How can I compare 2 bands against each other?



Do I have to transform the raster to a feature?





Example







   band1

   1000





   band2

band3









//make it black









Thanks

Dominique Bessette



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
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

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


Re: [Geoserver-users] JDBCConfig export Catalog to XML Catalog in GEOSERVER DAT DIR

2017-11-14 Thread Andrea Aime
Hi Niels,
today during the PSC meeting the topic came out of whether we should just
drop
JDBCConfig, since:

   - mails related to it are not really getting answered
   - pull requests related to it are sitting there not getting reviewed

We still have to see if there is some interested, but we need someone to
champion the module
just enough to make it worth keeping around (I'm not talking about
immediate answers, it's
a community/unsupported module, but at least some presence).
I'm also going to ping the people making pull requests.

Cheers
Andrea


On Tue, Nov 14, 2017 at 5:24 PM, Niels Charlier  wrote:

> Hello Steve,
>
> First I'd like to say I have been doing some work on considerable
> performance improvements for jdbcconfig. It  happens to be the case that
> jdbcconfig doesn't take good use of its cache and repeatedly sends the same
> queries over and over again. It looks promising but I still need to do some
> improvements and write some tests and I had other work coming on top of it.
> But this is definitely coming.
>
> Also, I wrote some code in geoserver for myself to conveniently export the
> jdbc catalog back to the file system. I found a way to do this easily by
> firing a bunch of catalog change events to the file system catalog.
> However, I am not sure to make it easily available to end users at this
> point, I assume that just giving you the code won't be very helpful for
> you. Perhaps we can work something out if you are interested.
>
> Regards
>
> Niels
>
>
>
> On 09-11-17 11:02, Steve Omondi wrote:
>
> Hi guys,
>
> I have *JDBCConfig* enabled and connected to a Postgres DB. I have over
> 500 layers spread across different workspaces and layergroups.
>
> After running performance tests for GetMap requests against this
> configuration versus XML Catalog based geoserver I really need to revert my
> catalog back to XML in GEOSERVER DAT DIR and probably share it using NFS.
>
> *Is their a method to export the Database Catalog (based on JDBCConfig)
> back to XML Catalog?*
>
> Kind regards,
> Steve Omondi
>
>
> 
>  Virus-free.
> www.avast.com
> 
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
>
>
> ___
> 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
> Geoserver-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> 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
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or 

Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-14 Thread Andrea Aime
Hi Ricardo,
oook... then I have no clue as to what is happening.
I'd suggest you open a bug report in Jira (
https://osgeo-org.atlassian.net/projects/GEOS/summary )
and attach all the necessary bits to reproduce the problem:

   - Data (sql dump)
   - Style
   - Request

Cheers
Andrea


On Tue, Nov 14, 2017 at 5:39 PM, PEREIRA Ricardo (EMSA) <
ricardo.pere...@emsa.europa.eu> wrote:

> Dear Andrea,
>
>
>
> In fact it is a SQL Timestamp.
>
>
>
> Cheers,
>
> Ricardo Pereira
>
> *From:* andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] *On Behalf
> Of *Andrea Aime
> *Sent:* Thursday, November 9, 2017 11:08 AM
> *To:* PEREIRA Ricardo (EMSA); GeoServer Mailing List List
> *Cc:* Ian Turton
>
> *Subject:* Re: [Geoserver-users] SLD issue with UTC time in
> TextSymbolizer Label
>
>
>
> (please keep the conversation on the list)
>
>
>
> That is weird, but I'm wondering... is the data in the data source
> actually a timestamp (e.g., SQL TIMESTAP)?
>
> Or is it a string?
>
>
>
> Cheers
>
> Andrea
>
>
>
>
>
> On Wed, Nov 8, 2017 at 5:49 PM, PEREIRA Ricardo (EMSA) <
> ricardo.pere...@emsa.europa.eu> wrote:
>
> Dear Andrea,
>
>
>
> Yes…
>
>
>
> Please take a look on the attached picture.
>
>
>
> Regards,
>
> Ricardo
>
> *From:* andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] *On Behalf
> Of *Andrea Aime
> *Sent:* Wednesday, November 8, 2017 3:22 PM
> *To:* PEREIRA Ricardo (EMSA)
> *Cc:* Ian Turton; geoserver-users@lists.sourceforge.net
>
>
> *Subject:* Re: [Geoserver-users] SLD issue with UTC time in
> TextSymbolizer Label
>
>
>
> Hi Ricardo,
>
> what is the data source?
>
> If you do a WFS request do you get the full time?
>
> What about doing a GetFeatureInfo in the map preview on that polygon?
>
>
>
> Cheers
>
> Andrea
>
>
>
>
>
> On Wed, Nov 8, 2017 at 12:55 PM, PEREIRA Ricardo (EMSA) <
> ricardo.pere...@emsa.europa.eu> wrote:
>
> Dear Ian,
>
>
>
> Thank you for your suggestion.
>
>
>
> Well, I don’t really mind with the wrapping, but I am wondering why the
> hours/minutes/seconds are set to “00:00:00+” as I was expecting
> “15:20:10Z” in this case.
>
>
>
> Cheers,
>
> Ricardo Pereira
>
> *From:* Ian Turton [mailto:ijtur...@gmail.com]
> *Sent:* Wednesday, November 8, 2017 11:49 AM
> *To:* PEREIRA Ricardo (EMSA)
> *Cc:* Andrea Aime; geoserver-users@lists.sourceforge.net
>
>
> *Subject:* Re: [Geoserver-users] SLD issue with UTC time in
> TextSymbolizer Label
>
>
>
> Since you have set - 60 -
> that is exactly what I would expect. You have asked GeoServer to wrap any
> label at 60px wide.
>
>
>
> Ian
>
>
>
> On 8 November 2017 at 11:44, PEREIRA Ricardo (EMSA) <
> ricardo.pere...@emsa.europa.eu> wrote:
>
> Dear Ian, dear Andrea,
>
>
>
> Below you may find the TextSymbolizer portion and also the .png version of
> the previous image.
>
>
>
>
>
>  
>
>
>
>  -MM-dd'T'HH:mm:ssZ
>
>  some_time_property
>
>
>
>  
>
>  
>
>Arial
>
>9
>
>normal
>
>bold
>
>  
>
>  
>
>
>
>  
>
>0.5
>
>0.5
>
>  
>
>
>
>  
>
>  
>
>#00
>
>  
>
>  60
>
>  150
>
>
>
>
>
> Thank you very much for your support,
>
> Ricardo Pereira
>
> *From:* Ian Turton [mailto:ijtur...@gmail.com]
> *Sent:* Wednesday, November 8, 2017 11:37 AM
> *To:* PEREIRA Ricardo (EMSA)
> *Cc:* geoserver-users@lists.sourceforge.net
> *Subject:* Re: [Geoserver-users] SLD issue with UTC time in
> TextSymbolizer Label
>
>
>
> We'd need to see the rest of the TextSymbolizer to see what was going on.
> Also, a larger or png image might help.
>
>
>
> Ian
>
>
>
> On 8 November 2017 at 11:10, PEREIRA Ricardo (EMSA) <
> ricardo.pere...@emsa.europa.eu> wrote:
>
> Hi,
>
>
>
> After reading the GeoServer documentation for the dateFormat function
> 
> under a SLD style, I put the following in my style:
>
> 
>
>  -MM-dd'T'HH:mm:ss.sssZ
>
> some_time_property
>
> 
>
>
>
> When applying the above, I obtain the following result
> (some_time_property: 2017-11-11 15:20:10.952):
>
>
>
> -  Do you have an idea what I am missing or if it is even
> possible to show times in this format?
>
>
>
> Ricardo Pereira
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> 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
>
> 

Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

2017-11-14 Thread PEREIRA Ricardo (EMSA)
Dear Andrea,

In fact it is a SQL Timestamp.

Cheers,
Ricardo Pereira
From: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] On Behalf Of Andrea 
Aime
Sent: Thursday, November 9, 2017 11:08 AM
To: PEREIRA Ricardo (EMSA); GeoServer Mailing List List
Cc: Ian Turton
Subject: Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

(please keep the conversation on the list)

That is weird, but I'm wondering... is the data in the data source actually a 
timestamp (e.g., SQL TIMESTAP)?
Or is it a string?

Cheers
Andrea


On Wed, Nov 8, 2017 at 5:49 PM, PEREIRA Ricardo (EMSA) 
> wrote:
Dear Andrea,

Yes…

Please take a look on the attached picture.

Regards,
Ricardo
From: andrea.a...@gmail.com 
[mailto:andrea.a...@gmail.com] On Behalf Of 
Andrea Aime
Sent: Wednesday, November 8, 2017 3:22 PM
To: PEREIRA Ricardo (EMSA)
Cc: Ian Turton; 
geoserver-users@lists.sourceforge.net

Subject: Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

Hi Ricardo,
what is the data source?
If you do a WFS request do you get the full time?
What about doing a GetFeatureInfo in the map preview on that polygon?

Cheers
Andrea


On Wed, Nov 8, 2017 at 12:55 PM, PEREIRA Ricardo (EMSA) 
> wrote:
Dear Ian,

Thank you for your suggestion.

Well, I don’t really mind with the wrapping, but I am wondering why the 
hours/minutes/seconds are set to “00:00:00+” as I was expecting “15:20:10Z” 
in this case.

Cheers,
Ricardo Pereira
From: Ian Turton [mailto:ijtur...@gmail.com]
Sent: Wednesday, November 8, 2017 11:49 AM
To: PEREIRA Ricardo (EMSA)
Cc: Andrea Aime; 
geoserver-users@lists.sourceforge.net

Subject: Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

Since you have set - 60 - that is 
exactly what I would expect. You have asked GeoServer to wrap any label at 60px 
wide.

Ian

On 8 November 2017 at 11:44, PEREIRA Ricardo (EMSA) 
> wrote:
Dear Ian, dear Andrea,

Below you may find the TextSymbolizer portion and also the .png version of the 
previous image.

   
 
   
 -MM-dd'T'HH:mm:ssZ
 some_time_property
   
 
 
   Arial
   9
   normal
   bold
 
 
   
 
   0.5
   0.5
 
   
 
 
   #00
 
 60
 150
   

Thank you very much for your support,
Ricardo Pereira
From: Ian Turton [mailto:ijtur...@gmail.com]
Sent: Wednesday, November 8, 2017 11:37 AM
To: PEREIRA Ricardo (EMSA)
Cc: 
geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] SLD issue with UTC time in TextSymbolizer Label

We'd need to see the rest of the TextSymbolizer to see what was going on. Also, 
a larger or png image might help.

Ian

On 8 November 2017 at 11:10, PEREIRA Ricardo (EMSA) 
> wrote:
Hi,

After reading the GeoServer documentation for the dateFormat 
function
 under a SLD style, I put the following in my style:

 -MM-dd'T'HH:mm:ss.sssZ
some_time_property


When applying the above, I obtain the following result (some_time_property: 
2017-11-11 15:20:10.952):
[cid:image001.jpg@01D35D67.13D028A0]


-  Do you have an idea what I am missing or if it is even possible to 
show times in this format?

Ricardo Pereira

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
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

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



--
Ian Turton



--
Ian Turton



--

Regards,

Andrea Aime

==
GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 

Re: [Geoserver-users] Internal error occurred at org.geoserver.wms.GetFeatureInfo.run...Caused by: java.lang.ArrayIndexOutOfBoundsException

2017-11-14 Thread Andrea Aime
That's unfortunate, it seems nothing quick and easy can be done without
having also access to your server.

Suggestion, try to reproduce the issue with the default GeoServer data
directory (the sample
data set), if you can do that, then open a ticket and share the steps to
reproduce on it

Cheers
Andrea


On Tue, Nov 14, 2017 at 1:38 PM, Steve Omondi 
wrote:

> With Geoserver Logging Level as Verbose
>
> This is all I get with StdOut (in Tomcat Logs)
>
> java.lang.ArrayIndexOutOfBoundsExceptionjava.lang.
> ArrayIndexOutOfBoundsException
> java.lang.ArrayIndexOutOfBoundsException
>
>
> Geoserver Logs records nothing to the effect that there is an error,
> except for the Service Exception XML file that I shared in the earlier.
>
> Also attached here
>
> Kind regards,
> Steve Omondi
>
> On Tue, Nov 14, 2017 at 12:45 PM, Andrea Aime <
> andrea.a...@geo-solutions.it> wrote:
>
>> Hi Steve,
>> unfortunately the stack trace is cut and does not contain the actual
>> originating point.
>> Could you check the logs and see if you have more information?
>>
>> Also, if an error is thrown too many times the JVM starts omitting the
>> stack traces, you might
>> get more info after a GeoServer restart
>>
>> Cheers
>> Andrea
>>
>>
>>
>> On Tue, Nov 14, 2017 at 10:33 AM, Steve Omondi > > wrote:
>>
>>> Hey guys,
>>>
>>> I have a LayerGroup with 6 Vector Layers all from a Postgis Datastore
>>> (JNDI Connection). The LayerGroup is specific for Labels where I have
>>> applied  Label Style for every Layer.
>>>
>>> When I use Identify tool in Openlayers Client I get a Service Exception
>>> (Exception attached below.)
>>>
>>> GetFeatureInfo for the same individual Layers works fine.
>>>
>>> All the layers are in same SRS = 4326
>>>
>>> What could I be doing wrong?
>>>
>>> Geoserver 2.11.2
>>>
>>> ---Service Exception
>>> http://www.opengis.net/ogc; xmlns:xsi="
>>> http://www.w3.org/2001/XMLSchema-instance; version="1.3.0"
>>> xsi:schemaLocation="http://www.opengis.net/ogc http://
>>> [domain]/geoserver/schemas/wms/1.3.0/exceptions_1_3_0
>>> .xsd?authkey=[authkey]">
>>> 
>>> Internal error occurred Details: org.geoserver.platform.ServiceException:
>>> Internal error occurred at 
>>> org.geoserver.wms.GetFeatureInfo.run(GetFeatureInfo.java:50)
>>> at 
>>> org.geoserver.wms.DefaultWebMapService.getFeatureInfo(DefaultWebMapService.java:338)
>>> at sun.reflect.GeneratedMethodAccessor730.invoke(Unknown Source) at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498) at
>>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
>>> at org.springframework.aop.framework.ReflectiveMethodInvocation
>>> .invokeJoinpoint(ReflectiveMethodInvocation.java:190) at
>>> org.springframework.aop.framework.ReflectiveMethodInvocation
>>> .proceed(ReflectiveMethodInvocation.java:157) at
>>> org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:34)
>>> at org.springframework.aop.framework.ReflectiveMethodInvocation
>>> .proceed(ReflectiveMethodInvocation.java:179) at
>>> org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:33)
>>> at org.springframework.aop.framework.ReflectiveMethodInvocation
>>> .proceed(ReflectiveMethodInvocation.java:179) at
>>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
>>> at com.sun.proxy.$Proxy122.getFeatureInfo(Unknown Source) at
>>> sun.reflect.GeneratedMethodAccessor729.invoke(Unknown Source) at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:498) at
>>> org.geoserver.ows.Dispatcher.execute(Dispatcher.java:857) at
>>> org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:268)
>>> at org.springframework.web.servlet.mvc.AbstractController.handl
>>> eRequest(AbstractController.java:147) at org.springframework.web.servle
>>> t.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
>>> at 
>>> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
>>> at 
>>> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
>>> at 
>>> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
>>> at 
>>> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) at
>>> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:230) at org.apache.catalina.core.Appli
>>> 

Re: [Geoserver-users] Internal error occurred at org.geoserver.wms.GetFeatureInfo.run...Caused by: java.lang.ArrayIndexOutOfBoundsException

2017-11-14 Thread Steve Omondi
With Geoserver Logging Level as Verbose

This is all I get with StdOut (in Tomcat Logs)

java.lang.ArrayIndexOutOfBoundsExceptionjava.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException


Geoserver Logs records nothing to the effect that there is an error, except
for the Service Exception XML file that I shared in the earlier.

Also attached here

Kind regards,
Steve Omondi

On Tue, Nov 14, 2017 at 12:45 PM, Andrea Aime 
wrote:

> Hi Steve,
> unfortunately the stack trace is cut and does not contain the actual
> originating point.
> Could you check the logs and see if you have more information?
>
> Also, if an error is thrown too many times the JVM starts omitting the
> stack traces, you might
> get more info after a GeoServer restart
>
> Cheers
> Andrea
>
>
>
> On Tue, Nov 14, 2017 at 10:33 AM, Steve Omondi 
> wrote:
>
>> Hey guys,
>>
>> I have a LayerGroup with 6 Vector Layers all from a Postgis Datastore
>> (JNDI Connection). The LayerGroup is specific for Labels where I have
>> applied  Label Style for every Layer.
>>
>> When I use Identify tool in Openlayers Client I get a Service Exception
>> (Exception attached below.)
>>
>> GetFeatureInfo for the same individual Layers works fine.
>>
>> All the layers are in same SRS = 4326
>>
>> What could I be doing wrong?
>>
>> Geoserver 2.11.2
>>
>> ---Service Exception
>> http://www.opengis.net/ogc; xmlns:xsi="
>> http://www.w3.org/2001/XMLSchema-instance; version="1.3.0"
>> xsi:schemaLocation="http://www.opengis.net/ogc http://
>> [domain]/geoserver/schemas/wms/1.3.0/exceptions_1_3_
>> 0.xsd?authkey=[authkey]">
>> 
>> Internal error occurred Details: org.geoserver.platform.ServiceException:
>> Internal error occurred at 
>> org.geoserver.wms.GetFeatureInfo.run(GetFeatureInfo.java:50)
>> at 
>> org.geoserver.wms.DefaultWebMapService.getFeatureInfo(DefaultWebMapService.java:338)
>> at sun.reflect.GeneratedMethodAccessor730.invoke(Unknown Source) at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498) at
>> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation
>> .invokeJoinpoint(ReflectiveMethodInvocation.java:190) at
>> org.springframework.aop.framework.ReflectiveMethodInvocation
>> .proceed(ReflectiveMethodInvocation.java:157) at
>> org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:34)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation
>> .proceed(ReflectiveMethodInvocation.java:179) at
>> org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:33)
>> at org.springframework.aop.framework.ReflectiveMethodInvocation
>> .proceed(ReflectiveMethodInvocation.java:179) at
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
>> at com.sun.proxy.$Proxy122.getFeatureInfo(Unknown Source) at
>> sun.reflect.GeneratedMethodAccessor729.invoke(Unknown Source) at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:498) at
>> org.geoserver.ows.Dispatcher.execute(Dispatcher.java:857) at
>> org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:268)
>> at org.springframework.web.servlet.mvc.AbstractController.handl
>> eRequest(AbstractController.java:147) at org.springframework.web.servle
>> t.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
>> at 
>> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
>> at 
>> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
>> at 
>> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
>> at 
>> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) at
>> org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:230) at org.apache.catalina.core.Appli
>> cationFilterChain.doFilter(ApplicationFilterChain.java:165) at
>> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:192) at org.apache.catalina.core.Appli
>> cationFilterChain.doFilter(ApplicationFilterChain.java:165) at
>> org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(Thr
>> eadLocalsCleanupFilter.java:28) at org.apache.catalina.core.Appli
>> 

Re: [Geoserver-users] Internal error occurred at org.geoserver.wms.GetFeatureInfo.run...Caused by: java.lang.ArrayIndexOutOfBoundsException

2017-11-14 Thread Andrea Aime
Hi Steve,
unfortunately the stack trace is cut and does not contain the actual
originating point.
Could you check the logs and see if you have more information?

Also, if an error is thrown too many times the JVM starts omitting the
stack traces, you might
get more info after a GeoServer restart

Cheers
Andrea



On Tue, Nov 14, 2017 at 10:33 AM, Steve Omondi 
wrote:

> Hey guys,
>
> I have a LayerGroup with 6 Vector Layers all from a Postgis Datastore
> (JNDI Connection). The LayerGroup is specific for Labels where I have
> applied  Label Style for every Layer.
>
> When I use Identify tool in Openlayers Client I get a Service Exception
> (Exception attached below.)
>
> GetFeatureInfo for the same individual Layers works fine.
>
> All the layers are in same SRS = 4326
>
> What could I be doing wrong?
>
> Geoserver 2.11.2
>
> ---Service Exception
> http://www.opengis.net/ogc; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance; version="1.3.0"
> xsi:schemaLocation="http://www.opengis.net/ogc http://[domain]/geoserver/
> schemas/wms/1.3.0/exceptions_1_3_0.xsd?authkey=[authkey]">
> 
> Internal error occurred Details: org.geoserver.platform.ServiceException:
> Internal error occurred at 
> org.geoserver.wms.GetFeatureInfo.run(GetFeatureInfo.java:50)
> at 
> org.geoserver.wms.DefaultWebMapService.getFeatureInfo(DefaultWebMapService.java:338)
> at sun.reflect.GeneratedMethodAccessor730.invoke(Unknown Source) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43) at 
> java.lang.reflect.Method.invoke(Method.java:498)
> at 
> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.
> invokeJoinpoint(ReflectiveMethodInvocation.java:190) at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:157) at org.geoserver.kml.
> WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:34)
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:179) at org.geoserver.ows.util.
> RequestObjectLogger.invoke(RequestObjectLogger.java:33) at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
> ReflectiveMethodInvocation.java:179) at org.springframework.aop.
> framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) at
> com.sun.proxy.$Proxy122.getFeatureInfo(Unknown Source) at sun.reflect.
> GeneratedMethodAccessor729.invoke(Unknown Source) at sun.reflect.
> DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498) at
> org.geoserver.ows.Dispatcher.execute(Dispatcher.java:857) at
> org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:268)
> at 
> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:147)
> at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter
> .handle(SimpleControllerHandlerAdapter.java:50) at
> org.springframework.web.servlet.DispatcherServlet.
> doDispatch(DispatcherServlet.java:959) at org.springframework.web.
> servlet.DispatcherServlet.doService(DispatcherServlet.java:893) at
> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
> at org.springframework.web.servlet.FrameworkServlet.
> doGet(FrameworkServlet.java:859) at javax.servlet.http.
> HttpServlet.service(HttpServlet.java:635) at org.springframework.web.
> servlet.FrameworkServlet.service(FrameworkServlet.java:844) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:230) at org.apache.catalina.core.
> ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:192) at org.apache.catalina.core.
> ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) at
> org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(
> ThreadLocalsCleanupFilter.java:28) at org.apache.catalina.core.
> ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:165) at org.geoserver.filters.
> SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75) at
> org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
> at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(
> SpringDelegatingFilter.java:71) at org.geoserver.monitor.
> MonitorFilter.doFilter(MonitorFilter.java:144) at org.geoserver.filters.
> SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71) at
> 

[Geoserver-users] Internal error occurred at org.geoserver.wms.GetFeatureInfo.run...Caused by: java.lang.ArrayIndexOutOfBoundsException

2017-11-14 Thread Steve Omondi
Hey guys,

I have a LayerGroup with 6 Vector Layers all from a Postgis Datastore (JNDI
Connection). The LayerGroup is specific for Labels where I have applied
Label Style for every Layer.

When I use Identify tool in Openlayers Client I get a Service Exception
(Exception attached below.)

GetFeatureInfo for the same individual Layers works fine.

All the layers are in same SRS = 4326

What could I be doing wrong?

Geoserver 2.11.2

---Service Exception
http://www.opengis.net/ogc; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance; version="1.3.0"
xsi:schemaLocation="http://www.opengis.net/ogc http://
[domain]/geoserver/schemas/wms/1.3.0/exceptions_1_3_0.xsd?authkey=[authkey]"
>

Internal error occurred Details: org.geoserver.platform.ServiceException:
Internal error occurred at
org.geoserver.wms.GetFeatureInfo.run(GetFeatureInfo.java:50) at
org.geoserver.wms.DefaultWebMapService.getFeatureInfo(DefaultWebMapService.java:338)
at sun.reflect.GeneratedMethodAccessor730.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498) at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at
org.geoserver.kml.WebMapServiceKmlInterceptor.invoke(WebMapServiceKmlInterceptor.java:34)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.geoserver.ows.util.RequestObjectLogger.invoke(RequestObjectLogger.java:33)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
at com.sun.proxy.$Proxy122.getFeatureInfo(Unknown Source) at
sun.reflect.GeneratedMethodAccessor729.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498) at
org.geoserver.ows.Dispatcher.execute(Dispatcher.java:857) at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:268) at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:147)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50)
at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:968)
at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:859)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) at
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at
org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:28)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)
at
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:75)
at
org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:71)
at
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
at org.geoserver.monitor.MonitorFilter.doFilter(MonitorFilter.java:144) at
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
at
org.geoserver.flow.controller.IpBlacklistFilter.doFilter(IpBlacklistFilter.java:94)
at
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:231)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at
org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:71)
at
org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:46)
at