Apache camel 流url时骆驼流组件中出现异常

Apache camel 流url时骆驼流组件中出现异常,apache-camel,Apache Camel,我正在使用camel stream组件从url流式传输结果 from("direct:sample") .to(String.format("stream:url?url=RAW(%s)", "http://sample-endpoint.org")) .to("stream:out") 我正在使用生产者模板来调用路由。使用驼峰流2.17.0版本 获取以下异常: ! java.net.ProtocolException: cannot write to a URLConnection if d

我正在使用camel stream组件从url流式传输结果

from("direct:sample")
.to(String.format("stream:url?url=RAW(%s)", "http://sample-endpoint.org"))
.to("stream:out")
我正在使用生产者模板来调用路由。使用驼峰流2.17.0版本

获取以下异常:

! java.net.ProtocolException: cannot write to a URLConnection if doOutput=false - call setDoOutput(true)
! at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1265) ~[na:1.8.0_66]
! at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1258) ~[na:1.8.0_66]

任何指针都指向导致异常的原因?在驼峰流中传输url是正确的方式吗?希望我在这方面没有犯任何错误

我认为这是骆驼流中的一个小错误,因此我记录了一张罚单:


您需要等待此修复,因为目前没有解决方案。

Ah您可以试用2.17.3或2.18.0版本吗?您使用的是什么版本的Java?谢谢您的回答。是否有关于何时发布修复程序的暂定日期?