Hey all (especially martin!)

I parsed a heterogeneous featurecollection today.  This caused line 220
of DefaultFeatureCollection.java to be run
(http://svn.refractions.net/geotools/geotools/branches/2.4.x/modules/library/main/src/main/java/org/geotools/feature/DefaultFeatureCollection.java)


When 'Logger.getAnonymousLogger(...)' on line 220 ran, it caused the
following exception:

java.lang.RuntimeException: java.lang.RuntimeException: Parsing failed
for FeatureCollection: java.util.MissingResourceException: Can't find
org.geotools.feature.collections bundle
        at
gov.mass.massgis.viewer.identify.IdentifyInformation.<init>(IdentifyInformation.java:105)
        at
gov.mass.massgis.viewer.identify.Identify.handleResponse(Identify.java:151)
        at
com.traversetechnologies.fulcrum.io.ContentTransport.transferDataToReceivers(ContentTransport.java:218)
        at
com.traversetechnologies.fulcrum.net.JDOMHttpSource.getContent(JDOMHttpSource.java:137)
        at
com.traversetechnologies.fulcrum.net.HttpSource.run(HttpSource.java:387)
Caused by: java.lang.RuntimeException: Parsing failed for
FeatureCollection: java.util.MissingResourceException: Can't find
org.geotools.feature.collections bundle
        at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:142)
        at org.geotools.xml.impl.BindingWalker
$BindingExecutionChain.execute(BindingWalker.java:204)
        at org.geotools.xml.impl.BindingWalker.walk(BindingWalker.java:163)
        at
org.geotools.xml.impl.ElementHandlerImpl.endElement(ElementHandlerImpl.java:222)
        at
org.geotools.xml.impl.ParserHandler.endElement(ParserHandler.java:496)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.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:184)
        at org.geotools.xml.Parser.parse(Parser.java:163)
        at
gov.mass.massgis.viewer.identify.IdentifyInformation.<init>(IdentifyInformation.java:77)
        ... 4 more
Caused by: java.util.MissingResourceException: Can't find
org.geotools.feature.collections bundle
        at java.util.logging.Logger.setupResourceInfo(Logger.java:1329)
        at java.util.logging.Logger.<init>(Logger.java:224)
        at java.util.logging.Logger.getAnonymousLogger(Logger.java:389)
        at
org.geotools.feature.DefaultFeatureCollection.add(DefaultFeatureCollection.java:221)
        at
org.geotools.feature.DefaultFeatureCollection.addAll(DefaultFeatureCollection.java:255)
        at
org.geotools.gml2.bindings.GMLAbstractFeatureCollectionTypeBinding.parse(GMLAbstractFeatureCollectionTypeBinding.java:92)
        at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:130)
        ... 19 more


This is something happening inside java logging.  Not sure quite what's
going on here, but when I replaced line 220 with the following:

Logger.getLogger("org.geotools.feature.collections").warning("Feature
Collection contains a heterogeneous mix of features");

everything worked fine.  I.e., instead of getAnonymousLogger() I used
getLogger().


Any ideas about the source of this exception?  Does this have anything
to do with our recent work with java logging factories?  Note that I
hadn't touched Logging.setLogFactory() at all in this code.  Beyond
which that Logger.getAnonymousLogger() was a legit
java.util.logging.Logger...not a Geotools replacement version.

--saul


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to