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/10 06:55:00 UTC

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

     [ https://issues.apache.org/jira/browse/MBUILDCACHE-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet closed MBUILDCACHE-17.
--------------------------------------
    Fix Version/s: 1.0.0-alpha
         Assignee: Guillaume Nodet
       Resolution: Fixed

> 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
>            Assignee: Guillaume Nodet
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.0.0-alpha
>
>
> 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)