我正在研究Digital Asset quickstart guide。启动沙箱时,我收到一些警告消息:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/home/vantage/.da/packages/sandbox/6.0.0/lib/protobuf-java-3.5.1.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
当我启动Navigator时也是如此:
Version 1.1.1
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil (file:/home/vantage/.da/packages/navigator/1.1.1/navigator-1.1.1.jar) to field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of com.google.protobuf.UnsafeUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
我应该担心某个地方出了什么问题吗?
答案 0 :(得分:2)
此警告是因为gRPC使用的某些操作在Java 8之上已被弃用。我假设您使用的是相当新的JRE,这就是为什么您看到此错误的原因。
他们大约一个月前解决了该问题,直到更改传播到更高级别的库中为止需要一段时间,因此可以将其包含在沙箱和导航器中。
请参阅:https://github.com/protocolbuffers/protobuf/issues/3781
TL; DR:暂时忽略该警告,该警告无害,将被修复。 :)