Do you have JAVA_HOME set? (possibly related: https://issues.apache.org/jira/browse/BEAM-11080)
On Fri, Nov 6, 2020 at 3:13 PM Steve Niemitz <sniem...@apache.org> wrote: > I'm trying out 2.25 (built from source, using java 8), and running into > this error, both on the direct runner and dataflow: > > Caused by: java.lang.NoSuchMethodError: > java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer; > at com.google.protobuf.NioByteString.copyToInternal(NioByteString.java:112) > at com.google.protobuf.ByteString.toByteArray(ByteString.java:695) > at com.google.protobuf.NioByteString.writeTo(NioByteString.java:123) > at > org.apache.beam.sdk.extensions.protobuf.ByteStringCoder.encode(ByteStringCoder.java:67) > at > org.apache.beam.sdk.extensions.protobuf.ByteStringCoder.encode(ByteStringCoder.java:37) > at org.apache.beam.sdk.coders.DelegateCoder.encode(DelegateCoder.java:74) > at org.apache.beam.sdk.coders.DelegateCoder.encode(DelegateCoder.java:68) > > It seems like this was introduced in protobuf 3.12.4 based on this issue I > found [1] > > Am I doing something wrong with my build? Or am I just hitting an untested > combo here? > > [1] https://github.com/protocolbuffers/protobuf/issues/7827 >