upsource plugin fails to load discussion on clion 2017.2.1 on clion ubuntu 16.04

Using upsource plugin inside Clion (may have the same behavior across other jetbrains IDE), it fails to load the discussion content. For code review, it will show "1 discussion(<TICKET NAME>)", however the cog wheel will keep on spinning forever and does not load the developer discussion. The current system configuration is running on Ubuntu 16.04 server and the GUI is opened via ssh x-forwarding. The JDK version is oracle jdk 1.8.0_144. It seems like there is some javaFX dependency missing from the environment which prevents discussion from loading.

The logs corresponding to the duration of the bug reproduction is pasted below. 

2017-08-28 02:24:54,440 [ 181789] DEBUG - .LoadedReviewOperationsHandler - Loading summary diff from Upsource: [82598746b8a106bb35bf62552d3713b0a2f601bd, 240f397996deecd64f9cff64232e20d3564c3859]
2017-08-28 02:24:54,440 [ 181789] DEBUG - .LoadedReviewOperationsHandler - Upsource revision ids: [82598746b8a106bb35bf62552d3713b0a2f601bd, 240f397996deecd64f9cff64232e20d3564c3859]
2017-08-28 02:24:54,459 [ 181808] DEBUG - .LoadedReviewOperationsHandler - Count of diff items: 15
2017-08-28 02:24:54,459 [ 181808] DEBUG - .LoadedReviewOperationsHandler - Loading summary diff result: 15
2017-08-28 02:24:54,463 [ 181812] DEBUG - ews.details.ReviewChangesPanel - Applying changes: 15
2017-08-28 02:26:59,149 [ 306498] DEBUG - ght.UpsourceCodeInsightManager - trying to load data
2017-08-28 02:26:59,149 [ 306498] DEBUG - ght.UpsourceCodeInsightManager - trying to load data
2017-08-28 02:26:59,443 [ 306792] DEBUG - ght.UpsourceCodeInsightManager - UpsourcePsiData: markup - true, inspections - true, references - false
2017-08-28 02:26:59,443 [ 306792] DEBUG - ght.UpsourceCodeInsightManager - UpsourcePsiData: markup - true, inspections - true, references - false
2017-08-28 02:26:59,455 [ 306804] DEBUG - ussions.markdown.JavaFxUtil.kt -
java.lang.NoClassDefFoundError: Could not initialize class com.sun.webkit.WebPage
at javafx.scene.web.WebEngine.<init>(WebEngine.java:879)
at javafx.scene.web.WebEngine.<init>(WebEngine.java:866)
at javafx.scene.web.WebView.<init>(WebView.java:273)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$1.invoke(JavaFxCommentLabel.kt:77)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$1.invoke(JavaFxCommentLabel.kt:42)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxUtilKt$runInJavaFxThread$1.run(JavaFxUtil.kt:16)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$5(GtkApplication.java:139)
at java.lang.Thread.run(Thread.java:745)
2017-08-28 02:26:59,455 [ 306804] DEBUG - ussions.markdown.JavaFxUtil.kt -
kotlin.KotlinNullPointerException
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$updateBackground$1.invoke(JavaFxCommentLabel.kt:100)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$updateBackground$1.invoke(JavaFxCommentLabel.kt:42)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxUtilKt$runInJavaFxThread$1.run(JavaFxUtil.kt:16)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$5(GtkApplication.java:139)
at java.lang.Thread.run(Thread.java:745)
2017-08-28 02:26:59,455 [ 306804] DEBUG - ussions.markdown.JavaFxUtil.kt -
kotlin.KotlinNullPointerException
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$updateBackground$1.invoke(JavaFxCommentLabel.kt:100)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$updateBackground$1.invoke(JavaFxCommentLabel.kt:42)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxUtilKt$runInJavaFxThread$1.run(JavaFxUtil.kt:16)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$5(GtkApplication.java:139)
at java.lang.Thread.run(Thread.java:745)
2017-08-28 02:26:59,697 [ 307046] DEBUG - ussions.markdown.JavaFxUtil.kt -
kotlin.KotlinNullPointerException
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel.doComputeDocumentSize(JavaFxCommentLabel.kt:230)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel.access$doComputeDocumentSize(JavaFxCommentLabel.kt:42)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$Companion$handleContentChanges$1.invoke(JavaFxCommentLabel.kt:354)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$Companion$handleContentChanges$1.invoke(JavaFxCommentLabel.kt:320)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxUtilKt$runInJavaFxThread$1.run(JavaFxUtil.kt:16)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$5(GtkApplication.java:139)
at java.lang.Thread.run(Thread.java:745)
2017-08-28 02:27:05,761 [ 313110] INFO - .script.IdeScriptEngineManager - javax.script.ScriptEngineManager initialized in 28 ms
2017-08-28 02:27:20,992 [ 328341] INFO - lij.diagnostic.DebugLogManager - Set DEBUG for the following categories: #com.jetbrains.upsource, #io.socket
2017-08-28 02:27:37,498 [ 344847] DEBUG - ght.UpsourceCodeInsightManager - trying to load data
2017-08-28 02:27:37,499 [ 344848] DEBUG - ght.UpsourceCodeInsightManager - trying to load data
2017-08-28 02:27:37,694 [ 345043] DEBUG - ght.UpsourceCodeInsightManager - UpsourcePsiData: markup - true, inspections - true, references - false
2017-08-28 02:27:37,694 [ 345043] DEBUG - ght.UpsourceCodeInsightManager - UpsourcePsiData: markup - true, inspections - true, references - false
2017-08-28 02:27:37,700 [ 345049] DEBUG - ussions.markdown.JavaFxUtil.kt -
java.lang.NoClassDefFoundError: Could not initialize class com.sun.webkit.WebPage
at javafx.scene.web.WebEngine.<init>(WebEngine.java:879)
at javafx.scene.web.WebEngine.<init>(WebEngine.java:866)
at javafx.scene.web.WebView.<init>(WebView.java:273)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$1.invoke(JavaFxCommentLabel.kt:77)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$1.invoke(JavaFxCommentLabel.kt:42)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxUtilKt$runInJavaFxThread$1.run(JavaFxUtil.kt:16)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$5(GtkApplication.java:139)
at java.lang.Thread.run(Thread.java:745)
2017-08-28 02:27:37,701 [ 345050] DEBUG - ussions.markdown.JavaFxUtil.kt -
kotlin.KotlinNullPointerException
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$updateBackground$1.invoke(JavaFxCommentLabel.kt:100)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$updateBackground$1.invoke(JavaFxCommentLabel.kt:42)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxUtilKt$runInJavaFxThread$1.run(JavaFxUtil.kt:16)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$5(GtkApplication.java:139)
at java.lang.Thread.run(Thread.java:745)
2017-08-28 02:27:37,701 [ 345050] DEBUG - ussions.markdown.JavaFxUtil.kt -
kotlin.KotlinNullPointerException
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$updateBackground$1.invoke(JavaFxCommentLabel.kt:100)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$updateBackground$1.invoke(JavaFxCommentLabel.kt:42)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxUtilKt$runInJavaFxThread$1.run(JavaFxUtil.kt:16)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$5(GtkApplication.java:139)
at java.lang.Thread.run(Thread.java:745)
2017-08-28 02:27:38,124 [ 345473] DEBUG - ussions.markdown.JavaFxUtil.kt -
kotlin.KotlinNullPointerException
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel.doComputeDocumentSize(JavaFxCommentLabel.kt:230)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel.access$doComputeDocumentSize(JavaFxCommentLabel.kt:42)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$Companion$handleContentChanges$1.invoke(JavaFxCommentLabel.kt:354)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxCommentLabel$Companion$handleContentChanges$1.invoke(JavaFxCommentLabel.kt:320)
at com.jetbrains.upsource.idea.discussions.markdown.JavaFxUtilKt$runInJavaFxThread$1.run(JavaFxUtil.kt:16)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$5(GtkApplication.java:139)
at java.lang.Thread.run(Thread.java:745)

1 comment

Hi Jack,

It's a known issue we keep struggling with.

If you go to Preferences - Tools -Upsource, there will be an option to disable JavaFX to render comments.

It's the only workaround I can suggest for now.

0

Please sign in to leave a comment.