Skip to content

Commit 7eef021

Browse files
authored
---
yaml --- r: 9085 b: refs/heads/master c: 2cd40f2 h: refs/heads/master i: 9083: f4357da
1 parent 433a431 commit 7eef021

3 files changed

Lines changed: 54 additions & 2 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 07fd013806a88d1ff4370b6bf1a9d0014dc4adfd
2+
refs/heads/master: 2cd40f284c6c9ab19eb11e20d83e673add7ff8dd
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: 8e9b065ba06cd7a4af306aaea1010aade81670e0
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Credentials in the following locations (in order):
177177
Troubleshooting
178178
---------------
179179
180-
To get help, follow the instructions in the [shared Troubleshooting document](https://github.com/GoogleCloudPlatform/gcloud-common/blob/master/troubleshooting/readme.md#troubleshooting).
180+
To get help, follow the instructions in the [Troubleshooting document](https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/TROUBLESHOOTING.md).
181181
182182
Using a proxy
183183
-------------

trunk/TROUBLESHOOTING.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Troubleshooting
2+
3+
## "ALPN is not configured properly"
4+
5+
This exception usually indicates that Netty isn't set up properly.
6+
7+
If using gRPC version 1.9.0 or newer, consider using `io.grpc:grpc-netty-shaded`
8+
dependency so that it does not conflict with other packages that also require Netty.
9+
10+
If your gRPC dependency is older than 1.9.0, consider updating.
11+
As of 0.35.0, packages in `google-cloud-java` already declare a dependency on `grpc-netty-shaded`.
12+
13+
The versions of `gprc-netty-shaded` must match the version of other gRPC dependencies.
14+
Packages in `google-cloud-java` already do this for you.
15+
However, if you need to declare dependency on gRPC yourself, we recommend doing it like this:
16+
```
17+
<properties>
18+
<grpc.version>1.9.0</grpc.version>
19+
</properties>
20+
21+
<dependencyManagement>
22+
<dependencies>
23+
<dependency>
24+
<groupId>io.grpc</groupId>
25+
<artifactId>grpc-core</artifactId>
26+
<version>${grpc.version}</version>
27+
</dependency>
28+
<dependency>
29+
<groupId>io.grpc</groupId>
30+
<artifactId>grpc-netty-shaded</artifactId>
31+
<version>${grpc.version}</version>
32+
</dependency>
33+
</dependencies>
34+
</dependencyManagement>
35+
```
36+
so that versions cannot go out of sync.
37+
38+
See [gRPC documentation](https://github.com/grpc/grpc-java/blob/master/SECURITY.md#troubleshooting)
39+
for more details.
40+
41+
## `ClassNotFoundException` or `NoSuchMethodError`
42+
43+
This is usually caused by multiple packages depending on different versions
44+
of the same dependencies.
45+
`com.google.protobuf:protobuf-java` and `com.google.guava:guava` are the usual culprits,
46+
since they are widely used.
47+
48+
Consider using the [Enforcer Plugin](https://maven.apache.org/enforcer/maven-enforcer-plugin/index.html)
49+
to verify version convergence.
50+
51+
Alternatively, consider [shading](https://maven.apache.org/plugins/maven-shade-plugin/)
52+
these dependencies.

0 commit comments

Comments
 (0)