flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Metzger <rmetz...@apache.org>
Subject Re: Problem with JodaTime
Date Sat, 24 Dec 2016 08:40:05 GMT
Hi Stephan,

Can you post the list of fields in the POJO and the full exception (so that
I can see which serializer is being used).

In general, to fix such an issue, you have to implement a custom serializer
for the field that is causing the issues.

On Thu, Dec 22, 2016 at 3:44 PM, Stephan Epping <stephan.epping@zweitag.de>
wrote:

> Hi,
>
> I noticed the following Problem with a POJO I use to encapsulate Values.
>
> *java.lang.NullPointerException*
> * at org.joda.time.tz
> <http://org.joda.time.tz>.CachedDateTimeZone.getInfo(CachedDateTimeZone.java:143)*
> * at org.joda.time.tz
> <http://org.joda.time.tz>.CachedDateTimeZone.getOffset(CachedDateTimeZone.java:103)*
> * at
> org.joda.time.format.DateTimeFormatter.printTo(DateTimeFormatter.java:722)*
> * at
> org.joda.time.format.DateTimeFormatter.printTo(DateTimeFormatter.java:535)*
> * at
> org.joda.time.format.DateTimeFormatter.print(DateTimeFormatter.java:671)*
> * at org.joda.time.base.AbstractInstant.toString(AbstractInstant.java:424)*
> * at
> org.joda.time.base.AbstractDateTime.toString(AbstractDateTime.java:314)*
> * at java.lang.String.valueOf(String.java:2994)*
> * at java.lang.StringBuilder.append(StringBuilder.java:131)*
>
> and found this
>
> https://github.com/JodaOrg/joda-time/issues/307
>
> Help is really appreciated.
>
> best,
> Stephan
>
>
>
>

Mime
View raw message