# Weather Binding throws many forecast not available errors

**URL:** <https://community.openhab.org/t/weather-binding-throws-many-forecast-not-available-errors/9294>\
**Category:** Bindings\
**Created:** [March 31, 2016, 11:08pm UTC](https://community.openhab.org/t/weather-binding-throws-many-forecast-not-available-errors/9294 "2016-03-31T23:08:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![noemark1](https://community.openhab.org/letter_avatar_proxy/v4/letter/n/74df32/32.png) [@noemark1](https://community.openhab.org/u/noemark1)\
**Post date:** [March 31, 2016, 11:08pm UTC](https://community.openhab.org/t/weather-binding-throws-many-forecast-not-available-errors/9294/1 "2016-03-31T23:08:55Z")

</div>

All-

I am using the weather binding with OpenWeatherMap. The system seems to be working fine, but in my Openhab.log file, there are a huge number of errors that read:

[ERROR] [b.w.i.gfx.WeatherTokenResolver:78] - Weather forecast day 2 not available, only 0 available  
java.lang.RuntimeException: Weather forecast day 2 not available, only 0 available.

at org.openhab.binding.weather.internal.gfx.WeatherTokenResolver.replaceForecast(WeatherTokenResolver.java:111) ~[bundlefile:na]  
at org.openhab.binding.weather.internal.gfx.WeatherTokenResolver.resolveToken(WeatherTokenResolver.java:68) ~[bundlefile:na]  
at org.openhab.binding.weather.internal.gfx.TokenReplacingReader.read(TokenReplacingReader.java:74) [bundlefile:na]  
at org.openhab.binding.weather.internal.gfx.TokenReplacingReader.read(TokenReplacingReader.java:100) [bundlefile:na]  
at org.openhab.binding.weather.internal.gfx.TokenReplacingReader.read(TokenReplacingReader.java:90) [bundlefile:na]  
at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1364) [org.apache.commons.io\_2.0.1.v201105210651.jar:2.0.1]  
at org.apache.commons.io.IOUtils.copy(IOUtils.java:1340) [org.apache.commons.io\_2.0.1.v201105210651.jar:2.0.1]  
at org.apache.commons.io.IOUtils.copy(IOUtils.java:1393) [org.apache.commons.io\_2.0.1.v201105210651.jar:2.0.1]  
at org.openhab.binding.weather.internal.gfx.WeatherServlet.doGet(WeatherServlet.java:129) [bundlefile:na]  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) [javax.servlet\_3.0.0.v201112011016.jar:na]  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet\_3.0.0.v201112011016.jar:na]  
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61) [org.eclipse.equinox.http.servlet\_1.1.300.v201$  
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128) [org.eclipse.equinox.http.servlet\_1.1.300.v20120522-18$  
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60) [org.eclipse.equinox.http.servlet\_1.1.300.v20120522-1841.jar$  
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet\_3.0.0.v201112011016.jar:na]  
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598) [org.eclipse.jetty.servlet\_8.1.3.v20120522.jar:8.1.3.v20120522]  
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486) [org.eclipse.jetty.servlet\_8.1.3.v20120522.jar:8.1.3.v20120522]  
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) [org.eclipse.jetty.server\_8.1.3.v20120522.jar:8.1.3.v20120522]  
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) [org.eclipse.jetty.server\_8.1.3.v20120522.jar:8.1.3.v20120522]

etc. Does anyone have any ideas? I am refreshing every 10 minutes, but these errors periodically occur and are logged every few seconds. The logfile is getting big.

Many thanks,

-Mark

---

<div class="post-metadata">

**Author:** ![Simson](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@Simson](https://community.openhab.org/u/Simson)\
**Post date:** [April 3, 2016, 11:43am UTC](https://community.openhab.org/t/weather-binding-throws-many-forecast-not-available-errors/9294/2 "2016-04-03T11:43:06Z")

</div>

Same here…

Sometimes it seems to work and all data will be displayed, but mostly it fills up my logfile with the above mentioned errors.

I´m using OpenHAB v1.8.2.

Thanks  
Simon

---

<div class="post-metadata">

**Author:** ![watou](https://community.openhab.org/user_avatar/community.openhab.org/watou/32/70595_2.png) [@watou](https://community.openhab.org/u/watou)\
**Post date:** [April 3, 2016, 5:15pm UTC](https://community.openhab.org/t/weather-binding-throws-many-forecast-not-available-errors/9294/3 "2016-04-03T17:15:56Z")

</div>

Could you replace your weather JAR with [this one](https://dl.dropboxusercontent.com/u/4286376/weather-log-exceptions/org.openhab.binding.weather-1.9.0-SNAPSHOT.jar) and tell me if the log spam decreases to single-line WARN messages instead of full ERROR messages with stack traces? Would this change be worth submitting a pull request?

---

<div class="post-metadata">

**Author:** ![Simson](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/dec6dc/32.png) [@Simson](https://community.openhab.org/u/Simson)\
**Post date:** [April 3, 2016, 6:48pm UTC](https://community.openhab.org/t/weather-binding-throws-many-forecast-not-available-errors/9294/4 "2016-04-03T18:48:26Z")

</div>

Thanks for your help. - I´ve replaced the JAR and it seems to reduce the spam as you had assumed

2016-04-03 19:50:01.932 [WARN] [b.w.i.gfx.WeatherTokenResolver] - Weather forecast day 0 not available, only 0 available  
2016-04-03 19:50:01.934 [WARN] [b.w.i.gfx.WeatherTokenResolver] - Weather forecast day 1 not available, only 0 available  
2016-04-03 19:50:01.936 [WARN] [b.w.i.gfx.WeatherTokenResolver] - Weather forecast day 2 not available, only 0 available

…but still 90% downtime of the weather-webview. I´ll give OpenWeatherMap a try…

---

<div class="post-metadata">

**Author:** ![noemark1](https://community.openhab.org/letter_avatar_proxy/v4/letter/n/74df32/32.png) [@noemark1](https://community.openhab.org/u/noemark1)\
**Post date:** [April 4, 2016, 1:52am UTC](https://community.openhab.org/t/weather-binding-throws-many-forecast-not-available-errors/9294/5 "2016-04-04T01:52:55Z")

</div>

All-

I am also running Openhab 1.8.2. I noticed that if I reduce the update frequency to every 60 minutes (as opposed to every 10 minutes as in the default configuration) these errors disappear. That said, I just replaced the JAR with the recommended 1.9 SNAPSHOT - will let you know if there are further issues.

Many thanks,

-Mark
