Skip to content

Spring Modulith Events JPA ojdbc11 timestamp #1194

@mihaita-tinta

Description

@mihaita-tinta

Hello,

After migrating to ojdbc11:

<dependency>
            <groupId>com.oracle.database.jdbc</groupId>
            <artifactId>ojdbc11</artifactId>
</dependency>

we noticed our integration tests started to fail with:

org.springframework.orm.jpa.JpaSystemException: Could not extract column [5] from JDBC ResultSet [ORA-18716: {0} not in any time zone.DATE
https://docs.oracle.com/error-help/db/ora-18716/] [n/a]

When trying to fetch incomplete publications:

 Collection<TargetEventPublication> failures = eventPublicationRegistry.findIncompletePublications();

We used the schema-oracle.sql to create the tables and it seems it needs a default timezone for this to work again

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions