如何修复“使用元数据已经存在的表” Camunda Process Engine异常?

时间:2019-06-19 06:41:56

标签: java mysql bpmn camunda

我正在使用wildfly 14.0.1应用服务器和Camunda V 7.11.0。我已经配置了mysql db而不是默认的camunda h2 db,并将以下数据源添加到了standalone.xml文件中。但是我在部署时遇到了以下异常。如何解决此异常?

        let parameters = ["fields": "email, id, name"]
        let graphRequest = FBSDKGraphRequest(graphPath: "me", parameters: parameters)

        _ = graphRequest?.start { [weak self] connection, result, error in
            // If something went wrong, we're logged out
            if (error != nil) {
                // Clear email, but ignore error for now
                return
            }

            // Transform to dictionary first
            if let result = result as? [String: Any] {
                // Got the email; send it to Lucid's server
                guard let email = result["email"] as? String else {
                    // No email? Fail the login
                    return
                }
                guard let username = result["name"] as? String else {
                    // No username? Fail the login
                    return
                }

                guard let userId = result["id"] as? String else {
                    // No userId? Fail the login
                    return
                }                       
            }
        } // End of graph request
<datasources>
                     <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
                    <connection-url>jdbc:mysql://127.0.0.1:3306/camunda11?jdbcCompliantTruncation=false</connection-url>
                    <driver>mysql</driver>
                    <security>
                        <user-name>root</user-name>
                        <password>password</password>
                    </security>
                </datasource>
                <datasource jta="true" jndi-name="java:jboss/datasources/ProcessEngine" pool-name="ProcessEngine" enabled="true" use-java-context="true" use-ccm="true">
                    <connection-url>jdbc:mysql://127.0.0.1:3306/camunda11?sessionVariables=sql_mode='NO_ENGINE_SUBSTITUTION'&amp;jdbcCompliantTruncation=false</connection-url>
                    <driver>mysql</driver>
                    <security>
                        <user-name>root</user-name>
                        <password>password</password>
                    </security>
                    <validation>
                        <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/>
                        <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/>
                    </validation>
                </datasource>

1 个答案:

答案 0 :(得分:0)

我使用mysql-connector-java-5.1.44.jar而不是5.1.6版本来修复该异常。