Skip to content

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

Closed as not planned
@barbetb

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions