Hiba a házifeladat futtatása közben

+1 vote
asked Apr 3, 2015 in Rendszermodellezés A00 by ferencmarkizay (27 points)  

A házi feladatban még nem változtattam semmit (nem akarta megtalálni a javafx-et, de azt megoldottam) és amikor próbálom elindítani a következő hibaüzenetet kapom:

Apr 03, 2015 5:41:53 PM hu.bme.mit.inf.symod.homework.generic.app.ChessClock start
SEVERE: null
java.lang.IllegalArgumentException: Must specify a font
at com.sun.javafx.scene.control.skin.Utils.computeClippedText(Utils.java:75)
at com.sun.javafx.scene.control.skin.LabeledSkinBase.updateDisplayedText(LabeledSkinBase.java:542)
at com.sun.javafx.scene.control.skin.LabeledSkinBase.layoutLabelInArea(LabeledSkinBase.java:949)
at com.sun.javafx.scene.control.skin.LabeledSkinBase.layoutLabelInArea(LabeledSkinBase.java:874)
at com.sun.javafx.scene.control.skin.LabeledSkinBase.layoutChildren(LabeledSkinBase.java:858)
at javafx.scene.Parent.layout(Parent.java:1018)
at javafx.scene.Parent.layout(Parent.java:1028)
at javafx.scene.Parent.layout(Parent.java:1028)
at javafx.scene.Scene.layoutDirtyRoots(Scene.java:524)
at javafx.scene.Scene.doLayoutPass(Scene.java:495)
at javafx.scene.Scene.preferredSize(Scene.java:1508)
at javafx.scene.Scene.implpreferredSize(Scene.java:1535)
at javafx.stage.Window$9.invalidated(Window.java:717)
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:127)
at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:161)
at javafx.stage.Window.setShowing(Window.java:781)
at javafx.stage.Window.show(Window.java:796)
at javafx.stage.Stage.show(Stage.java:233)
at hu.bme.mit.inf.symod.homework.generic.app.ChessClock.start(ChessClock.java:23)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:219)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:182)
at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:179)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
at com.sun.glass.ui.win.WinApplication.
runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:17)
at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:67)
at java.lang.Thread.run(Thread.java:745)

commented Apr 6, 2015 by oszkar.semerath (1,599 points)  
Ez mit jelent:
"nem akarta megtalálni a javafx-et, de azt megoldottam"
commented Apr 6, 2015 by ferencmarkizay (27 points)  
Az eclipse nem találta a javafx-es függvényeket és ezért hozzáadtam a preferences->Installed JREs alatt a kijelölt jdk-hoz a mappájában levő jfxrt.jar fájlt.
commented Apr 8, 2015 by ferencmarkizay (27 points)  
edited Apr 8, 2015 by ferencmarkizay
Letöltöttem a legújabb jdk-t, és azzal ezt a hibát kapom (itt már nem volt baj a javafx megtalálásával):

Apr 08, 2015 2:54:35 PM hu.bme.mit.inf.symod.homework.generic.app.ChessClock start
SEVERE: null
java.lang.NullPointerException
    at com.sun.javafx.scene.control.skin.Utils.computeTextWidth(Utils.java:118)
    at com.sun.javafx.scene.control.skin.LabeledSkinBase.computePrefWidth(LabeledSkinBase.java:734)
    at javafx.scene.control.Control.computePrefWidth(Control.java:535)
    at javafx.scene.Parent.prefWidth(Parent.java:904)
    at javafx.scene.layout.Region.prefWidth(Region.java:1419)
    at javafx.scene.Node.autosize(Node.java:2865)
    at javafx.scene.Parent.layoutChildren(Parent.java:1105)
    at javafx.scene.Parent.layout(Parent.java:1076)
    at javafx.scene.Scene.doLayoutPass(Scene.java:552)
    at javafx.scene.Scene.preferredSize(Scene.java:1646)
    at javafx.scene.Scene.impl_preferredSize(Scene.java:1720)
    at javafx.stage.Window$9.invalidated(Window.java:834)
    at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:109)
    at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:144)
    at javafx.stage.Window.setShowing(Window.java:910)
    at javafx.stage.Window.show(Window.java:925)
    at javafx.stage.Stage.show(Stage.java:256)
    at hu.bme.mit.inf.symod.homework.generic.app.ChessClock.start(ChessClock.java:23)
    at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$159(LauncherImpl.java:863)
    at com.sun.javafx.application.LauncherImpl$$Lambda$53/759553014.run(Unknown Source)
    at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$172(PlatformImpl.java:326)
    at com.sun.javafx.application.PlatformImpl$$Lambda$45/186276003.run(Unknown Source)
    at com.sun.javafx.application.PlatformImpl.lambda$null$170(PlatformImpl.java:295)
    at com.sun.javafx.application.PlatformImpl$$Lambda$48/1485750401.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl.lambda$runLater$171(PlatformImpl.java:294)
    at com.sun.javafx.application.PlatformImpl$$Lambda$47/237061348.run(Unknown Source)
    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$145(WinApplication.java:101)
    at com.sun.glass.ui.win.WinApplication$$Lambda$36/2117255219.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:745)
commented Apr 13, 2015 by ferencmarkizay (27 points)  
Feltelepíttettem egy linuxos virtuális gépet, azon működik.

1 Answer

0 votes
answered Apr 3, 2015 by oszkar.semerath (1,599 points)  

Nézem mi lehet a baj.

...