异常:此发布者不支持多个订阅者(spring data r2 dbc + oracle-r2 dbc)

bxjv4tth  于 12个月前  发布在  Spring
关注(0)|答案(1)|浏览(119)

异常

“”org.springframework.dao. DataBase ResourceFailureException:获取R2 DBC Connection失败;嵌套的异常为java.lang。IllegalStateException:此发布者不支持多个订阅者。at org.springframework.r2dbc.connection.ConnectionFactoryUtils.java:88)~[spring-r2 dbc-5.3.9.jar:5.3.9] at reactor.core.Monosher.Monohyda$onError$31(Mono.java:3676)~[reactor-core-3.4.8.jar:3.4.8]“”

<properties>
    <java.version>11</java.version>
</properties>
<dependencies>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-r2dbc</artifactId>
    </dependency>
    <dependency>
        <groupId>com.oracle.database.r2dbc</groupId>
        <artifactId>oracle-r2dbc</artifactId>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-webflux</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <scope>runtime</scope>
        <optional>true</optional>
    </dependency>
    <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <optional>true</optional>
    </dependency>
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>io.projectreactor</groupId>
        <artifactId>reactor-test</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>

字符串

ar5n3qh5

ar5n3qh51#

似乎是Oracle R2DBC中的bug,这阻止了它与连接池一起工作。

相关问题