You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2022/05/05 13:08:00 UTC

[jira] [Created] (MBUILDCACHE-17) IllegalStateException: Cache is not initialized. Actual state: null

Guillaume Nodet created MBUILDCACHE-17:
------------------------------------------

             Summary: IllegalStateException: Cache is not initialized. Actual state: null
                 Key: MBUILDCACHE-17
                 URL: https://issues.apache.org/jira/browse/MBUILDCACHE-17
             Project: Maven Build Cache Extension
          Issue Type: Bug
            Reporter: Guillaume Nodet


Building a clean version of https://github.com/apache/camel.git produces the following exception:
{code}
[ERROR] Camel :: Maven Plugins :: Enhanced Bundle Plugin: Failed to calculate checksums for camel-bundle-plugin: Cache is not initialized. Actual state: null
java.lang.RuntimeException: Camel :: Maven Plugins :: Enhanced Bundle Plugin: Failed to calculate checksums for camel-bundle-plugin
	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:829)
Caused by: java.lang.RuntimeException: Failed to calculate checksums for camel-bundle-plugin
	at org.apache.maven.buildcache.DefaultProjectInputCalculator.calculateInputInternal(DefaultProjectInputCalculator.java:120)
	at org.apache.maven.buildcache.DefaultProjectInputCalculator.calculateInput(DefaultProjectInputCalculator.java:88)
	at org.apache.maven.buildcache.CacheControllerImpl.findCachedBuild(CacheControllerImpl.java:166)
	at org.apache.maven.buildcache.BuildCacheMojosExecutionStrategy.execute(BuildCacheMojosExecutionStrategy.java:109)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:173)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:121)
	at org.mvndaemon.mvnd.builder.SmartBuilderImpl.buildProject(SmartBuilderImpl.java:178)
	... 6 common frames omitted
Caused by: java.lang.IllegalStateException: Cache is not initialized. Actual state: null
	at org.apache.maven.buildcache.xml.CacheConfigImpl.checkInitializedState(CacheConfigImpl.java:644)
	at org.apache.maven.buildcache.xml.CacheConfigImpl.getDefaultGlob(CacheConfigImpl.java:402)
	at org.apache.maven.buildcache.checksum.MavenProjectInput.<init>(MavenProjectInput.java:163)
	at org.apache.maven.buildcache.DefaultProjectInputCalculator.calculateInputInternal(DefaultProjectInputCalculator.java:107)
	... 12 common frames omitted
{code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)