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

[V24.7 PiT] java.lang.ClassNotFoundException: com.vaadin.hilla.BrowserCallable #3114

Closed
Tracked by #7151
ZheSun88 opened this issue Jan 3, 2025 · 0 comments · Fixed by #3115
Closed
Tracked by #7151

[V24.7 PiT] java.lang.ClassNotFoundException: com.vaadin.hilla.BrowserCallable #3114

ZheSun88 opened this issue Jan 3, 2025 · 0 comments · Fixed by #3115
Assignees
Labels
bug Something isn't working hilla Issues related to Hilla

Comments

@ZheSun88
Copy link
Contributor

ZheSun88 commented Jan 3, 2025

Describe the bug

the warning has been logged from a plain-java project without hilla dependency, which was not the case in V24.6

[INFO] --- vaadin:24.7-SNAPSHOT:prepare-frontend (default) @ vaadin-platform-test-dev ---
[INFO] Reflections took 1533 ms to scan 257 urls, producing 8506 keys and 48405 values
[WARNING] Default annotations not found
java.lang.ClassNotFoundException: com.vaadin.hilla.BrowserCallable
    at java.net.URLClassLoader.findClass (URLClassLoader.java:445)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:593)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:526)
    at java.lang.Class.forName0 (Native Method)
    at java.lang.Class.forName (Class.java:534)
    at java.lang.Class.forName (Class.java:513)
    at com.vaadin.hilla.engine.EngineConfiguration$Builder.withDefaultAnnotations (EngineConfiguration.java:284)
    at com.vaadin.hilla.maven.Configurable.configure (Configurable.java:47)
    at com.vaadin.hilla.maven.PrepareFrontendMojo.executeInternal (PrepareFrontendMojo.java:49)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
    at java.lang.reflect.Method.invoke (Method.java:580)
    at com.vaadin.flow.plugin.maven.FlowModeAbstractMojo.execute (FlowModeAbstractMojo.java:306)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
    at java.lang.reflect.Method.invoke (Method.java:580)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)

Expected-behavior

no warning in my build log.

Reproduction

  • git clone [email protected]:vaadin/skeleton-starter-flow.git
  • update the vaadin.version to 24.7.0.alpha2
  • mvn verify -Pit

the warning comes right after vaadin-maven-plugin:prepare-frontend

test with 24.6.0 doesn't have this warning.

this project has the hilla-dev exclusion.

System Info

Vaaidn 24.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hilla Issues related to Hilla
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants