Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6589

SDKs::Java::Extensions::Kryo is incorrectly shaded

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.9.0, 2.10.0
    • 2.11.0
    • dsl-euphoria
    • None

    Description

      Under certain conditions using KryoCoder results in

       java.lang.NoClassDefFoundError: org/objenesis/strategy/InstantiatorStrategy
           at org.apache.beam.sdk.extensions.kryo.KryoState.<clinit>(KryoState.java:30)
           at org.apache.beam.sdk.extensions.kryo.KryoCoder.encode(KryoCoder.java:195)
           at org.apache.beam.sdk.coders.Coder.encode(Coder.java:136)
           at org.apache.beam.sdk.util.CoderUtils.encodeToSafeStream(CoderUtils.java:82)
           at org.apache.beam.sdk.util.CoderUtils.encodeToByteArray(CoderUtils.java:66)
           at org.apache.beam.sdk.util.CoderUtils.encodeToByteArray(CoderUtils.java:51)
      

      The extension jar is missing objenesis dependency.

      Attachments

        Issue Links

          Activity

            People

              dmvk David Morávek
              janl Jan Lukavský
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m