Migrating from crucible

Hi everyone!
I plan to migrate from existing crucible to upsource. 

Only help I have found - was in /<upsource_home_dir>/lib/upsource/tools/crucible/crucible.export.properties file.

After setting up new upsource installation in docker, i`ve tried first to export users.

In upsource-console, I ran export-crucible-users ../conf/crucible.export.properties, where the properties file - is mine, updated to proper values file, but permanently got the error:

CHILD ERROR 07:38:15,364 Export has failed
java.lang.NoClassDefFoundError: kotlin/reflect/KotlinReflectionInternalError
at com.fasterxml.jackson.module.kotlin.KotlinModule.setupModule(KotlinModule.kt:40)
at com.fasterxml.jackson.databind.ObjectMapper.registerModule(ObjectMapper.java:722)
at com.fasterxml.jackson.module.kotlin.ExtensionsKt.registerKotlinModule(Extensions.kt:15)
at com.fasterxml.jackson.module.kotlin.ExtensionsKt.jacksonObjectMapper(Extensions.kt:14)
at com.jetbrains.upsource.export.crucible.CrucibleModel.<clinit>(CrucibleModel.kt:146)
at com.jetbrains.upsource.export.crucible.RESTClient.getUsers(RESTClient.kt:44)
at com.jetbrains.upsource.export.crucible.Users$Companion.export(Users.kt:79)
at com.jetbrains.upsource.backend.cli.ConsoleCommands.exportCrucibleUsers(ConsoleCommands.kt:882)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at asg.cliche.ShellCommand.invoke(ShellCommand.java:69)
at asg.cliche.Shell.processCommand(Shell.java:284)
at asg.cliche.Shell.processLine(Shell.java:266)
at asg.cliche.Shell.commandLoop(Shell.java:221)
at com.jetbrains.upsource.backend.cli.ConsoleRuntime.start(ConsoleRuntime.java:58)
at com.jetbrains.upsource.backend.cli.Console.main(Console.java:39)
Caused by: java.lang.ClassNotFoundException: kotlin.reflect.KotlinReflectionInternalError
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 18 more
CHILD INFO 07:38:15,367 Export has finished

Does anyoneknow what was happened wrong?

1
2 comments

Was there any resolution on this? I am experiencing the same failure. Here are details of my setup:
Running on out-of-box Amazon Linux EC2 m5.large.  Installed Upsource following the instructions for in-cloud installation.

Attempting to export Crucible user data and one Crucible project by following the instructions in <upsource_home>/lib/upsource/tools/crucible/crucible.export.properties; but "java" command initially failed because a JRE install was not in the path.  So I attempted to find where Java was on the EC2.  Couldn't find it, no matter what I tried. I resorted to installing OpenJDK 1.8.0 and then attempting to run the export command, again. Now my error is very similar to OP's.

[my-user-name@my-ec2 upsource]$ java -cp upsource.jar:* com.jetbrains.upsource.export.crucible.ExportKt $UPSOURCE_HOME/lib/upsource/tools/crucible/edited-crucible-export.properties
CHILD INFO 18:18:53,147 Loading users
Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/reflect/KotlinReflectionInternalError
at com.fasterxml.jackson.module.kotlin.KotlinModule.setupModule(KotlinModule.kt:40)
at com.fasterxml.jackson.databind.ObjectMapper.registerModule(ObjectMapper.java:722)
at com.fasterxml.jackson.module.kotlin.ExtensionsKt.registerKotlinModule(Extensions.kt:15)
at com.fasterxml.jackson.module.kotlin.ExtensionsKt.jacksonObjectMapper(Extensions.kt:14)
at com.jetbrains.upsource.export.crucible.CrucibleModel.<clinit>(CrucibleModel.kt:146)
at com.jetbrains.upsource.export.crucible.Users$Companion.load(Users.kt:59)
at com.jetbrains.upsource.export.crucible.ExportKt.main(Export.kt:18)
Caused by: java.lang.ClassNotFoundException: kotlin.reflect.KotlinReflectionInternalError
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 7 more

Please help.

0

Hi Joseph!
I have got an official response from development team. This functionality was created years ago, and do not maintained since its release. Only way you have now - is to migrate using REST API.

0

Please sign in to leave a comment.