使用Spring Cloud Data Flow 2.0.1时遇到Oracle 11.2不支持的错误 [英] Getting Oracle 11.2 Unsupported Error when using Spring Cloud Data Flow 2.0.1

查看:527
本文介绍了使用Spring Cloud Data Flow 2.0.1时遇到Oracle 11.2不支持的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置SCDF 2.x(Spring Cloud Data Flow)服务器,以注册Spring Boot应用程序(例如Tasks类型),以利用现成的管理和其他功能.

I am trying to set up SCDF 2.x (Spring Cloud Data Flow) server, to register Spring Boot applications (e.g. Tasks type) , to leverage out of box administration and other capabilities.

在设置SCDF 2.x时,试图连接到Oracle 11.2上的新'dataflow'模式(用于作业注册表),但是从命令行启动dataflow服务器时(在类路径中使用Oracle JDBC),低于错误.任何建议都将有助于解决问题(因为我们将Oracle与企业支持联系在一起.

In setting up SCDF 2.x, was trying to connect to new 'dataflow' schema on Oracle 11.2 (for job registry), but upon starting the dataflow server from command line (with Oracle JDBC in classpath), getting below error. Any suggestions will be helpful to resolve (as we are tied to Oracle as enterprise supported.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.internal.license.FlywayEnterpriseUpgradeRequiredException: Flyway Enterprise Edition or Oracle upgrade required: Oracle 11.2 is past regular support by Oracle and no longer supported by Flyway Community Edition, but still supported by Flyway Enterprise Edition. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1762) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.5.RELEASE.jar:5.1.5.RELEASE]

我们的oracle版本为 11.2

our oracle version is 11.2

试图覆盖项目pom中的飞行路线依赖关系,但小于5.x会给出NoMethodFoundError

Tried overriding the flyway dependency in project pom, but less than 5.x is giving NoMethodFoundError

推荐答案

最后,我已经解决了这个问题,就我而言,删除飞行路线自动配置并加载名为FluentConfiguration的bean就足够了.我已经创建了一个具有Spring Cloud Dataflow依赖项的项目,然后创建了具有以下配置的SpringBootApplication类:

finally I've made an advance with this problem, in my case was enough with removing the flyway autoconfiguration and loading a bean called FluentConfiguration. I've made a project with the dependencies of spring cloud dataflow and then an SpringBootApplication class with this configuration:

import org.flywaydb.core.api.configuration.FluentConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration;
import org.springframework.cloud.dataflow.server.EnableDataFlowServer;
import org.springframework.context.annotation.Import;

@SpringBootApplication(exclude = FlywayAutoConfiguration.class)
@EnableDataFlowServer
@Import(FluentConfiguration.class)
public class MyCompanySpringCloudDataflowApplication {

    public static void main(String[] args) {
        SpringApplication.run(MyCompanySpringCloudDataflowApplication .class, args);
    }

}

我知道这不是一个灵巧的解决方案,但是我需要前进.

I know is not a neat solution, but is what I need to advance.

当然,数据库架构不会自动创建,您必须在运行应用程序之前创建它.

Of course, the database schema isn't automatically created, you must create it before running the application.

希望这对您有所帮助.

这篇关于使用Spring Cloud Data Flow 2.0.1时遇到Oracle 11.2不支持的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆