Problem with daylight savings time 'gap' and ad hoc view

I have created an ad-hoc view before daylight-saving. Now I want to run the view, but this error shows:

Error Message

Illegal instant due to time zone offset transition (daylight savings time 'gap'): 2016-03-21T00:00:00.000 (Asia/Tehran)

Error Trace

org.joda.time.IllegalInstantException: Illegal instant due to time zone offset transition (daylight savings time 'gap'): 2016-03-21T00:00:00.000 (Asia/Tehran) at org.joda.time.chrono.ZonedChronology.localToUTC(ZonedChronology.java:157) at org.joda.time.chrono.ZonedChronology.getDateTimeMillis(ZonedChronology.java:122) at org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133) at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:257) at org.joda.time.DateMidnight.<init>(DateMidnight.java:350) at org.joda.time.LocalDate.toDateMidnight(LocalDate.java:867) at org.joda.time.LocalDate.toDateMidnight(LocalDate.java:842) at com.jaspersoft.commons.dimengine.DayCategorizer.getLabel(DayCategorizer.java:62) at com.jaspersoft.commons.dimengine.AbstractDateTimeCategorizer.getLabel(AbstractDateTimeCategorizer.java:61) at com.jaspersoft.commons.dimengine.RangeDimensionMember.getLabel(RangeDimensionMember.java:33) at com.jaspersoft.ji.adhoc.InteractiveCrosstabBaseEngine.getLabelForHTML(InteractiveCrosstabBaseEngine.java:145) at com.jaspersoft.ji.adhoc.InteractiveIntelligentChartEngine.getLabelForHTML(InteractiveIntelligentChartEngine.java:176) at com.jaspersoft.ji.adhoc.InteractiveIntelligentChartEngine.createClientTreeNode(InteractiveIntelligentChartEngine.java:347) at com.jaspersoft.ji.adhoc.InteractiveIntelligentChartEngine.createClientTreeNode(InteractiveIntelligentChartEngine.java:379) at com.jaspersoft.ji.adhoc.InteractiveIntelligentChartEngine.createTreeNode(InteractiveIntelligentChartEngine.java:223) at com.jaspersoft.ji.adhoc.InteractiveIntelligentChartEngine.generateViewModel(InteractiveIntelligentChartEngine.java:155) at com.jaspersoft.ji.adhoc.action.AdhocAction.setReportModelInContext(AdhocAction.java:1523) at com.jaspersoft.ji.adhoc.action.AdhocAction.view(AdhocAction.java:617) at com.jaspersoft.ji.adhoc.action.AdhocAction.initForExistingReport(AdhocAction.java:504) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
 

 

m.lotfizad's picture
Joined: Feb 6 2016 - 3:05am
Last seen: 4 years 9 months ago

1 Answer:

Seems like there's a DateTimeZone not using LocalDateTime.

hozawa's picture
171305
Joined: Apr 24 2010 - 4:31pm
Last seen: 3 years 9 months ago
Feedback