Reputation: 75
I'm getting errors when I run a simple program that's trying to open a jdbc connection.
The sample code can be found at https://github.com/bondowe/dbtest.
Can anyone spot what I'm missing?
OS: Windows 10
Ballerina version: slbeta2
Command: bal run
Error:
SEVERE {b7a.log.crash} - ballerinax/java$0046jdbc/0_6_0-beta_2/$ConfigurationMapper
java.lang.NoClassDefFoundError: ballerinax/java$0046jdbc/0_6_0-beta_2/$ConfigurationMapper
at bondowe.dbtest.0_1_0.$ConfigurationMapper.$configureInit(Unknown Source)
at bondowe.dbtest.0_1_0.$_init.main(dbtest)
Caused by: java.lang.ClassNotFoundException: ballerinax.java$0046jdbc.0_6_0-beta_2.$ConfigurationMapper
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 2 more
Thanks
Upvotes: 1
Views: 177
Reputation: 3570
This is due to a caching issue in ballerina and will be fixed in a future release. For now, users can remove:
/home/${username}/.ballerina/repositories/central.ballerina.io
directory on ubuntuC:\Users\${username}\.ballerina\repositories\central.ballerina.io
directory on windowsand rebuild.
Upvotes: 2