iweinzierl wrote: > Hello @ all, > > I am trying to insert some timestamps into a postgreSQL database. But the > geotools are throwing an exception while commiting my inserts. > I have read some tutorials about it and followed a describtion of the sun > forum. But still an exception. > I think there was a bug, similar to my problem, in gt2.2 but I cant find it > anymore. (I am using gt2.4.1) > > Here it is: > > java.lang.IllegalArgumentException: unable to parse Tue Apr 01 14:19:46 CEST > 2008 as Date > at > org.geotools.feature.type.TemporalAttributeType.parse(TemporalAttributeType.java:88) > Checking on trunk a different parse method is used that makes use of the Converter API (the same api that is used to switch between Data and String for the XML and Expression parts of the library).
You may want to look at patching 2.4.x to use the Converter API. The poor handling of Date and Boolean has been a long standing problem with the library; that the converter api is here to solve. See wiki page on expression handling improvements for details. Cheers, Jody ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
