Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add native-image.properties for net.bytebuddy:byte-buddy:1.12.17 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

linghengqian
Copy link
Owner

@linghengqian linghengqian commented Feb 19, 2024

Args = -H:ClassInitialization=net.bytebuddy.ClassFileVersion:rerun \
  -H:ClassInitialization=net.bytebuddy.utility.dispatcher.JavaDispatcher:rerun \
  -H:ClassInitialization=net.bytebuddy.utility.Invoker$Dispatcher:rerun \
  -H:ClassInitialization=net.bytebuddy.utility.GraalImageCode:rerun \
  --initialize-at-build-time=net.bytebuddy.description.method.MethodDescription$InDefinedShape$AbstractBase$ForLoadedExecutable \
  --initialize-at-build-time=net.bytebuddy.description.type.TypeDescription$AbstractBase \
  --initialize-at-build-time=net.bytebuddy.description.type.TypeDescription$ForLoadedType \
  --initialize-at-build-time=net.bytebuddy.description.method.MethodDescription$ForLoadedMethod \
  --initialize-at-build-time=net.bytebuddy.implementation.bind.annotation.Argument$BindingMechanic \
  --initialize-at-build-time=net.bytebuddy.implementation.bind.annotation.Argument$BindingMechanic$1 \
  --initialize-at-build-time=net.bytebuddy.implementation.bind.annotation.Argument$BindingMechanic$2 \
  --initialize-at-build-time=net.bytebuddy.implementation.bind.annotation.Super$Instantiation$2 \
  --initialize-at-build-time=net.bytebuddy.utility.dispatcher.JavaDispatcher$DynamicClassLoader \
  -H:ClassInitialization=net.bytebuddy.utility.OpenedClassReader:rerun
  • The error log is as follows.
Failures (1):
  JUnit Jupiter:SeataTest:assertShardingInSeataTransactions()
    MethodSource [className = 'com.lingh.SeataTest', methodName = 'assertShardingInSeataTransactions', methodParameterTypes = '']
    => com.oracle.svm.core.jdk.UnsupportedFeatureError: Defining a class from new bytecodes at run time is not supported. Class io.seata.config.Configuration$io$seata$config$ConfigurationCache$proxy$ByteBuddy with hash db8f83740bdb05f4253fbf0991a7136955934bc498167aebbe1869a3d170eb8f was not provided during the image build. Please see BuildConfiguration.md.
       org.graalvm.nativeimage.builder/com.oracle.svm.core.util.VMError.unsupportedFeature(VMError.java:121)
       org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.PredefinedClassesSupport.loadClass(PredefinedClassesSupport.java:136)
       java.base@21.0.2/java.lang.ClassLoader.defineClass(ClassLoader.java:280)
       net.bytebuddy.dynamic.loading.ByteArrayClassLoader.access$300(ByteArrayClassLoader.java:56)
       net.bytebuddy.dynamic.loading.ByteArrayClassLoader$ClassDefinitionAction.run(ByteArrayClassLoader.java:686)
       net.bytebuddy.dynamic.loading.ByteArrayClassLoader$ClassDefinitionAction.run(ByteArrayClassLoader.java:638)
       java.base@21.0.2/java.security.AccessController.executePrivileged(AccessController.java:129)
       java.base@21.0.2/java.security.AccessController.doPrivileged(AccessController.java:400)
       net.bytebuddy.dynamic.loading.ByteArrayClassLoader.doPrivileged(ByteArrayClassLoader.java)
       net.bytebuddy.dynamic.loading.ByteArrayClassLoader.findClass(ByteArrayClassLoader.java:405)
       [...]

Test run finished after 6586 ms
[         2 containers found      ]
[         0 containers skipped    ]
[         2 containers started    ]
[         0 containers aborted    ]
[         2 containers successful ]
[         0 containers failed     ]
[         1 tests found           ]
[         0 tests skipped         ]
[         1 tests started         ]
[         0 tests aborted         ]
[         0 tests successful      ]
[         1 tests failed          ]

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:35 min (Wall Clock)
[INFO] Finished at: 2024-02-20T16:34:23+08:00
[INFO] ------------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant