You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "cushon (via GitHub)" <gi...@apache.org> on 2023/02/21 19:05:21 UTC
[GitHub] [beam] cushon commented on pull request #25566: Revert "Replace more uses of `ClassLoadingStrategy.Default.INJECTION` (#23210)"
cushon commented on PR #25566:
URL: https://github.com/apache/beam/pull/25566#issuecomment-1438963309
I can reproduce with
```
JAVA_HOME=$JAVA8_HOME ./gradlew -PdisableSpotlessCheck=true -PdisableCheckStyle=true -PcompileAndRunTestsWithJava17 -PskipCheckerFramework -Pjava17Home=$JAVA17_HOME --max-workers=8 -Dorg.gradle.jvmargs=-Xms2g -Dorg.gradle.jvmargs=-Xmx6g -Dorg.gradle.vfs.watch=false -Pdocker-pull-licenses clean :sdks:java:extensions:sql:test
```
```
java.lang.IllegalArgumentException: org.apache.beam.sdk.coders.Coder$ByteBuddy$3j3EZPM9 must be defined in the same package as org.apache.beam.sdk.schemas.Schema
at net.bytebuddy.dynamic.loading.ClassInjector$UsingLookup.injectRaw(ClassInjector.java:1635)
at net.bytebuddy.dynamic.loading.ClassInjector$AbstractBase.inject(ClassInjector.java:118)
at net.bytebuddy.dynamic.loading.ClassLoadingStrategy$UsingLookup.load(ClassLoadingStrategy.java:519)
at net.bytebuddy.dynamic.TypeResolutionStrategy$Passive.initialize(TypeResolutionStrategy.java:101)
at net.bytebuddy.dynamic.DynamicType$Default$Unloaded.load(DynamicType.java:6317)
at org.apache.beam.sdk.coders.RowCoderGenerator.generate(RowCoderGenerator.java:176)
at org.apache.beam.sdk.schemas.SchemaCoder.getDelegateCoder(SchemaCoder.java:117)
```
I think most of the failures are related to this change from the original PR: https://github.com/apache/beam/pull/23210#discussion_r1102152818
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org