question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ZoneRulesException locally

See original GitHub issue

Several tests failing on:

==> X org.http4s.client.UnexpectedStatusSuite.UnexpectedStatus should not return null 0.09s java.time.zone.ZoneRulesException: Unknown time-zone ID: America/Indianapolis
    at java.time.zone.ZoneRulesProvider$.getProvider(/Users/ross.baker/src/http4s/client/js/target/scala-2.12/http4s-client-test-fastopt/main.js:16356)
    at java.time.zone.ZoneRulesProvider$.getRules(/Users/ross.baker/src/http4s/client/js/target/scala-2.12/http4s-client-test-fastopt/main.js:16394)

Briefly discussed https://github.com/http4s/http4s/pull/5065#issuecomment-908608752. We need some sort of workaround, because I don’t have a sense what I broke and what I didn’t.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
rossabakercommented, Sep 20, 2021

On the branch I was on, #5234 fixes both this and a null pointer exception that I think I mentioned somewhere but can’t find now.

1reaction
rossabakercommented, Sep 20, 2021

The constructor of ArbitraryInstances is invoking ZoneId.systemDefault, I think as part of the httpDate generator. On the next line, it tries to load UTC, but it’s too late.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] java.time.zone.ZoneRulesException: Unknown time ...
ZoneRulesException occurs while validating time zone This exception is used to indicate problems with configured time zone rules.
Read more >
[CI] Failures in various sql tests due to ZoneRulesException ...
Reproduces locally?: no. Applicable branches: 6.8. Failure history: started failing on May 11th. Failure excerpt:.
Read more >
ZoneRulesException (Java Platform SE 8 ) - Oracle Help Center
This exception is used to indicate a problems with the configured time-zone rules. Implementation Requirements: This class is intended for use in a...
Read more >
Android ThreeTen ABP library not working in unit tests ...
This exception is caused because AndroidThreeTen.init has not been called with a context. Local unit tests do not have an Application or a ......
Read more >
java.time.zone (Java SE 15 & JDK 15 [ad-hoc build])
Package java.time.zone. Support for time-zones and their rules. Daylight Saving Time and Time-Zones are concepts used by Governments to alter local time. This ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found