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

NullPointerException in the GeoRSS PollTask #1216

Open
steve-at opened this issue Feb 6, 2024 · 0 comments
Open

NullPointerException in the GeoRSS PollTask #1216

steve-at opened this issue Feb 6, 2024 · 0 comments

Comments

@steve-at
Copy link

steve-at commented Feb 6, 2024

Hi there,

When using GeoRSS it comes to an NullPointerException in the GWC versions above 1.20. The reason is that the GeoRSSReaderFactory initializes the org.geowebcache.util.HttpClientBuilder with the default constructor and within the default constructor the clientBuilder is not initialized.
This leads to an NullPointerException within the georss.GeoRSSPollTask.

Here is a stacktrace of the issue.

java.lang.NullPointerException: Cannot invoke "org.apache.http.impl.client.HttpClientBuilder.build()" because "this.clientBuilder" is null
  at org.geowebcache.util.HttpClientBuilder.buildClient(HttpClientBuilder.java:126)
  at org.geowebcache.georss.GeoRSSReaderFactory.createReader(GeoRSSReaderFactory.java:51)
  at org.geowebcache.georss.GeoRSSPollTask.runPollAndLaunchSeed(GeoRSSPollTask.java:140)
  at org.geowebcache.georss.GeoRSSPollTask.run(GeoRSSPollTask.java:97)
  at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
  at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:358)
  at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
  at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
  at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
  at java.base/java.lang.Thread.run(Thread.java:1583)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant