Skip to content

[bug] Possible regression with SB 3.2.3 and Spring Data Couchbase #39740

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

Closed
juliojgd opened this issue Feb 23, 2024 · 6 comments
Closed

[bug] Possible regression with SB 3.2.3 and Spring Data Couchbase #39740

juliojgd opened this issue Feb 23, 2024 · 6 comments
Assignees
Labels
for: external-project For an external project and not something we can fix status: invalid An issue that we don't feel is valid

Comments

@juliojgd
Copy link
Contributor

We use Spring Boot 3.2.2 in our application and when upgrading to 3.2.3 we found this compilation error:

[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Bad service configuration file, or exception thrown while constructing Processor object: com/querydsl/apt/Abs>
[INFO] 1 error

It's trivial to reproduce, generate a project with SB 3.2.3 and Spring Data Couchbase from Initializr and `mvn clean install' it.

I attach a zip with the reproducer.
sbcouchbaseregression.zip

See also the report by Christopher Abbonizio at the blog post.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 23, 2024
@wilkinsona wilkinsona self-assigned this Feb 23, 2024
@wilkinsona
Copy link
Member

This regression is caused by this change in Spring Data Couchbase. Please open a Spring Data Couchbase issue so that it can be addressed.

In the meantime, you can work around it by adding a dependency on querydsl-apt:

<dependency>
    <groupId>com.querydsl</groupId>
    <artifactId>querydsl-apt</artifactId>
</dependency>

Another option may be to configure Maven's compiler plugin to disable annotation processing or to only run certain processors. I don't think Gradle users will be affected as Gradle does not use the compile classpath for annotation processor discovery.

@wilkinsona wilkinsona closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2024
@wilkinsona wilkinsona added status: invalid An issue that we don't feel is valid for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 23, 2024
@cabbonizio
Copy link

Hi all, Mike Reiche from spring data couchbase already put in a fix for this yesterday. I'm not at my computer but will post a link to the issue so things can be linked.

@cabbonizio
Copy link

Here's the PR I believe that will fix this:

spring-projects/spring-data-couchbase#1908

@juliojgd
Copy link
Contributor Author

Here's the PR I believe that will fix this:

spring-projects/spring-data-couchbase#1908

Are you sure? I can't find the relation between spring-projects/spring-data-couchbase#1908 and this problem.

@cabbonizio
Copy link

@juliojgd this is what I heard from Mike Reiche yesterday, but I think it's good you opened that issue on Spring Data Couchbase side to spread the awareness.

@mikereiche
Copy link

The fix I put in yesterday was to change the signature of AuditingListenerFactory. Not related to querydsl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: external-project For an external project and not something we can fix status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

5 participants