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

Cause: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist #3822

Open
lichengliang1 opened this issue Jan 16, 2024 · 3 comments

Comments

@lichengliang1
Copy link

version: flowable7.0.0+ojdbc8+druid(1.2.7)

config:

flowable:
async-executor-activate: true
database-schema-update: true
process-definition-location-prefix: classpath*:/static/modeler/
process-definition-location-suffixes: "**.bpmn20.xml, **.bpmn"

error:
2024-01-16 13:59:55.696 INFO [main] org.flowable.app.spring.SpringAppEngineConfiguration : Executing configure() of class org.flowable.engine.spring.configurator.SpringProcessEngineConfigurator (priority:50000)
Opening JDBC Connection
==> Preparing: select * from ACT_GE_PROPERTY where NAME_ = ?
==> Parameters: schema.version(String)
2024-01-16 13:59:56.046 ERROR[main] org.flowable.common.engine.impl.interceptor.CommandContext : Error while closing command context
org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

The error may exist in org/flowable/common/db/mapping/entity/Property.xml

The error may involve org.flowable.common.engine.impl.persistence.entity.PropertyEntityImpl.selectProperty-Inline

The error occurred while setting parameters

SQL: select * from ACT_GE_PROPERTY where NAME_ = ?

Cause: java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist

How to solve this problem?

@tijsrademakers
Copy link
Contributor

This means that the database schema was not created. Are you using Apache Druid as your database? This database is not supported by Flowable.

@lichengliang1
Copy link
Author

The database schema has been created,
I am using druid is

com.alibaba
druid
1.2.7

But it seems to have nothing to do with Druid,I ruled it out, but the same error still occurred
This is my Oracle database connection information:jdbc:oracle:thin:@${oracle.host}:${oracle.port}:orcl?currentSchema=HC7

@tijsrademakers
Copy link
Contributor

Ok you need to set the database schema value in your config as well with flowable: database-schema: HC7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants