We do classpath scanning at runtime and that doesn't work in a native image. The error is a bit strange, see https://github.com/oracle/graal/issues/5126