On Mon, Feb 27, 2012 at 5:46 PM, Leoze Oze <[email protected]> wrote:
> Andrea,
> thanks for the response.
> the problem was the same with diferrents versions of Postgres (8.3, 9.0 and
> 9.1) on local or remote host.
>
> As you indicated, I enabled connection  validation:
> params.put(PostgisNGDataStoreFactory.VALIDATECONN.key,"true");
> Now, it works (magic?) fine except the same warnings :
>
> 27/Fev/2012 16:34:45 org.geotools.jdbc.JDBCFeatureReader finalize
> WARNING: There is code leaving feature readers/iterators open, this is
> leaking statements and connections!
> 27/Fev/2012 16:34:45 org.geotools.jdbc.JDBCFeatureReader finalize
> WARNING: There is code leaving feature readers/iterators open, this is
> leaking statements and connections!
>
> I am a little bit afraid with theres warnings using gt 8.0.  :(
> Any tip ?

Something is using jdbc readers but not closing them... run
your application with this system property set:
-Dgt2.jdbc.trace=true
(or System.setProperty("gt2.jdbc.trace", "true" in your code)

and JDBCFeatureReader should log the stack trace that gathered
the reader without closing it.

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

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

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to