Skip to content

ALPN is not configured properly - unable to connect on Windows 10 32bit, JRE 8 #28

@jeffersonatsafe

Description

@jeffersonatsafe

Hello,

We tried using the driver under a 32-bit environment, but we're getting this error instead:

java.lang.IllegalArgumentException: ALPN is not configured properly. See https://github.com/grpc/grpc-java/blob/master/SECURITY.md#troubleshooting for more information.
	at nl.topicus.jdbc.shaded.io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:163)
	at nl.topicus.jdbc.shaded.io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:136)
	at nl.topicus.jdbc.shaded.io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:124)
	at nl.topicus.jdbc.shaded.io.grpc.netty.GrpcSslContexts.forClient(GrpcSslContexts.java:94)
	at nl.topicus.jdbc.shaded.com.google.cloud.spanner.SpannerOptions$NettyRpcChannelFactory.newSslContext(SpannerOptions.java:311)
	at nl.topicus.jdbc.shaded.com.google.cloud.spanner.SpannerOptions$NettyRpcChannelFactory.newChannel(SpannerOptions.java:299)
	at nl.topicus.jdbc.shaded.com.google.cloud.spanner.SpannerOptions.createChannel(SpannerOptions.java:272)
	at nl.topicus.jdbc.shaded.com.google.cloud.spanner.SpannerOptions.createChannels(SpannerOptions.java:259)
	at nl.topicus.jdbc.shaded.com.google.cloud.spanner.SpannerOptions.<init>(SpannerOptions.java:92)
	at nl.topicus.jdbc.shaded.com.google.cloud.spanner.SpannerOptions.<init>(SpannerOptions.java:45)
	at nl.topicus.jdbc.shaded.com.google.cloud.spanner.SpannerOptions$Builder.build(SpannerOptions.java:195)
	at nl.topicus.jdbc.CloudSpannerConnection.<init>(CloudSpannerConnection.java:183)
	at nl.topicus.jdbc.CloudSpannerDriver.connect(CloudSpannerDriver.java:275)
	at COM.safe.fme.jdbc.JdbcCommon.openConnection(JdbcCommon.java:469)
	at COM.safe.fme.jdbc.JdbcReader.openHelper(JdbcReader.java:192)
	at COM.safe.fme.jdbc.JdbcReader.open(JdbcReader.java:162)
Caused by: java.lang.ClassNotFoundException: org/eclipse/jetty/alpn/ALPN
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at nl.topicus.jdbc.shaded.io.grpc.netty.JettyTlsUtil.isJettyAlpnConfigured(JettyTlsUtil.java:34)
	at nl.topicus.jdbc.shaded.io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:153)
	... 15 more

This was on a Windows 10 machine, running on 32-bit configuration, with Java 8
Driver version: 0.23

Note that we've had no problems connecting in 64-bit.

We've done a bit of digging, and seems that there are reports of similar problems here:
googleapis/google-cloud-java#2740
and here:
googleapis/google-cloud-java#2813

would upgrading google-cloud-spanner dependency fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions