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

"Failed to read deployment classpath cache from ..." warning #46333

Closed
holly-cummins opened this issue Feb 18, 2025 · 7 comments · Fixed by #46346
Closed

"Failed to read deployment classpath cache from ..." warning #46333

holly-cummins opened this issue Feb 18, 2025 · 7 comments · Fixed by #46346
Milestone

Comments

@holly-cummins
Copy link
Contributor

2025-02-18T06:44:30.3692691Z 2025-02-18 06:44:28,713 WARN  [io.qua.boo.BootstrapAppModelFactory] (build-33) Failed to read deployment classpath cache from /home/runner/work/quarkus-pact/quarkus-pact/current-repo/cross-extension-integration-tests/target/test-classes/projects/happy-everyone-all-together-processed/target/quarkus/bootstrap/dev-app-model.dat for test-application:happy-knitter::jar:1.5-SNAPSHOTnull: java.io.EOFException
2025-02-18T06:44:30.3695617Z 	at java.base/java.io.DataInputStream.readInt(DataInputStream.java:386)
2025-02-18T06:44:30.3696563Z 	at java.base/java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:3436)
2025-02-18T06:44:30.3697578Z 	at java.base/java.io.ObjectInputStream.readInt(ObjectInputStream.java:1128)
2025-02-18T06:44:30.3699356Z 	at io.quarkus.bootstrap.util.BootstrapUtils.readAppModelWithWorkspaceId(BootstrapUtils.java:157)
2025-02-18T06:44:30.3700747Z 	at io.quarkus.bootstrap.BootstrapAppModelFactory.resolveAppModelForWorkspace(BootstrapAppModelFactory.java:255)
2025-02-18T06:44:30.3702217Z 	at io.quarkus.bootstrap.BootstrapAppModelFactory.resolveAppModel(BootstrapAppModelFactory.java:216)
2025-02-18T06:44:30.3703342Z 	at io.quarkus.deployment.dev.testing.TestSupport.init(TestSupport.java:212)
2025-02-18T06:44:30.3705034Z 	at io.quarkus.deployment.dev.testing.TestSupport.start(TestSupport.java:135)
2025-02-18T06:44:30.3706204Z 	at io.quarkus.deployment.dev.testing.TestTracingProcessor.startTesting(TestTracingProcessor.java:104)
2025-02-18T06:44:30.3707349Z 	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
2025-02-18T06:44:30.3708517Z 	at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
2025-02-18T06:44:30.3709375Z 	at io.quarkus.builder.BuildContext.run(BuildContext.java:255)
2025-02-18T06:44:30.3710159Z 	at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
2025-02-18T06:44:30.3711073Z 	at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675)
2025-02-18T06:44:30.3712153Z 	at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654)
2025-02-18T06:44:30.3713259Z 	at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627)
2025-02-18T06:44:30.3714367Z 	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594)
2025-02-18T06:44:30.3715217Z 	at java.base/java.lang.Thread.run(Thread.java:840)
2025-02-18T06:44:30.3715845Z 	at org.jboss.threads.JBossThread.run(JBossThread.java:499)

See, for example, /~https://github.com/quarkiverse/quarkus-pact/actions/runs/13383677293/job/37376521613 (the Pact ecosystem CI).
I am also seeing this locally.

Copy link

quarkus-bot bot commented Feb 18, 2025

/cc @gwenneg (cache)

@geoand
Copy link
Contributor

geoand commented Feb 18, 2025

cc @aloubyansky

@aloubyansky
Copy link
Member

To reproduce simply clone and run the tests?

@edeandrea
Copy link
Contributor

edeandrea commented Feb 18, 2025

You can reproduce this using /~https://github.com/edeandrea/pact-quarkus-wookie-carpet-demo

  1. cd observer-extension
  2. ./mvnw clean install
  3. cd ../weaver
  4. ./mvnw clean quarkus:devyou'll see
2025-02-18 09:57:44,306 WARN  [io.qua.boo.BootstrapAppModelFactory] (build-34) Failed to read deployment classpath cache from /Users/edeandre/workspaces/quarkus/pact-quarkus-wookie-carpet-demo/weaver/target/quarkus/bootstrap/dev-app-model.dat for org.wookie:wookie-tamer::jar:1.0.0-SNAPSHOTnull: java.io.EOFException
        at java.base/java.io.DataInputStream.readFully(DataInputStream.java:210)
        at java.base/java.io.DataInputStream.readInt(DataInputStream.java:385)
        at java.base/java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:3454)
        at java.base/java.io.ObjectInputStream.readInt(ObjectInputStream.java:1160)
        at io.quarkus.bootstrap.util.BootstrapUtils.readAppModelWithWorkspaceId(BootstrapUtils.java:157)
        at io.quarkus.bootstrap.BootstrapAppModelFactory.resolveAppModelForWorkspace(BootstrapAppModelFactory.java:258)
        at io.quarkus.bootstrap.BootstrapAppModelFactory.resolveAppModel(BootstrapAppModelFactory.java:219)
        at io.quarkus.deployment.dev.testing.TestSupport.init(TestSupport.java:212)
        at io.quarkus.deployment.dev.testing.TestSupport.start(TestSupport.java:135)
        at io.quarkus.deployment.dev.testing.TestTracingProcessor.startTesting(TestTracingProcessor.java:104)
        at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
        at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
        at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
        at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
        at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654)
        at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594)
        at java.base/java.lang.Thread.run(Thread.java:1583)
        at org.jboss.threads.JBossThread.run(JBossThread.java:499)


2025-02-18 09:57:44,340 INFO  [io.qua.arc.pro.Interceptors] (build-12) The interceptor org.wookie.observer.runtime.InteractionInterceptor does not declare any @Priority. It will be assigned a default priority value of 0.

It doesn't affect the app at all

@holly-cummins
Copy link
Contributor Author

To reproduce simply clone and run the tests?

In /~https://github.com/quarkiverse/quarkus-pact you'd need to update the Quarkus version first. I think @edeandrea's version should reproduce out of the box.

I've also seen this error in a really trivial app with no Pact extension, just a few @TestProfiles, but I was doing something else and assumed it was a dirty environment, so I just moved on and didn't make proper notes of what the app was like.

@aloubyansky
Copy link
Member

Right, it can be reproduced in any project with continuous testing.

@aloubyansky
Copy link
Member

Thanks for the pointers!

@quarkus-bot quarkus-bot bot added this to the 3.21 - main milestone Feb 19, 2025
@gsmet gsmet modified the milestones: 3.21 - main, 3.19.1 Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants