question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Jetty ALPN/NPN has not been properly configured.

See original GitHub issue

Related to #2266 - but is not resolved by anything in there either.

Stack trace

com.google.cloud.logging.LoggingException: java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly
configured.
1419         at com.google.cloud.logging.LoggingOptions$DefaultLoggingRpcFactory.create(LoggingOptions.java:66)
1420         at com.google.cloud.logging.LoggingOptions$DefaultLoggingRpcFactory.create(LoggingOptions.java:58)
1421         at com.google.cloud.ServiceOptions.getRpc(ServiceOptions.java:472)
1422         at com.google.cloud.logging.LoggingOptions.getLoggingRpcV2(LoggingOptions.java:134)
1423         at com.google.cloud.logging.LoggingImpl.<init>(LoggingImpl.java:108)
1424         at com.google.cloud.logging.LoggingOptions$DefaultLoggingFactory.create(LoggingOptions.java:46)
1425         at com.google.cloud.logging.LoggingOptions$DefaultLoggingFactory.create(LoggingOptions.java:41)
1426         at com.google.cloud.ServiceOptions.getService(ServiceOptions.java:459)
1427         at com.myproject.framework.logger.StackdriverAppender.<init>(StackdriverAppender.java:49)
1428         at com.myproject.framework.utils.LoggerControl.addStackdriverAppender(LoggerControl.java:131)
1429         at com.myproject.framework.config.CoreInitializer.initialize(CoreInitializer.java:510)
1430         at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:635)
1431         at org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:349)
1432         at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
1433         at com.myproject.framework.configserver.StartConfigServer.main(StartConfigServer.java:45)
1434         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
1435         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
1436         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
1437         at java.lang.reflect.Method.invoke(Method.java:498)
1438         at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
1439         at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
1440         at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
1441         at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
1442 Caused by: java.io.IOException: java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly
configured.
1443         at com.google.cloud.logging.spi.v2.GrpcLoggingRpc.<init>(GrpcLoggingRpc.java:141)
1444         at com.google.cloud.logging.LoggingOptions$DefaultLoggingRpcFactory.create(LoggingOptions.java:64)
1445         ... 22 common frames omitted
1446 Caused by: java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.
1447         at io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:159)
1448         at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:136)
1449         at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:124)
1450         at io.grpc.netty.GrpcSslContexts.forClient(GrpcSslContexts.java:94)
1451         at
io.grpc.netty.NettyChannelBuilder$NettyTransportFactory$DefaultNettyTransportCreationParamsFilterFactory.<init>(NettyChannelBuilder.java:525)
1452         at
io.grpc.netty.NettyChannelBuilder$NettyTransportFactory$DefaultNettyTransportCreationParamsFilterFactory.<init>(NettyChannelBuilder.java:518)
1453         at io.grpc.netty.NettyChannelBuilder$NettyTransportFactory.<init>(NettyChannelBuilder.java:457)
1454         at io.grpc.netty.NettyChannelBuilder.buildTransportFactory(NettyChannelBuilder.java:326)
1455         at io.grpc.internal.AbstractManagedChannelImplBuilder.build(AbstractManagedChannelImplBuilder.java:315)
1456         at
com.google.api.gax.grpc.InstantiatingChannelProvider.createChannel(InstantiatingChannelProvider.java:131)
1457         at com.google.api.gax.grpc.InstantiatingChannelProvider.getChannel(InstantiatingChannelProvider.java:116)
1458         at com.google.api.gax.grpc.GrpcTransportProvider.getTransport(GrpcTransportProvider.java:98)
1459         at com.google.cloud.logging.spi.v2.GrpcLoggingRpc.<init>(GrpcLoggingRpc.java:112)
1460         ... 23 common frames omitted

compatibility tool output.

OS details:
  os.detected.name: linux
  os.detected.arch: x86_64
  os.detected.classifier: linux-x86_64
  os.detected.release: ubuntu
  os.detected.release.version: 17.04
JVM details:
  Java version: 1.8.0_131
  Java specification version: 1.8
  JVM bit mode: 64
OpenSSL details:
  open ssl is available: true
  ALPN is supported: true
Checking compatibility...
  [PASS] This OS + architecture is supported.
  [PASS] 64-bit JVM is supported.
  [PASS] Open SSL is available
  [PASS] Open SSL ALPN is supported
Result: UNKNOWN (checker implementation not complete)
  Based on what was checked, nothing was identified that would
  prevent you from using grpc-based APIs.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.933 s
[INFO] Finished at: 2017-09-27T18:21:20+00:00
[INFO] Final Memory: 17M/470M
[INFO] ------------------------------------------------------------------------

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
saturnismcommented, Jan 3, 2018

For those that landed on this issue from search, please see gRPC troubleshooting guide https://github.com/grpc/grpc-java/blob/master/SECURITY.md#troubleshooting

1reaction
lesvcommented, Oct 20, 2017

grpc/grpc-java#3025 is probably the canonical issue for this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jetty ALPN/NPN has not been properly configured - Stack ...
I am trying to spin up the GRPC server with TLS enabled in docker container on pods but getting below error during ...
Read more >
Jetty ALPN/NPN has not been properly configured — Solution
In order to fix this, we need to configure an ALPN client that matches our JDK version for our project.
Read more >
Jetty ALPN/NPN has not been properly configured.
I receive the following error while I try to instantiate the graph. Jetty ALPN/NPN has not been properly configured. Here is the traceback....
Read more >
Jetty ALPN/NPN has not been properly configured. When tried ...
[Solved]-Jetty ALPN/NPN has not been properly configured. When tried to use google cloud speech api-Spring MVC ... Netty-tcnative 1.x is incompatible with ...
Read more >
Troubleshooting the Event Hub | Predix Platform | GE Digital
IllegalArgumentException : Jetty ALPN/NPN has not been properly configured or ... ... the Event Hub service, you may receive the following error: java.lang....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found