SpreadsheetView错误 - controlsfx

时间:2015-04-16 15:30:30

标签: java

我使用了控制器fx 8.0.6U25的电子表格视图和早期的jdk用于我的工作,它运行良好。最近我更新到JDK 8U40和controlsfx 8.20.8。遗憾的是,电子表格视图无法加载。每当我运行相同的项目时,我的IDE都会出错。请问,有没有人遇到同样的问题?解决办法是什么?谢谢。

请找到我在下面得到的错误。在更新之前我没有做任何更改。

Exception in Application start method
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unknown Source)
    at com.sun.javafx.application.LauncherImpl.launchApplication(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
Caused by: java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown       Source)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$152(Unknown Source)
    at com.sun.javafx.application.LauncherImpl$$Lambda$71/1915503092.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.InstantiationError: com.sun.javafx.scene.control.SelectedCellsMap
    at impl.org.controlsfx.spreadsheet.SpreadsheetViewSelectionModel.<init>(SpreadsheetViewSelectionModel.java:198)
    at org.controlsfx.control.spreadsheet.SpreadsheetView.<init>(SpreadsheetView.java:395)
    at myStudentAssessNew.StudentAsessment$8.<init>(StudentAsessment.java:920)
    at myStudentAssessNew.StudentAsessment.addhboxCenter(StudentAsessment.java:920)
    at myStudentAssessNew.StudentAsessment.start(StudentAsessment.java:353)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$159(Unknown Source)
    at com.sun.javafx.application.LauncherImpl$$Lambda$92/717936956.run(Unknown Source)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(Unknown Source)
    at com.sun.javafx.application.PlatformImpl$$Lambda$45/186276003.run(Unknown Source)
    at com.sun.javafx.application.PlatformImpl.lambda$null$170(Unknown Source)
    at com.sun.javafx.application.PlatformImpl$$Lambda$48/1232900564.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(Unknown  Source)
    at com.sun.javafx.application.PlatformImpl$$Lambda$46/237061348.run(Unknown Source)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$145(Unknown Source)
    at com.sun.glass.ui.win.WinApplication$$Lambda$36/2117255219.run(Unknown Source)
... 1 more
    Exception running application myStudentAssessNew.StudentAsessment

1 个答案:

答案 0 :(得分:0)

嗯,解决方案看起来很简单。由于controlsfx项目尚未更新以满足JDK 8u40及以上版本的要求,我刚刚重新安装了之前的jdk(JDK 8u25),现在我没事。