Ouch! :smile: Ktolin 1.4.0: ```Caused by: java.lan...
# announcements
a
Ouch! 😄 Ktolin 1.4.0:
Copy code
Caused by: java.lang.NoClassDefFoundError: kotlin/jvm/internal/KTypeBase
Seems to be a problem with spring.
2
m
Yes! I posted in the #C0B8RC352 channel as well, I'm seeing the error for
java.lang.NoClassDefFoundError: Could not initialize class kotlin.reflect.jvm.internal.impl.builtins.jvm.JavaToKotlinClassMap
u
Could you verify that both kotlin-stdlib and kotlin-reflect in the classpath are of version 1.4.0?
a
I'm quite sure of this:
Copy code
<properties>
    ...
    <kotlin.version>1.4.0</kotlin.version>
    ...
</properties>

<dependency-management>
    <dependencies>
        ...
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-reflect</artifactId>
            <version>${kotlin.version}</version>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-stdlib-jdk8</artifactId>
            <version>${kotlin.version}</version>
        </dependency>
        <dependency>
            <groupId>org.jetbrains.kotlin</groupId>
            <artifactId>kotlin-stdlib-common</artifactId>
            <version>${kotlin.version}</version>
        </dependency>
        ...
    </dependencies>
</dependency-management>
u
I suppose the issue might be caused by something like improper class loader isolation, but I'm mostly just guessing.
KTypeBase
is an internal class added in 1.4.0, so if it's not found, it means that the class loader which the call site is loaded with (it might be Spring internals or something) is not able to pick up kotlin-stdlib 1.4.0. Could you please report an issue with the full stacktrace to https://kotl.in/issue so that we'd investigate it closer?
a
Oi, can do this! Thank you very much! 🙂
👍 2