创建新的org.joda.time.DateTime抛出抛出初始化错误

时间:2016-10-13 22:17:20

标签: java datetime initialization jodatime

我的mapreduce工作失败,原因如下: 全栈:

java.lang.ExceptionInInitializerError
at org.joda.time.chrono.ISOChronology.<clinit>(ISOChronology.java:59)
at org.joda.time.DateTimeUtils.getChronology(DateTimeUtils.java:266)
at org.joda.time.convert.AbstractConverter.getChronology(AbstractConverter.java:82)
at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:172)
at org.joda.time.DateTime.<init>(DateTime.java:257)
at com.xxx.myClass(myFile.scala:70)
... 11 more
Caused by: java.lang.NullPointerException

我从scala调用构造函数:

val dateTime: DateTime = new DateTime(long)

0 个答案:

没有答案