Issues painting Trail java.lang.ArrayIndexOutOfBoundsException: 1

View: New views
3 Messages — Rating Filter:   Alert me  

Issues painting Trail java.lang.ArrayIndexOutOfBoundsException: 1

by jberti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've gotten this error for one of my layer collections and it seems that it is happening on the Line drawing, where I also add a label along the line.
The error message looks just like the one in: http://jira.codehaus.org/browse/GEOT-2633
Therefore I guess it is the same bug.
I just wanted to check if anybody has worked on it already or if you could at least point me into the right direction as to what this error is and what causes it. I would try to fix it myself then if needed or just find a workaround.
Any ideas are welcome.

Thanks,
Julian

Re: Issues painting Trail java.lang.ArrayIndexOutOfBoundsException: 1

by jberti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I checked into this issue a bit and it has thrown up some questions for myself.
First off, it seems to me when I have GeoServer running on 2 containers that Apache is load balancing while the application is drawing a layer which leads to different parts of the layer coming from different GeoServers. Can this be? Like in more detail, lets say I draw a layer with 8 tiles and tile 1 comes from GeoServer 1, then tile 2 from GeoServer 2 and so on. Can this be the case?
Then this error could be due to this behavior that the tiles or in this case lines are drawn from different GeoServers.
From what I've seen it can be due to some issue with running GeoServer on 2 containers, because the error message seems to have disappeared as we shut off one container and had just one GeoServer up without changing something.
If someone could explain to me as to whether or not this might be the case it would be really appreciated.


Julian


jberti wrote:
I've gotten this error for one of my layer collections and it seems that it is happening on the Line drawing, where I also add a label along the line.
The error message looks just like the one in: http://jira.codehaus.org/browse/GEOT-2633
Therefore I guess it is the same bug.
I just wanted to check if anybody has worked on it already or if you could at least point me into the right direction as to what this error is and what causes it. I would try to fix it myself then if needed or just find a workaround.
Any ideas are welcome.

Thanks,
Julian

Re: Issues painting Trail java.lang.ArrayIndexOutOfBoundsException: 1

by Justin Deoliveira-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Julian,

Andrea is the rendering expert and can answer more intelligently but I
would assume you are correct in your assumption. When GeoServer receives
a tiled map request it does some internal metatiling to deal with issues
such as labels at the edges of tiles, etc... I also believe it does some
internal caching of labels and what not. I am not sure what it keeps
around in terms of state but any state it does keep around to deal with
  tiling issues will be invalidated by a load balancer.

Andrea just did a bunch of work analyzing performance of rendering with
a load balancer in the mix. He can speak for days on the subject :)

-Justin

jberti wrote:

> I checked into this issue a bit and it has thrown up some questions for
> myself.
> First off, it seems to me when I have GeoServer running on 2 containers that
> Apache is load balancing while the application is drawing a layer which
> leads to different parts of the layer coming from different GeoServers. Can
> this be? Like in more detail, lets say I draw a layer with 8 tiles and tile
> 1 comes from GeoServer 1, then tile 2 from GeoServer 2 and so on. Can this
> be the case?
> Then this error could be due to this behavior that the tiles or in this case
> lines are drawn from different GeoServers.
>>From what I've seen it can be due to some issue with running GeoServer on 2
> containers, because the error message seems to have disappeared as we shut
> off one container and had just one GeoServer up without changing something.
> If someone could explain to me as to whether or not this might be the case
> it would be really appreciated.
>
>
> Julian
>
>
>
> jberti wrote:
>> I've gotten this error for one of my layer collections and it seems that
>> it is happening on the Line drawing, where I also add a label along the
>> line.
>> The error message looks just like the one in:
>> http://jira.codehaus.org/browse/GEOT-2633
>> Therefore I guess it is the same bug.
>> I just wanted to check if anybody has worked on it already or if you could
>> at least point me into the right direction as to what this error is and
>> what causes it. I would try to fix it myself then if needed or just find a
>> workaround.
>> Any ideas are welcome.
>>
>> Thanks,
>> Julian
>>
>

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users