Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×bitbucket backup client wont run with a Groovy error.
Exception in thread "main" java.lang.NoClassDefFoundError: groovy/lang/GroovyObject
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623)
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:521)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:315)
at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.invokeClientClassMain(JavaVersionCheckingShim.java:64)
at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.run(JavaVersionCheckingShim.java:85)
at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim.access$000(JavaVersionCheckingShim.java:14)
at com.atlassian.bitbucket.internal.backup.client.JavaVersionCheckingShim$BackupMain.main(JavaVersionCheckingShim.java:32)
Caused by: java.lang.ClassNotFoundException: groovy.lang.GroovyObject
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
I had a similar error and reverted to using the backup version 3.5.0 and the backup proceeded as normal.
Hello Cameron and welcome to the Community!
To ensure we’re discussing the same products and steps we want to confirm you’re using Marketplace “Bitbucket Server Backup Client.” Without further information on the steps which lead up to this error, we can reference a few items which may assist.
Your error is similar to a previous post which had an issue with not all items within the download being moved over. This post may be found at Stash backup client failed with Java exception.
Additionally, ensure you’re grabbing the latest version of the client at Bitbucket Server Backup Client. This client also has reference documentation located at; Data recovery and backups.
If you’re still having issues with the client, please verify the following so we may assist further:
We look forward to hearing back so ensure you’re able to backup Bitbucket.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi I had found that post but not sure the issue is the same / wasn't able to use it to solve the problem.
ubuntu@host:~/bitbucket-backup-client-3.5.1$ java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing)
Steps:
Downloaded the current version (3.5.1) of the backup client, setup the 'backup-config.properties' file then ran:
java -jar bitbucket-backup-client.jar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello again Cameron,
Thank you for providing the requested information. I tested the backup client with Oracle JRE and OpenJDK using Bitbucket 6.3 and was unable to recreate the issue you’re seeing.
Additional items to check would be as follows:
If we’re still having the issue after confirming the above, please let us know.
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.