Title: Exception in thread "main" java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured · Issue #3668 · googleapis/google-cloud-java · GitHub
Open Graph Title: Exception in thread "main" java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured · Issue #3668 · googleapis/google-cloud-java
X Title: Exception in thread "main" java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured · Issue #3668 · googleapis/google-cloud-java
Description: I am trying to use grpc java to connect to a service. Java Version: 1.8 Gradle dependencies: dependencies { //GRPC compile 'io.grpc:grpc-netty:1.1.2' compile 'io.grpc:grpc-protobuf:1.1.2' compile 'io.grpc:grpc-stub:1.1.2' compile 'io.net...
Open Graph Description: I am trying to use grpc java to connect to a service. Java Version: 1.8 Gradle dependencies: dependencies { //GRPC compile 'io.grpc:grpc-netty:1.1.2' compile 'io.grpc:grpc-protobuf:1.1.2' compile '...
X Description: I am trying to use grpc java to connect to a service. Java Version: 1.8 Gradle dependencies: dependencies { //GRPC compile 'io.grpc:grpc-netty:1.1.2' compile 'io.grpc:grpc-protobuf:1.1....
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/3668
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exception in thread \"main\" java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured","articleBody":"I am trying to use grpc java to connect to a service.\r\n\r\nJava Version: 1.8\r\nGradle dependencies: \r\n```\r\ndependencies {\r\n\r\n //GRPC\r\n compile 'io.grpc:grpc-netty:1.1.2'\r\n compile 'io.grpc:grpc-protobuf:1.1.2'\r\n compile 'io.grpc:grpc-stub:1.1.2'\r\n compile 'io.netty:netty-tcnative-boringssl-static:1.1.33.Fork26'\r\n```\r\n\r\nFull Error log:\r\n\r\n```\r\nException in thread \"main\" java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.\r\n\tat io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:159)\r\n\tat io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:136)\r\n\tat io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:124)\r\n\tat io.grpc.netty.GrpcSslContexts.forClient(GrpcSslContexts.java:94)\r\n\tat com.ibm.watson.sentimentanalysis.fe.service.pipeline.customization.TestGrpcTrain.getSslContext(TestGrpcTrain.java:158)\r\n\tat com.ibm.watson.sentimentanalysis.fe.service.pipeline.customization.TestGrpcTrain.main(TestGrpcTrain.java:143)\r\n```\r\nat this line in my java grpc client code:\r\n\r\n```\r\npublic static SslContext getSslContext(File certFile) throws SSLException {\r\n return GrpcSslContexts.forClient()\r\n .trustManager(certFile)\r\n .build();\r\n }\r\n```\r\n\r\nHere's my gradle dependency tree:\r\nhttps://gist.github.com/tripathysa/7966ddb1e3c6751c19e7b9777a5a0419\r\n\r\nTried the troubleshooting guide: Used the same combination of \r\n\r\ngrpc-netty version | netty-handler version | netty-tcnative-boringssl-static version as mentioned here:\r\nhttps://github.com/grpc/grpc-java/blob/master/SECURITY.md#troubleshooting\r\n\r\nBut still getting the error. Any help would be appreciated.\r\n\r\n","author":{"url":"https://github.com/tripathysa","@type":"Person","name":"tripathysa"},"datePublished":"2018-09-12T06:02:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3668/google-cloud-java/issues/3668"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b68b40c3-66ce-3864-2dc9-9a671ca374b4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CE2:92B80:55C859:7BD3A3:6A4CD9E9 |
| html-safe-nonce | 85d2b52cfe3c850d346c19cf57ecf65d0b3a99a4f618ba81eae38dbff6f46c96 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0UyOjkyQjgwOjU1Qzg1OTo3QkQzQTM6NkE0Q0Q5RTkiLCJ2aXNpdG9yX2lkIjoiNTA1OTQ5MTY0NTYzNzg0MzQzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 99d5360a817600d4f087c981f24b04159ec0e740f8a1c627dc93195c723a7744 |
| hovercard-subject-tag | issue:359327384 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-java/3668/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3418a1843c14425e82e97c95fab197f0505b14befc687c610d1d4896d5fbd216/googleapis/google-cloud-java/issues/3668 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3418a1843c14425e82e97c95fab197f0505b14befc687c610d1d4896d5fbd216/googleapis/google-cloud-java/issues/3668 |
| og:image:alt | I am trying to use grpc java to connect to a service. Java Version: 1.8 Gradle dependencies: dependencies { //GRPC compile 'io.grpc:grpc-netty:1.1.2' compile 'io.grpc:grpc-protobuf:1.1.2' compile '... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tripathysa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3eeb74f55ccd8a31bdaec6839577c592bbf7844c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width