question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Oracle MView refresh does not work: class org.jkiss.dbeaver.ext.oracle.model.OracleTable cannot be cast to class org.jkiss.dbeaver.ext.oracle.model.OracleMaterializedView

See original GitHub issue

System information:

  • Operating system (distribution) and version: Mac OS Catalina 10.15.7
  • DBeaver version: 21.0.5.202105160657 (Runtime: 11.0.8+10)
  • Additional extensions: None, pure installation

Connection specification:

  • Database name and version: Oracle 12.1.0.2.0
  • Driver name: ojdbc8:12.2.0.1 (I guess this version was bundled or downloaded from MVN central by default)
  • Do you use tunnels or proxies (SSH, SOCKS, etc)? No

Describe the problem you’re observing:

The following error on attempt to refresh a view:

image

Steps to reproduce, if exist:

Right-click materialized view -> Tools -> Refresh Materialized view -> click ‘Start’

Include any warning/errors/backtraces from the logs

Pasting error details from the screenshot:

Execute tool 'Refresh materialized view'
	Process [SCHEMA_NAME.MVIEW_NAME]
Process error
class org.jkiss.dbeaver.ext.oracle.model.OracleTable cannot be cast to class org.jkiss.dbeaver.ext.oracle.model.OracleMaterializedView (org.jkiss.dbeaver.ext.oracle.model.OracleTable and org.jkiss.dbeaver.ext.oracle.model.OracleMaterializedView are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @419ece7a)
Tool execution finished

I also found this problem in comments to other issues, but those issues are already resolved:

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
n5a5commented, Aug 11, 2021

Successfully reproduced the issue on Oracle 12c EE.

1reaction
gavvvrcommented, Aug 10, 2021

@akilovich , I already reported above, that the problem was also reproducible on Linux. So far I only did not cover Windows 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tools: some tasks require refreshing after completion #9431
the opened view is refreshed. Actual result: Error appears "Task execution failed. Reason: class org.jkiss.dbeaver.ext.oracle.model.OracleTable ...
Read more >
cannot access db tables - DBeaver Forum • View topic
I'm using MySQL and there is no change to the way MySQL was configured. The problem goes away if i downgrade back to...
Read more >
DBeaver does not refresh table informations about constraints
In navigator, I press F4 on some table to see constraints of that table. I close the table window. Outside DBeaver I delete...
Read more >
dbeaver/plugins/org.jkiss.dbeaver.ext.oracle/src/org ... - Program Talk
with this program; if not, write to the Free Software Foundation, Inc., ... import org.jkiss.dbeaver.model.meta.replacedociation;.
Read more >
PostgreSQL Materialized View not refreshing
This was fixed by upgrading the AWS RDS instance and using PostgreSQL commands: REFRESH MATERIALIZED VIEW ana.bookings; REFRESH MATERIALIZED ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found