Hi Ryan Moquin if you read the IRC logs yesterday you will see a couple of WFS patches were not applied in time for the 2.4.0 release; stop by next week (or jump over to the geotools-devel list) and see if that developer can send you some jars to try out.
It could very well be that we need to make a 2.4.1 - but we just did not have enough people to try out the WFS patches and trust them last week. For the 2.5.x development stream this will be less of a problem as a desktop client (http://udig.refractions.net/) has rejoined the project and will serve to keep WFS support honest. Cheers, Jody > Hey Jody, > > Got some bad news to report :(. It looks like 2.4 final actually > causes me code to no longer be able to retrieve features from > geoserver anymore... My feature collection comes back completely > empty. When I switch back to 2.4-RC0, I can pull my feature types > again from Geoserver.. I'm pretty tired so I don't feel like looking > into it too far tonight, but it's a bummer. I 'm not sure what may > have changed since the RC0 that could have possibly broke this? Maybe > something with the namespace? Whether I request my feature type, with > or without the namespace, neither works... very odd. > > Ryan > > On Feb 10, 2008 3:28 PM, Jody Garnett <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Ryan Moquin wrote: > > As I was writing the last email, I realized I should just try it > > because it was probably the fact that it uses hsql as a lookup > > mechanism as you inferred. I misread it as meaning I had to be > > getting the features from an hsql database. My bad. > No worries; it is always very hard for me to explain the various parts > of geotools - and I do a lot of training. > > When I substituted that jar for the wkt one, I'm now able to return > > features. > Whew! Yeah this must of been a case where the "real" epsg database was > needed. > > I was wondering if you could tell me if this exception that appears > > when returning the features is benign or not? I seem to get a > lot of > > feature, which leads me to believe that the request worked, but > I see > > this error pop up a few times: > Well it is going to be either invalid XML data (what WFS were you > using > again), or it will be an actual bug .. before we go much further try > out 2.4.0 and see if it is one of the WFS bugs that has been fixed. A > couple users have been very kind and supplied patches to the > WFSDataStore... > > Jody > > Exception in thread "Feature Collection Buffer" > > java.lang.ArrayIndexOutOfBoundsException: 0 > > at > > > > org.geotools.xml.gml.GMLComplexTypes$MultiPolygonType.getValue(GMLComplexTypes.java: > > 3584) > > at > > > > org.geotools.xml.handlers.ComplexElementHandler.endElement(ComplexElementHandler.jav > > a:156) > > at > > org.geotools.xml.XMLSAXHandler.endElement(XMLSAXHandler.java:264) > > at > > org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown > Source) > > at > > > org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown > > Source) > > at > > > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown > > Source) > > at > > > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.disp > > atch(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.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown > Source) > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) > > at javax.xml.parsers.SAXParser.parse(SAXParser.java:176) > > at > > > org.geotools.xml.DocumentFactory.getInstance(DocumentFactory.java:139) > > at > > > org.geotools.data.wfs.WFSFeatureReader.run(WFSFeatureReader.java:125) > > > > There isn't any clear indication of what this means. Is this > just an > > error that is mistakenly logged rather than ignored? Or would this > > indicate that there might be another problem in my system? > > > > Thanks, > > Ryan > > > > On Feb 8, 2008 9:45 PM, Jody Garnett <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > <mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>>> wrote: > > > > You need to make sure that you have the referencing > subsystem set > > up and > > working; you need *one and only one* one epsg-xxx.jar. Their are > > several > > to choose from: > > - epsg-hsql.jar (hint choose this one - it includes the > offical epsg > > database) > > - epsg-wkt.jar (a quick thing that uses a property file; it > will work > > most of the time) > > - epsg-postgres - used when you have installed the offical epsg > > database > > into a postgres database > > > > For more information visit the user guide; and I apologize - the > > website > > seems slow today. > > Jody > > PS. 2.4.0 should be out today, maybe it will be available by > the time > > you read this ... > > > I'm doing a WFS request, and when I try to write out the > > > FeatureCollection, I get an error. Is there a jar file I'm > > missing or > > > something? I can create a FeatureCollection manually and > write > > it out > > > with no problem. When I try to write out the > FeatureCollection I > > > received from the WFS server, I get the following error. > I've been > > > looking through the jar files and I can see references to this > > class, > > > but haven't found a class named > > "CoordinateOperationAuthorityFactory" yet. > > > > > > Caused by: org.geotools.factory.FactoryNotFoundException: > No factory > > > of kind "CoordinateOperati > > > onAuthorityFactory" found. > > > at > > > > > > > org.geotools.factory.FactoryRegistry.getServiceProvider(FactoryRegistry.java:364) > > > at > > > > > > > org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:115) > > > at > > > > > > > org.geotools.referencing.ReferencingFactoryFinder.getAuthorityFactory(ReferencingFac > > > toryFinder.java:229) > > > at > > > > > > > org.geotools.referencing.ReferencingFactoryFinder.getCoordinateOperationAuthorityFac > > > tory(ReferencingFactoryFinder.java:485) > > > at > > > > > > > org.geotools.referencing.operation.AuthorityBackedFactory.<init>(AuthorityBackedFact > > > ory.java:126) > > > at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > > at > > > > > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl. > > > java:39) > > > at > > > > > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAcces > > > sorImpl.java:27) > > > at > > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > > at > > > > > > > org.geotools.factory.FactoryCreator.createServiceProvider(FactoryCreator.java:257) > > > at > > > > > > org.geotools.factory.FactoryCreator.createSafe(FactoryCreator.java:225) > > > at > > > > > > > org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:176) > > > at > > > > > > > org.geotools.referencing.ReferencingFactoryFinder.getFactory(ReferencingFactoryFinde > > > r.java:205) > > > at > > > > > > > org.geotools.referencing.ReferencingFactoryFinder.getCoordinateOperationFactory(Refe > > > rencingFactoryFinder.java:332) > > > at > > > > > > > org.geotools.referencing.operation.BufferedCoordinateOperationFactory.getBackingFact > > > ory(BufferedCoordinateOperationFactory.java:204) > > > at > > > > > > > org.geotools.referencing.operation.BufferedCoordinateOperationFactory.<init>(Buffere > > > dCoordinateOperationFactory.java:163) > > > at > > > > > > > org.geotools.referencing.operation.BufferedCoordinateOperationFactory.<init>(Buffere > > > dCoordinateOperationFactory.java:151) > > > at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > > at > > > > > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl. > > > java:39) > > > at > > > > > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAcces > > > sorImpl.java:27) > > > at > > java.lang.reflect.Constructor.newInstance(Constructor.java:494) > > > at > > > > > > > org.geotools.factory.FactoryCreator.createServiceProvider(FactoryCreator.java:257) > > > at > > > > > > org.geotools.factory.FactoryCreator.createSafe(FactoryCreator.java:225) > > > at > > > > > > > org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:176) > > > at > > > > > > > org.geotools.referencing.ReferencingFactoryFinder.getFactory(ReferencingFactoryFinde > > > r.java:205) > > > at > > > > > > > org.geotools.referencing.ReferencingFactoryFinder.getCoordinateOperationFactory(Refe > > > rencingFactoryFinder.java:332) > > > at > > > > > > org.geotools.referencing.CRS.getCoordinateOperationFactory(CRS.java:218) > > > at > > > > > > > org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:463) > > > at > > > > > > > org.geotools.geometry.jts.ReferencedEnvelope.transform(ReferencedEnvelope.java:433) > > > at > > > > org.geotools.data.wfs.WFSDataStore.getBounds(WFSDataStore.java:862) > > > at > > > > > > > org.geotools.data.wfs.WFSFeatureSource.getBounds(WFSFeatureSource.java:102) > > > at > > > > > > > org.geotools.data.DefaultFeatureResults.getBounds(DefaultFeatureResults.java:249) > > > at > > > > > > > org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.handleFeatureCollecti > > > on(FeatureTransformer.java:548) > > > at > > > > > > > org.geotools.feature.FeatureCollectionIteration.walker(FeatureCollectionIteration.ja > > > va:103) > > > at > > > > > > > org.geotools.feature.FeatureCollectionIteration.iterate(FeatureCollectionIteration.j > > > ava:91) > > > at > > > > > > > org.geotools.feature.FeatureCollectionIteration.iteration(FeatureCollectionIteration > > > .java:84) > > > at > > > > > > > org.geotools.gml.producer.FeatureTransformer$FeatureTranslator.encode(FeatureTransfo > > > rmer.java:408) > > > at > > > > > > > org.geotools.xml.transform.TransformerBase$XMLReaderSupport.parse(TransformerBase.ja > > > va:702) > > > at > > > > > > > org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityIm > > > pl.java:484) > > > at > > > > > > > org.geotools.xml.transform.TransformerBase$Task.run(TransformerBase.java:295) > > > at > > > > > > > org.geotools.xml.transform.TransformerBase.transform(TransformerBase.java:128) > > > ... 20 more > > > > > > ------------------------------------------------------------------------ > > > > > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by: Microsoft > > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > Geotools-gt2-users mailing list > > > [email protected] > <mailto:[email protected]> > > <mailto:[email protected] > <mailto:[email protected]>> > > > > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users > > > > > > > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
