Gerhard, I have just pushed a fix to the GeoTools master branch that improves null handling in the FormatDateTimezone function. With this change, FormatDateTimezone returns null if any parameter is null. Rather than returning the exception you reported, the new behaviour should cause the encoder to skip elements for null dates in FormatDateTimezone.
I expect that this change will be included in the next GeoServer master nightly build, in about 9 hours (24 September, 08:30 UTC): http://ares.boundlessgeo.com/geoserver/master/ When the next build is complete, these links should work: http://ares.boundlessgeo.com/geoserver/master/geoserver-master-2015-09-24-war.zip http://ares.boundlessgeo.com/geoserver/master/ext-2015-09-24/geoserver-2.9-SNAPSHOT-app-schema-plugin.zip Please let us know if the improved null handling behaviour of FormatDateTimezone resolves the problem you encountered. Kind regards, Ben. On 24/09/15 01:14, Dünnebeil Gerhard wrote: > Hello all, > > for some reasons I NEED to fiddle around with the formatting of a time stamp > in an app-schema mapping. > > Everything works like a charm for the cases where the field in the database > is populated. > But when it comes to a NULL-Value I get the error message > "formatDateTimezone: could not parse date: null". > > With the background knowledge of what happens inside (delegation to java's > SimpleDateFormat) I am pretty sure I know what goes wrong here. > > Is there a workaround available for this? Or a better way to format the date? > We already tried formatting it directly in the database (oracle, > TO_CHAR-Function) but where not completely happy with that either. > > Best regards > G. Dünnebeil > > > GERHARD DÜNNEBEIL > Secure Information Management > Safety & Security Department > > AIT Austrian Institute of Technology GmbH > Donau-City-Straße 1 | 1220 Vienna | Austria > T +43(0) 50550-3173 | M +43(0) 664 2351747 | F +43(0) 50550-4150 > [email protected]<mailto:[email protected]> | > http://www.ait.ac.at<http://www.ait.ac.at/> > > FN: 115980 i HG Wien | UID: ATU14703506 > http://www.ait.ac.at/Email-Disclaimer > > > > > ------------------------------------------------------------------------------ > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place. > SourceForge users - Click here to start your Free Trial of Datadog now! > http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 > > > > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Ben Caradoc-Davies <[email protected]> Director Transient Software Limited <http://transient.nz/> New Zealand ------------------------------------------------------------------------------ Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140 _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
