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

java.util.ConcurrentModificationException in the cache #405

Closed
gnodet opened this issue Apr 28, 2021 · 0 comments
Closed

java.util.ConcurrentModificationException in the cache #405

gnodet opened this issue Apr 28, 2021 · 0 comments
Milestone

Comments

@gnodet
Copy link
Contributor

gnodet commented Apr 28, 2021

This exception occurred while running tests on windows

java.lang.RuntimeException: multi-module-hi: null
	at org.mvndaemon.mvnd.builder.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:183)
	at org.mvndaemon.mvnd.builder.SmartBuilderImpl$ProjectBuildTask.run(SmartBuilderImpl.java:198)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.util.ConcurrentModificationException: null
	at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1043)
	at java.base/java.util.ArrayList$Itr.next(ArrayList.java:997)
	at org.mvndaemon.mvnd.cache.impl.WatchServiceCacheFactory.remove(WatchServiceCacheFactory.java:155)
	at org.mvndaemon.mvnd.cache.impl.WatchServiceCacheFactory.validateRecords(WatchServiceCacheFactory.java:131)
	at org.mvndaemon.mvnd.cache.impl.WatchServiceCacheFactory$WatchServiceCache.computeIfAbsent(WatchServiceCacheFactory.java:232)
	at org.mvndaemon.mvnd.cache.invalidating.InvalidatingPluginRealmCache.get(InvalidatingPluginRealmCache.java:85)
	at org.mvndaemon.mvnd.plugin.CliMavenPluginManager.setupPluginRealm(CliMavenPluginManager.java:332)
	at org.apache.maven.plugin.DefaultBuildPluginManager.getPluginRealm(DefaultBuildPluginManager.java:234)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:105)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
	at org.mvndaemon.mvnd.builder.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:178)
	... 6 common frames omitted
@gnodet gnodet closed this as completed in a163cf0 Apr 28, 2021
gnodet added a commit that referenced this issue Apr 28, 2021
Fix ConcurrentModificationException in the cache, fixes #405
@ppalaga ppalaga added this to the 0.5.0 milestone Oct 26, 2021
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

2 participants