Hey Ben,
nice improvement! I'm going to cut GeoTools 14.0 (final) Saturday, do you
want to backport
this fix before that happens?
Looks sane and simple enough to me.

Cheers
Andrea


On Thu, Sep 24, 2015 at 1:51 AM, Ben Caradoc-Davies <[email protected]>
wrote:

> 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
>



-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
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

Reply via email to