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

Using federatedcatalog-feature-sql-bom may result in java.lang.IncompatibleClassChangeError #286

Open
thomasrutger opened this issue Jan 27, 2025 · 4 comments · May be fixed by #301
Open
Labels
bug Something isn't working
Milestone

Comments

@thomasrutger
Copy link
Contributor

thomasrutger commented Jan 27, 2025

Bug Report

Describe the Bug

Using the federatedcatalog-feature-sql-bom may result in a java.lang.IncompatibleClassChangeError,.

Expected Behavior

No exception.

Observed Behavior

A java.lang.IncompatibleClassChangeError is thrown.

│ SEVERE 2025-01-25T21:18:33.67145486 Unexpected error during plan execution                                                                                                                                                                 │
│ java.lang.IncompatibleClassChangeError: Class org.eclipse.edc.catalog.store.sql.schema.postgres.PostgresDialectStatements does not implement the requested interface org.eclipse.edc.catalog.store.sql.TargetNodeStatements                │
│     at org.eclipse.edc.catalog.store.sql.SqlTargetNodeDirectory.lambda$getAll$0(SqlTargetNodeDirectory.java:47)                                                                                                                            │
│     at org.eclipse.edc.transaction.local.LocalTransactionContext.execute(LocalTransactionContext.java:74)                                                                                                                                  │
│     at org.eclipse.edc.catalog.store.sql.SqlTargetNodeDirectory.getAll(SqlTargetNodeDirectory.java:45)                                                                                                                                     │
│     at org.eclipse.edc.catalog.cache.ExecutionManager.fetchWorkItems(ExecutionManager.java:171)                                                                                                                                            │
│     at org.eclipse.edc.catalog.cache.ExecutionManager.doWork(ExecutionManager.java:81)                                                                                                                                                     │
│     at org.eclipse.edc.catalog.cache.ExecutionManager.lambda$executePlan$1(ExecutionManager.java:73)                                                                                                                                       │
│     at org.eclipse.edc.crawler.spi.model.RecurringExecutionPlan.lambda$catchExceptions$0(RecurringExecutionPlan.java:52)                                                                                                                   │
│     at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)                                                                                                                                                   │
│     at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)                                                                                                                                                          │
│     at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)                                                                                                            │
│     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)                                                                                                                                           │
│     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)                                                                                                                                           │
│     at java.base/java.lang.Thread.run(Thread.java:833)             

Steps to Reproduce

Create a runtime with the federatedcatalog-feature-sql-bom and run it.

Context Information

Add any other context about the problem here.

EDC v0.11.0

Detailed Description

If applicable, add screenshots and logs to help explain your problem.

Possible Implementation

The modules federated-catalog-cache-sql and target-node-directory-sql both contain classes with the exact same fully qualified class name, causing problems when resolving the class (in particular PostgresDialectStatements). Renaming package/class names in one of these modules should fix this.

@github-actions github-actions bot added the triage all new issues awaiting classification label Jan 27, 2025
@thomasrutger thomasrutger changed the title Using federatedcatalog-feature-sql-bom may result in java.lang.IncompatibleClassChangeError Using federatedcatalog-feature-sql-bom may result in java.lang.IncompatibleClassChangeError Jan 27, 2025
Copy link

This issue is stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Feb 11, 2025
@ndr-brt ndr-brt added bug Something isn't working and removed stale triage all new issues awaiting classification labels Feb 11, 2025
@ndr-brt
Copy link
Member

ndr-brt commented Feb 12, 2025

@thomasrutger would you like to come up with a PR for this?

@thomasrutger
Copy link
Contributor Author

@thomasrutger would you like to come up with a PR for this?

Sure, no problem!

@thomasrutger thomasrutger linked a pull request Feb 27, 2025 that will close this issue
Copy link

This issue is stale because it has been open for 28 days with no activity.

@github-actions github-actions bot added the stale label Mar 13, 2025
@ndr-brt ndr-brt removed the stale label Mar 13, 2025
@ndr-brt ndr-brt added this to the Backlog milestone Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants