yeyincai / grpc-demo Goto Github PK
View Code? Open in Web Editor NEWintroduces using grpc about encryption、stream、oneof、interceptor、loadbalance demo
Home Page: http://blog.csdn.net/yeyincai
introduces using grpc about encryption、stream、oneof、interceptor、loadbalance demo
Home Page: http://blog.csdn.net/yeyincai
服务端启动直接报这个错误,这是什么原因呢?
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.tomcat.jni.SSLContext.setCertificateBio(JJJLjava/lang/String;)Z
at io.netty.handler.ssl.ReferenceCountedOpenSslContext.setKeyMaterial(ReferenceCountedOpenSslContext.java:664)
at io.netty.handler.ssl.ReferenceCountedOpenSslServerContext.newSessionContext(ReferenceCountedOpenSslServerContext.java:114)
at io.netty.handler.ssl.OpenSslServerContext.(OpenSslServerContext.java:349)
at io.netty.handler.ssl.OpenSslServerContext.(OpenSslServerContext.java:334)
at io.netty.handler.ssl.SslContext.newServerContextInternal(SslContext.java:414)
at io.netty.handler.ssl.SslContextBuilder.build(SslContextBuilder.java:402)
at com.grpc.demo.encryption.SimpleServerStart.start(SimpleServerStart.java:27)
at com.grpc.demo.encryption.SimpleServerStart.main(SimpleServerStart.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
代码报错:Exception in thread "main" java.lang.NoSuchMethodError: org.apache.tomcat.jni.SSLContext.setCertificateBio(JJJLjava/lang/String;)Z
netty-tcnative和netty-tcnative-boringssl-static都拥有相同类路径的SSLContext类,代码实际调用的是netty-tcnative的SSLContext.setCertificateBio()方法,但是pom文件里面netty-tcnative-boringssl-static比netty-tcnative先申明,所以maven根据顺序加载的是netty-tcnative-boringssl-static的SSLContext类,导致启动报NoSuchMethodError
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.