Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timestamps before 1900 cause IllegalArgumentExceptions #94

Open
ridoo opened this issue Mar 11, 2015 · 1 comment
Open

Timestamps before 1900 cause IllegalArgumentExceptions #94

ridoo opened this issue Mar 11, 2015 · 1 comment
Assignees
Labels

Comments

@ridoo
Copy link
Member

ridoo commented Mar 11, 2015

Have a look at this entry: http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=10974

A fix would just use the FixedMilliseconds class instead of Seconds ...

@ridoo ridoo added the bug label Mar 11, 2015
@ridoo ridoo self-assigned this Mar 11, 2015
@ridoo
Copy link
Member Author

ridoo commented Mar 11, 2015

After testing, it seems that this bug affects deeper changes than just exchanging Second with FixedMilliSecond: When drawing the chart DateAxis fails with

Caused by: java.lang.NullPointerException: null
    at org.jfree.chart.axis.DateAxis.previousStandardDate(DateAxis.java:1018) ~[jfreechart-1.0.13.jar:na]
    at org.jfree.chart.axis.DateAxis.nextStandardDate(DateAxis.java:1091) ~[jfreechart-1.0.13.jar:na]
    at org.jfree.chart.axis.DateAxis.calculateLowestVisibleTickValue(DateAxis.java:848) ~[jfreechart-1.0.13.jar:na]
    at org.jfree.chart.axis.DateAxis.refreshTicksHorizontal(DateAxis.java:1620) ~[jfreechart-1.0.13.jar:na]
    at org.jfree.chart.axis.DateAxis.refreshTicks(DateAxis.java:1556) ~[jfreechart-1.0.13.jar:na]
    at org.jfree.chart.axis.ValueAxis.reserveSpace(ValueAxis.java:807) ~[jfreechart-1.0.13.jar:na]
    at org.jfree.chart.plot.XYPlot.calculateDomainAxisSpace(XYPlot.java:3070) ~[jfreechart-1.0.13.jar:na]
    at org.jfree.chart.plot.XYPlot.calculateAxisSpace(XYPlot.java:3028) ~[jfreechart-1.0.13.jar:na]
    at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:3156) ~[jfreechart-1.0.13.jar:na]
    at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1235) ~[jfreechart-1.0.13.jar:na]
    at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1117) ~[jfreechart-1.0.13.jar:na]
    at org.n52.io.img.ChartRenderer.drawChartToImage(ChartRenderer.java:148) ~[timeseries-io-1.4.0-SNAPSHOT.jar:na]

However, unfortunately I found no bug related to this issue on the bugtracker ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant