Skip to content

Bug: ClassNotFoundException: net.sf.jsqlparser.statement.select.Values #1801

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
barbetb opened this issue Jun 3, 2024 · 1 comment
Closed
Labels
status: duplicate A duplicate of another issue

Comments

@barbetb
Copy link

barbetb commented Jun 3, 2024

I have the following statement:

`@Repository
public interface VersionRepository extends JpaRepository<Version, String>{

    @Query(value = "SELECT * FROM (SELECT v.version FROM VERSION_TABLE v ORDER BY RegExp_Replace(RegExp_Replace (v.version || '.', 'some regex'),  'another regex', '\\1') DESC) WHERE rownum =1", nativeQuery = true)
    String getLatestDbVersionNative();

}
`

I get the error:
ClassNotFoundException: net.sf.jsqlparser.statement.select.Values

I found that spring boot 3.3.0 includes spring-boot-starter-data-jdbc 3.2.3 with jsqlparser 4.6

When I override that jsqlparser version with version 4.9 the error is fixed.

I looks like an upgrade is needed.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 3, 2024
@mp911de
Copy link
Member

mp911de commented Jun 3, 2024

Jsqlparser is a test-only dependency, the fix will come via #1796. Until then, either exclude the JDBC dependency or pin the dependency version, please.

@mp911de mp911de closed this as not planned Won't fix, can't repro, duplicate, stale Jun 3, 2024
@mp911de mp911de added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants