我使用Spring React得到以下异常。
我的方法:
public Mono<A> getA(
@PathVariable(value = "id") Long id) {
return <<some service call that returns Mono<A> >>;
}
例外:
019-03-22 17:55:59,518优先级=错误app_name =同步 线程= reactor-http-nio-1位置= DefaultErrorWebExceptionHandler line = 218无法处理请求[GET http://localhost:10019/ext/stubhub/event/9874282/eventSectionZone] Reactor.core.Exceptions $ ReactorRejectedExecutionException:调度程序 在以下位置不可用 反应器.core.Exceptions.failWithRejected(Exceptions.java:249)在 com.tu.sync.node.stubhub.remoterepository.EventRepository.lambda $ getSectionZoneData $ 6(EventRepository.java:111) 在 org.springframework.web.reactive.function.client.DefaultWebClient $ DefaultResponseSpec $ StatusHandler.apply(DefaultWebClient.java:492) 在 org.springframework.web.reactive.function.client.DefaultWebClient $ DefaultResponseSpec.lambda $ bodyToPublisher $ 5(DefaultWebClient.java:440) 在java.util.Optional.map(Optional.java:215)在 org.springframework.web.reactive.function.client.DefaultWebClient $ DefaultResponseSpec.bodyToPublisher(DefaultWebClient.java:440) 在 org.springframework.web.reactive.function.client.DefaultWebClient $ DefaultResponseSpec.lambda $ bodyToMono $ 0(DefaultWebClient.java:400) 在 Reactor.core.publisher.MonoFlatMap $ FlatMapMain.onNext(MonoFlatMap.java:118) 在 Reactor.core.publisher.FluxSwitchIfEmpty $ SwitchIfEmptySubscriber.onNext(FluxSwitchIfEmpty.java:67)
答案 0 :(得分:0)
您的API方法缺少 <title>Timeline | Basic demo</title>
<script src="vis-4.21.0/dist/vis.js"></script>
<link href="vis-4.21.0/dist/vis.css" rel="stylesheet" type="text/css" />
</head>
<body>'
<script>
// create a couple of HTML items in various ways
var item1 = document.createElement('div');
item1.appendChild(document.createTextNode('item 1'));
var item4 = 'item <span class="large">4</span>';
**var item5 = document.createElement('div');
item5.appendChild(document.createTextNode('item 5'));
item5.appendChild(document.createElement('br'));
var img5 = document.createElement('img');
// img5.a.href = 'attachments/AddDuties.pdf';
img5.src = 'icons/pdf1.png';
img5.style.width = '48px';
img5.style.height = '48px';
item5.appendChild(img5);**
</body>
。
那应该解决它。