[Geoserver-users] IndexOutOfBoundsException

Hi list,
Often when I pan around my OpenLayers project which is called a GeoServer 2.2.3 WMS, I get an “IndexOutOfBoundsException” error:

18 Jan 11:46:01 ERROR [org.geoserver.ows] -
java.lang.IndexOutOfBoundsException: pos < flushedPos!
at javax.imageio.stream.ImageInputStreamImpl.seek(Unknown Source)
at com.sun.imageio.plugins.png.IDATOutputStream.finishChunk(Unknown Source)
at com.sun.imageio.plugins.png.IDATOutputStream.deflate(Unknown Source)
at com.sun.imageio.plugins.png.IDATOutputStream.finish(Unknown Source)
at com.sun.imageio.plugins.png.PNGImageWriter.write_IDAT(Unknown Source)
at com.sun.imageio.plugins.png.PNGImageWriter.write(Unknown Source)
at org.geotools.image.ImageWorker.writePNG(ImageWorker.java:2485)
at org.geoserver.wms.map.PNGMapResponse.formatImageOutputStream(PNGMapResponse.java:118)
at org.geoserver.wms.map.RenderedImageMapResponse.write(RenderedImageMapResponse.java:122)

This is usually followed by:

18 Jan 11:46:01 DEBUG [org.geoserver.wms.map] - Writing png image … done!
18 Jan 11:46:01 INFO [org.geoserver.ows] - Problem writing exception information back to calling client:
org.mortbay.jetty.EofException
at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760)
at org.mortbay.jetty.AbstractGenerator$Output.blockForOutput(AbstractGenerator.java:548)
at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:634)
at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:587)
at org.geoserver.filters.AlternativesResponseStream.write(AlternativesResponseStream.java:53)
at org.geoserver.wms.WMSServiceExceptionHandler.handleXmlException(WMSServiceExceptionHandler.java:282)
at org.geoserver.wms.WMSServiceExceptionHandler.handleServiceException(WMSServiceExceptionHandler.java:126)
at org.geoserver.ows.Dispatcher.handleServiceException(Dispatcher.java:1631)
at org.geoserver.ows.Dispatcher.exception(Dispatcher.java:1576)
at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:282)

There’s nothing visually wrong with the output tiles as far as I can see. What’s likely to be causing this? Is it a cause for concern?

Thanks.
Jonathan

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.

The client has closed the connection.
It should not be a cause for concern (but it is very late on Friday
evening... I might be wrong :slight_smile: ).

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

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

-------------------------------------------------------

On Fri, Jan 18, 2013 at 12:50 PM, Jonathan Moules
<jonathanmoules@anonymised.com> wrote:

Hi list,
   Often when I pan around my OpenLayers project which is called a GeoServer
2.2.3 WMS, I get an "IndexOutOfBoundsException" error:

18 Jan 11:46:01 ERROR [org.geoserver.ows] -
java.lang.IndexOutOfBoundsException: pos < flushedPos!
        at javax.imageio.stream.ImageInputStreamImpl.seek(Unknown Source)
        at com.sun.imageio.plugins.png.IDATOutputStream.finishChunk(Unknown
Source)
        at com.sun.imageio.plugins.png.IDATOutputStream.deflate(Unknown
Source)
        at com.sun.imageio.plugins.png.IDATOutputStream.finish(Unknown
Source)
        at com.sun.imageio.plugins.png.PNGImageWriter.write_IDAT(Unknown
Source)
        at com.sun.imageio.plugins.png.PNGImageWriter.write(Unknown Source)
        at org.geotools.image.ImageWorker.writePNG(ImageWorker.java:2485)
        at
org.geoserver.wms.map.PNGMapResponse.formatImageOutputStream(PNGMapResponse.java:118)
        at
org.geoserver.wms.map.RenderedImageMapResponse.write(RenderedImageMapResponse.java:122)

This is usually followed by:

18 Jan 11:46:01 DEBUG [org.geoserver.wms.map] - Writing png image ... done!
18 Jan 11:46:01 INFO [org.geoserver.ows] - Problem writing exception
information back to calling client:
org.mortbay.jetty.EofException
        at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760)
        at
org.mortbay.jetty.AbstractGenerator$Output.blockForOutput(AbstractGenerator.java:548)
        at
org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:634)
        at
org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:587)
        at
org.geoserver.filters.AlternativesResponseStream.write(AlternativesResponseStream.java:53)
        at
org.geoserver.wms.WMSServiceExceptionHandler.handleXmlException(WMSServiceExceptionHandler.java:282)
        at
org.geoserver.wms.WMSServiceExceptionHandler.handleServiceException(WMSServiceExceptionHandler.java:126)
        at
org.geoserver.ows.Dispatcher.handleServiceException(Dispatcher.java:1631)
        at org.geoserver.ows.Dispatcher.exception(Dispatcher.java:1576)
        at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:282)

There's nothing visually wrong with the output tiles as far as I can see.
What's likely to be causing this? Is it a cause for concern?

Thanks.
Jonathan

This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from us,
including without limitation all GCSX traffic, may be subject to recording
and/or monitoring in accordance with relevant legislation.

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks Simone,
Elsewhere in the log I also get:

21 Jan 15:06:34 TRACE [org.geoserver.ows] - Client has closed stream
javax.imageio.IIOException: I/O error writing PNG file!
at com.sun.imageio.plugins.png.PNGImageWriter.write(Unknown Source)
at org.geotools.image.ImageWorker.writePNG(ImageWorker.java:2485)

Which was what I figured covered client closing the connection. I was concerned with that one because its an ERROR type event and it happens quite commonly.

Cheers,
Jonathan

On 18 January 2013 19:05, Simone Giannecchini <simone.giannecchini@anonymised.com> wrote:

The client has closed the connection.
It should not be a cause for concern (but it is very late on Friday
evening… I might be wrong :slight_smile: ).

Regards,
Simone Giannecchini

Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 333 8128928

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


On Fri, Jan 18, 2013 at 12:50 PM, Jonathan Moules
<jonathanmoules@anonymised.com> wrote:

Hi list,
Often when I pan around my OpenLayers project which is called a GeoServer
2.2.3 WMS, I get an “IndexOutOfBoundsException” error:

18 Jan 11:46:01 ERROR [org.geoserver.ows] -
java.lang.IndexOutOfBoundsException: pos < flushedPos!
at javax.imageio.stream.ImageInputStreamImpl.seek(Unknown Source)
at com.sun.imageio.plugins.png.IDATOutputStream.finishChunk(Unknown
Source)
at com.sun.imageio.plugins.png.IDATOutputStream.deflate(Unknown
Source)
at com.sun.imageio.plugins.png.IDATOutputStream.finish(Unknown
Source)
at com.sun.imageio.plugins.png.PNGImageWriter.write_IDAT(Unknown
Source)
at com.sun.imageio.plugins.png.PNGImageWriter.write(Unknown Source)
at org.geotools.image.ImageWorker.writePNG(ImageWorker.java:2485)
at
org.geoserver.wms.map.PNGMapResponse.formatImageOutputStream(PNGMapResponse.java:118)
at
org.geoserver.wms.map.RenderedImageMapResponse.write(RenderedImageMapResponse.java:122)

This is usually followed by:

18 Jan 11:46:01 DEBUG [org.geoserver.wms.map] - Writing png image … done!
18 Jan 11:46:01 INFO [org.geoserver.ows] - Problem writing exception
information back to calling client:
org.mortbay.jetty.EofException
at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760)
at
org.mortbay.jetty.AbstractGenerator$Output.blockForOutput(AbstractGenerator.java:548)
at
org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:634)
at
org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:587)
at
org.geoserver.filters.AlternativesResponseStream.write(AlternativesResponseStream.java:53)
at
org.geoserver.wms.WMSServiceExceptionHandler.handleXmlException(WMSServiceExceptionHandler.java:282)
at
org.geoserver.wms.WMSServiceExceptionHandler.handleServiceException(WMSServiceExceptionHandler.java:126)
at
org.geoserver.ows.Dispatcher.handleServiceException(Dispatcher.java:1631)
at org.geoserver.ows.Dispatcher.exception(Dispatcher.java:1576)
at
org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:282)

There’s nothing visually wrong with the output tiles as far as I can see.
What’s likely to be causing this? Is it a cause for concern?

Thanks.
Jonathan

This transmission is intended for the named addressee(s) only and may
contain sensitive or protectively marked material up to RESTRICTED and
should be handled accordingly. Unless you are the named addressee (or
authorised to receive it for the addressee) you may not copy or use it, or
disclose it to anyone else. If you have received this transmission in error
please notify the sender immediately. All email traffic sent to or from us,
including without limitation all GCSX traffic, may be subject to recording
and/or monitoring in accordance with relevant legislation.


Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only – learn more at:
http://p.sf.net/sfu/learnmore_122812


Geoserver-users mailing list
Geoserver-users@anonymised.comforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

This transmission is intended for the named addressee(s) only and may contain sensitive or protectively marked material up to RESTRICTED and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All email traffic sent to or from us, including without limitation all GCSX traffic, may be subject to recording and/or monitoring in accordance with relevant legislation.