NPE in SchemaIndexImpl during concurrent access
-----------------------------------------------
Key: GEOT-3316
URL: http://jira.codehaus.org/browse/GEOT-3316
Project: GeoTools
Issue Type: Bug
Components: ext xml-xsd
Affects Versions: 2.6.1
Environment: ESX guest Linux, Oracle JDK 1.6u22. Running transactions
against PostgreSQL 8.3. GeoTools 2.6.1 being used by GeoServer 2.0.1.
Reporter: Dustin Parker
Occasionally, during heavy load, GeoServer will throw errors like this:
{noformat}
java.lang.NullPointerException
at
org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.didRemove(BasicNotifierImpl.java:87)
at org.eclipse.emf.common.util.BasicEList.remove(BasicEList.java:922)
at
org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:143)
at org.eclipse.emf.common.util.BasicEList.remove(BasicEList.java:869)
at
org.eclipse.emf.common.notify.impl.BasicNotifierImpl$EAdapterList.remove(BasicNotifierImpl.java:137)
at
org.geotools.xml.impl.SchemaIndexImpl.destroy(SchemaIndexImpl.java:97)
at
org.geotools.xml.impl.ParserHandler.endDocument(ParserHandler.java:638)
at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown
Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown
Source)
at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.geotools.xml.Parser.parse(Parser.java:223)
at org.geoserver.wfs.xml.v1_1_0.WfsXmlReader.read(WfsXmlReader.java:91)
{noformat}
This happens in various places and not just when reading the incoming request.
I believe this is related to
{{org.geotools.xml.impl.SchemaIndexImpl.SchemaIndexImpl(XSDSchema[])}} and
{{org.geotools.xml.impl.SchemaIndexImpl.destroy()}} adding and removing
listeners to shared instances of {{XSDSchema}} without synchronization.
Patch forthcoming...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel