[Geoserver-users] heavy charge = NoSuchElementException, ConcurrentModificationException

Hi

Since this morning we're getting several NoSuchElementException - Coul not
aquire feature..
I notice also a bunch of ConcurrentModificationException but a search for
jira issues showed this problem is already fix in gt 2.5.x, 1.7.1 geoserver
release.

The production server is being heavly hitted with client requests.

Some logs: http://www.nabble.com/file/p21480194/exception.txt exception.txt

Any help will appreciated!

Thanks,
Pedro Mendes
--
View this message in context: http://www.nabble.com/heavy-charge-%3D-NoSuchElementException%2C-ConcurrentModificationException-tp21480194p21480194.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Pedro,

Pedro Mendes wrote:

Hi

Since this morning we're getting several NoSuchElementException - Coul not
aquire feature.. I notice also a bunch of ConcurrentModificationException but a search for
jira issues showed this problem is already fix in gt 2.5.x, 1.7.1 geoserver
release.

Sorry, which version of GeoServer are you using? Are you using 1.7.1?

The production server is being heavly hitted with client requests.

Some logs: http://www.nabble.com/file/p21480194/exception.txt exception.txt

Any help will appreciated!

Thanks,
Pedro Mendes

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

Justin Deoliveira-6 wrote:

Sorry, which version of GeoServer are you using? Are you using 1.7.1?

I forgot to mention that.. Geoserver 1.6.2 running on tomcat 6.0.16 with jdk
1.6.0_07-b06

--
View this message in context: http://www.nabble.com/heavy-charge-%3D-NoSuchElementException%2C-ConcurrentModificationException-tp21480194p21481229.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Pedro,

So as you stated this issue has been solved since 1.6.2... as well there have been other wfs performance improvements relating to memory management on 1.7.x.

Is it not possible for you to upgrade?

Pedro Mendes wrote:

Justin Deoliveira-6 wrote:

Sorry, which version of GeoServer are you using? Are you using 1.7.1?

I forgot to mention that.. Geoserver 1.6.2 running on tomcat 6.0.16 with jdk
1.6.0_07-b06

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

Justin Deoliveira-6 wrote:

So as you stated this issue has been solved since 1.6.2... as well there
have been other wfs performance improvements relating to memory
management on 1.7.x.

I wrote that regarding the ConcurrentModificationException. i didn't find
anything related with the NoSuchElementException happening every time
Geoserver querys the database with spatial querys.
The server was restart and know it seems fine..

Some stacktrace on NoSuchElementException issue:
2009-01-15 12:39:44,167 ERROR [geotools.rendering] - Could not aquire
feature:org.geotools.data.DataSourceException: Error Performing SQL query:
SELECT "GIRID", "SCALE_FACTOR", "SUBTYPE", "ROTATION", "COLOR", "LOCATION"
FROM "GIR_INFRA_NODES" WHERE ("TYPE" = 5 AND
(SDO_RELATE("LOCATION",MDSYS.SDO_GEOMETRY(2003,27492,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-96359.4517498124,-105646.52915197912,-96255.8762501876,-105592.13084802088)),'mask=anyinteract
querytype=WINDOW') = 'TRUE' AND "SUBTYPE" = 10))
java.util.NoSuchElementException: Could not aquire
feature:org.geotools.data.DataSourceException: Error Performing SQL query:
SELECT "GIRID", "SCALE_FACTOR", "SUBTYPE", "ROTATION", "COLOR", "LOCATION"
FROM "GIR_INFRA_NODES" WHERE ("TYPE" = 5 AND
(SDO_RELATE("LOCATION",MDSYS.SDO_GEOMETRY(2003,27492,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-96359.4517498124,-105646.52915197912,-96255.8762501876,-105592.13084802088)),'mask=anyinteract
querytype=WINDOW') = 'TRUE' AND "SUBTYPE" = 10))
  at
org.geotools.data.store.NoContentIterator.next(NoContentIterator.java:53)
  at
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1605)
  at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:649)
  at
org.geotools.renderer.shape.ShapefileRenderer.renderWithStreamingRenderer(ShapefileRenderer.java:1441)
  at
org.geotools.renderer.shape.ShapefileRenderer.paint(ShapefileRenderer.java:1313)
  at
org.geotools.renderer.shape.ShapefileRenderer.paint(ShapefileRenderer.java:262)
  at
org.vfny.geoserver.wms.responses.DefaultRasterMapProducer.produceMap(DefaultRasterMapProducer.java:308)
  at
org.vfny.geoserver.wms.responses.GetMapResponse.execute(GetMapResponse.java:432)
  at
org.geoserver.ows.adapters.ResponseAdapter.getMimeType(ResponseAdapter.java:48)
  at org.geoserver.ows.Dispatcher.response(Dispatcher.java:602)
  at org.geoserver.ows.Dispatcher.handleRequestInternal(Dispatcher.java:192)
  at
org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:139)
  at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
  at
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
  at
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
  at
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:392)
  at
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:347)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:69)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:264)
  at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
  at
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
  at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  at
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
  at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  at
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
  at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  at
org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:178)
  at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  at
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:229)
  at
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274)
  at
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:148)
  at
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
  at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  at java.lang.Thread.run(Thread.java:619)
Caused by: org.geotools.data.DataSourceException: Error Performing SQL
query: SELECT "GIRID", "SCALE_FACTOR", "SUBTYPE", "ROTATION", "COLOR",
"LOCATION" FROM "GIR_INFRA_NODES" WHERE ("TYPE" = 5 AND
(SDO_RELATE("LOCATION",MDSYS.SDO_GEOMETRY(2003,27492,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-96359.4517498124,-105646.52915197912,-96255.8762501876,-105592.13084802088)),'mask=anyinteract
querytype=WINDOW') = 'TRUE' AND "SUBTYPE" = 10))
  at
org.geotools.data.jdbc.JDBC1DataStore.executeQuery(JDBC1DataStore.java:921)
  at
org.geotools.data.jdbc.JDBC1DataStore.getFeatureReader(JDBC1DataStore.java:627)
  at
org.geotools.data.jdbc.JDBCFeatureCollection.reader(JDBCFeatureCollection.java:82)
  at
org.geotools.data.store.DataFeatureCollection.openIterator(DataFeatureCollection.java:241)
  at
org.geotools.data.store.DataFeatureCollection.iterator(DataFeatureCollection.java:211)
  at
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1591)
  ... 54 more
Caused by: java.sql.SQLException: ORA-29902: error in executing
ODCIIndexStart() routine
ORA-13209: internal error while reading SDO_INDEX_METADATA table
ORA-29400: data cartridge error
ORA-01591: lock held by in-doubt distributed transaction 5.11.80720
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 286

  at
oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
  at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
  at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
  at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
  at
oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:801)
  at
oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
  at
oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:841)
  at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1134)
  at
oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1274)
  at
org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208)
  at
org.geotools.data.jdbc.JDBC1DataStore.executeQuery(JDBC1DataStore.java:910)
  ... 59 more

Justin Deoliveira-6 wrote:

Is it not possible for you to upgrade?

I'm preparing a Geoserver 1.7.1 release with our configuration data to start
running tests. Maybe sometime soon.

Cumps,
Pedro

--
View this message in context: http://www.nabble.com/heavy-charge-%3D-NoSuchElementException%2C-ConcurrentModificationException-tp21480194p21481864.html
Sent from the GeoServer - User mailing list archive at Nabble.com.