Plugin Manager exception

272 views
Skip to first unread message

Marquis Wong

unread,
Aug 5, 2023, 12:16:25 AM8/5/23
to Repo and Gerrit Discussion
Hello,

I upgraded from 3.6.1 to 3.8.1 today, and now I'm getting the following error in the Plugin Manager.

com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentException: cannot convert null into a String
at com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache.get(CaffeinatedGuavaLoadingCache.java:65)
at com.googlesource.gerrit.plugins.manager.PluginsCentralCache.availablePlugins(PluginsCentralCache.java:41)
at com.googlesource.gerrit.plugins.manager.OnStartStop$1.run(OnStartStop.java:53)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.IllegalArgumentException: cannot convert null into a String
at com.googlesource.gerrit.plugins.manager.gson.SmartJson$1.apply(SmartJson.java:40)
at com.googlesource.gerrit.plugins.manager.gson.SmartJson$1.apply(SmartJson.java:36)
at java.base/java.util.Optional.map(Optional.java:260)
at com.googlesource.gerrit.plugins.manager.gson.SmartJson.getOptionalString(SmartJson.java:35)
at com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository.lambda$getPluginArtifactInfo$2(JenkinsCiPluginsRepository.java:146)
at java.base/java.util.Optional.flatMap(Optional.java:289)
at com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository.getPluginArtifactInfo(JenkinsCiPluginsRepository.java:146)
at com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository$1.apply(JenkinsCiPluginsRepository.java:113)
at com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository$1.apply(JenkinsCiPluginsRepository.java:109)
at java.base/java.util.Optional.flatMap(Optional.java:289)
at com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository.getPluginInfo(JenkinsCiPluginsRepository.java:108)
at com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository.getList(JenkinsCiPluginsRepository.java:90)
at com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository.list(JenkinsCiPluginsRepository.java:73)
at com.googlesource.gerrit.plugins.manager.repository.JenkinsCiPluginsRepository.list(JenkinsCiPluginsRepository.java:41)
at com.googlesource.gerrit.plugins.manager.PluginsCentralLoader.load(PluginsCentralLoader.java:55)
at com.googlesource.gerrit.plugins.manager.PluginsCentralLoader.load(PluginsCentralLoader.java:31)
at com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache$SingleLoader.load(CaffeinatedGuavaLoadingCache.java:136)
at com.github.benmanes.caffeine.cache.LocalLoadingCache.lambda$newMappingFunction$2(LocalLoadingCache.java:141)
at com.github.benmanes.caffeine.cache.LocalCache.lambda$statsAware$0(LocalCache.java:139)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2413)
at java.base/java.util.concurrent.ConcurrentHashMap.compute(ConcurrentHashMap.java:1916)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2411)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2394)
at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:108)
at com.github.benmanes.caffeine.cache.LocalLoadingCache.get(LocalLoadingCache.java:54)
at com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache.get(CaffeinatedGuavaLoadingCache.java:59)
... 3 more

Gerrit itself still works fine, but the Plugin Manager doesn't find any of the plugins on GerritForge.

Has anyone else observed this?

Thanks,
Marquis

Marquis Wong

unread,
Aug 5, 2023, 12:25:01 AM8/5/23
to Repo and Gerrit Discussion

Marquis Wong

unread,
Aug 5, 2023, 12:34:15 AM8/5/23
to Repo and Gerrit Discussion
Sorry for the spam... is there somewhere I'll be able to download a build of the plugin with the fix? Or do I need to build it myself or wait until 3.8.2 is released?

Luca Milanesio

unread,
Aug 5, 2023, 1:50:16 AM8/5/23
to Repo and Gerrit Discussion, Luca Milanesio, Marquis Wong


> On 5 Aug 2023, at 07:34, Marquis Wong <mwa...@gmail.com> wrote:
>
> Sorry for the spam... is there somewhere I'll be able to download a build of the plugin with the fix? Or do I need to build it myself or wait until 3.8.2 is released?

The latest stable-3.8 build of the plugin can be downloaded from the Gerrit-CI:
https://gerrit-ci.gerritforge.com/job/Gerrit-bazel-stable-3.8/lastSuccessfulBuild/artifact/gerrit/bazel-bin/plugins/plugin-manager/plugin-manager.jar

HTH

Luca.
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/b1e771bf-f972-444d-a7b2-1c79c51dc253n%40googlegroups.com.


Reply all
Reply to author
Forward
0 new messages