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

Qute - Failed to index String: Class does not exist in ClassLoader #26524

Closed
kucharzyk opened this issue Jul 2, 2022 · 1 comment · Fixed by #26531
Closed

Qute - Failed to index String: Class does not exist in ClassLoader #26524

kucharzyk opened this issue Jul 2, 2022 · 1 comment · Fixed by #26531
Labels
area/qute The template engine kind/bug Something isn't working
Milestone

Comments

@kucharzyk
Copy link
Contributor

Describe the bug

For some time I was observing the following message while building Quarkus application.

[INFO] --- quarkus-maven-plugin:2.10.1.Final:build (default) @ application ---
[WARNING] [io.quarkus.arc.processor.BeanArchives] Failed to index String: Class does not exist in ClassLoader QuarkusClassLoader:Deployment Class Loader: PROD@3ee86eb7
[INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 12810ms

Today I've found what is causing this issue. I had the following code in one of my Qute templates.

{@String tag}
{#include base}
    <div>
        {#if tag} <h1>#{tag}</h1>}{/if}
    </div>
{/include}

I was getting this annoying waring in logs because of this code.

After changing template code issue has been resolved.

{@java.util.String tag}
{#include base}
    <div>
        {#if tag} <h1>#{tag}</h1>}{/if}
    </div>
{/include}

This warning message is missleading and it should be fixed. At least we need to add real problem couse to log message.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@kucharzyk kucharzyk added the kind/bug Something isn't working label Jul 2, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Jul 2, 2022

/cc @mkouba

@quarkus-bot quarkus-bot bot added the area/qute The template engine label Jul 2, 2022
@kucharzyk kucharzyk changed the title Qute - Failed to index String: Class does not exist in ClassLoader QuarkusClassLoade Qute - Failed to index String: Class does not exist in ClassLoader Jul 3, 2022
michalvavrik added a commit to michalvavrik/quarkus that referenced this issue Jul 3, 2022
fixes: quarkusio#26524

When `TypeInfos.create` is looking for a parameter declaration type, it checks couple of options and fallback to prefix `java.lang`.  The Qute reference guide contains an example of parameter declaration using only `{@string foo}` without `java.lang`, thus when user follows the example, he should not be warned.
michalvavrik added a commit to michalvavrik/quarkus that referenced this issue Jul 12, 2022
michalvavrik added a commit to michalvavrik/quarkus that referenced this issue Jul 12, 2022
michalvavrik added a commit to michalvavrik/quarkus that referenced this issue Jul 13, 2022
@quarkus-bot quarkus-bot bot added this to the 2.12 - main milestone Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/qute The template engine kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant