Java.lang.unsupportedoperationException: Der Typ für Eigenschaften JavafxML kann nicht bestimmen

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Java.lang.unsupportedoperationException: Der Typ für Eigenschaften JavafxML kann nicht bestimmen

by Anonymous » 26 Aug 2025, 10:54

Versuche meine Anwendung zu starten, aber alles, was ich habe, ist dieser Fehler. Hier ist mein Code, dass ich glaube, dass es die Grundursache ist. Diese Art von Fehler ist für mich neu, da es eines der ersten Mal mit Javafx arbeite, und ich kann das Problem des Problems in der Fehlerliste nicht sehen.

Code: Select all

public class Main extends Application {

public void start(Stage primaryStage) {
try {
Parent root = FXMLLoader.load(getClass().getResource("/gui/ClientGui.fxml"));
Scene scene = new Scene(root,622,588);
scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
primaryStage.setResizable(false);
primaryStage.setScene(scene);
primaryStage.show();
primaryStage.setTitle("Denkibot - Laget med Dialogflow");
< /code>

 Controller < /strong> < /p>

package controller;

import javafx.scene.control.Button;

public class FxControl {

public Button sendBtn;

public void sendMsg() {
System.out.println("drep meg");
}

}
< /code>

Hier ist das  fxml < /strong> das ist wahrscheinlich das Hauptproblem < /p>




























































< /code>

 Der Fehler < /strong> < /p>

javafx.fxml.LoadException:
/C:/Users/mariu/Desktop/Denkibot/samples/clients/text-client/target/classes/gui/ClientGui.fxml:54

at javafx.fxml.FXMLLoader.constructLoadException(FXMLLoader.java:2601)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2579)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2441)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3214)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3175)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3148)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3124)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:3104)
at javafx.fxml.FXMLLoader.load(FXMLLoader.java:3097)
at gui.Main.start(Main.java:18)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsupportedOperationException: Cannot determine type for property.
at com.sun.javafx.fxml.BeanAdapter.getSetterMethod(BeanAdapter.java:177)
at com.sun.javafx.fxml.BeanAdapter.put(BeanAdapter.java:250)
at javafx.fxml.FXMLLoader$Element.processEventHandlerAttributes(FXMLLoader.java:618)
at javafx.fxml.FXMLLoader$ValueElement.processEndElement(FXMLLoader.java:770)
at javafx.fxml.FXMLLoader.processEndElement(FXMLLoader.java:2823)
at javafx.fxml.FXMLLoader.loadImpl(FXMLLoader.java:2532)
... 17 more

Top