Results 1 to 2 of 2
  1. #1
    KhaledFoh is offline Member
    Join Date
    Apr 2016
    Posts
    1
    Rep Power
    0

    Default New in JavaFx and got error

    I'm new in JavaFx and i Have this error anyone can help me.

    Device "Intel(R) HD Graphics" (\\.\DISPLAY1) initialization failed :
    WARNING: bad driver version detected, device disabled. Please update your driver to at least version 8.15.10.2302
    Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at javafx.fxml.FXMLLoader$MethodHandler.invoke(Unknow n Source)
    at javafx.fxml.FXMLLoader$ControllerMethodEventHandle r.handle(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler.dispatc hBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventDispatcher.disp atchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEventImpl(Unkno wn Source)
    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
    at javafx.event.Event.fireEvent(Unknown Source)
    at javafx.scene.Node.fireEvent(Unknown Source)
    at javafx.scene.control.Button.fire(Unknown Source)
    at com.sun.javafx.scene.control.behavior.ButtonBehavi or.mouseReleased(Unknown Source)
    at com.sun.javafx.scene.control.skin.BehaviorSkinBase $1.handle(Unknown Source)
    at com.sun.javafx.scene.control.skin.BehaviorSkinBase $1.handle(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler$NormalE ventHandlerRecord.handleBubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler.dispatc hBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventDispatcher.disp atchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEventImpl(Unkno wn Source)
    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
    at javafx.event.Event.fireEvent(Unknown Source)
    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
    at javafx.scene.Scene$MouseHandler.access$1500(Unknow n Source)
    at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Un known Source)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler$Mo useEventNotification.run(Unknown Source)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler$Mo useEventNotification.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler.la mbda$handleMouseEvent$355(Unknown Source)
    at com.sun.javafx.tk.quantum.QuantumToolkit.runWithou tRenderLock(Unknown Source)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler.ha ndleMouseEvent(Unknown Source)
    at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
    at com.sun.glass.ui.View.notifyMouse(Unknown Source)
    at com.sun.glass.ui.win.WinApplication._runLoop(Nativ e Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$14 9(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.reflect.misc.Trampoline.invoke(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
    ... 49 more
    Caused by: java.lang.NullPointerException
    at application.LoginModel.isLogin(LoginModel.java:47)
    at application.LoginController.Login(LoginController. java:37)
    ... 58 more
    Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at javafx.fxml.FXMLLoader$MethodHandler.invoke(Unknow n Source)
    at javafx.fxml.FXMLLoader$ControllerMethodEventHandle r.handle(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler.dispatc hBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventDispatcher.disp atchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEventImpl(Unkno wn Source)
    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
    at javafx.event.Event.fireEvent(Unknown Source)
    at javafx.scene.Node.fireEvent(Unknown Source)
    at javafx.scene.control.Button.fire(Unknown Source)
    at com.sun.javafx.scene.control.behavior.ButtonBehavi or.mouseReleased(Unknown Source)
    at com.sun.javafx.scene.control.skin.BehaviorSkinBase $1.handle(Unknown Source)
    at com.sun.javafx.scene.control.skin.BehaviorSkinBase $1.handle(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler$NormalE ventHandlerRecord.handleBubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventHandler.dispatc hBubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.EventHandlerManager.dispatchB ubblingEvent(Unknown Source)
    at com.sun.javafx.event.CompositeEventDispatcher.disp atchBubblingEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.BasicEventDispatcher.dispatch Event(Unknown Source)
    at com.sun.javafx.event.EventDispatchChainImpl.dispat chEvent(Unknown Source)
    at com.sun.javafx.event.EventUtil.fireEventImpl(Unkno wn Source)
    at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
    at javafx.event.Event.fireEvent(Unknown Source)
    at javafx.scene.Scene$MouseHandler.process(Unknown Source)
    at javafx.scene.Scene$MouseHandler.access$1500(Unknow n Source)
    at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
    at javafx.scene.Scene$ScenePeerListener.mouseEvent(Un known Source)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler$Mo useEventNotification.run(Unknown Source)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler$Mo useEventNotification.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler.la mbda$handleMouseEvent$355(Unknown Source)
    at com.sun.javafx.tk.quantum.QuantumToolkit.runWithou tRenderLock(Unknown Source)
    at com.sun.javafx.tk.quantum.GlassViewEventHandler.ha ndleMouseEvent(Unknown Source)
    at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
    at com.sun.glass.ui.View.notifyMouse(Unknown Source)
    at com.sun.glass.ui.win.WinApplication._runLoop(Nativ e Method)
    at com.sun.glass.ui.win.WinApplication.lambda$null$14 9(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.reflect.misc.Trampoline.invoke(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
    ... 49 more
    Caused by: java.lang.NullPointerException
    at application.LoginModel.isLogin(LoginModel.java:47)
    at application.LoginController.Login(LoginController. java:37)
    ... 58 more

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: New in JavaFx and got error

    The important part is this:

    Caused by: java.lang.NullPointerException
    at application.LoginModel.isLogin(LoginModel.java:47)
    at application.LoginController.Login(LoginController. java:37)

    Presumably that is your code, so something on line 47 of LoginModel is null and you are attempting to access a variable or execute a method on it.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. JavaFX
    By bodylojohn in forum New To Java
    Replies: 1
    Last Post: 02-14-2014, 06:11 PM
  2. Need Help with JavaFX
    By incredibleX in forum New To Java
    Replies: 4
    Last Post: 01-22-2014, 05:07 PM
  3. JavaFX Book | Learn JavaFX More In Depth
    By SnakeDoc in forum JavaFX
    Replies: 0
    Last Post: 05-17-2013, 11:10 PM
  4. Help with javaFX?!
    By JavaNoob!1 in forum JavaFX
    Replies: 7
    Last Post: 07-18-2012, 10:56 PM
  5. JavaFX Script and JavaFX Mobile
    By levent in forum Java Software
    Replies: 1
    Last Post: 01-27-2010, 04:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •