Last active
December 31, 2015 12:58
-
-
Save KingC100/7989416 to your computer and use it in GitHub Desktop.
画像更新されずにエラーでおちるやつ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* | |
* | |
* private void OnAction(ActionEvent event) { | |
* Image img = new Image("C:\\Users\\kiichi\\Documents\\NetBeansProjects\\FXErycton\\src\\fxerycton\\img\\133.png"); | |
* img_Own_1.setImage(img); | |
* } | |
*/ | |
xecuting $\NetBeansProjects\FXErycton\dist\run2121344766\FXErycton.jar using platform C:\Program Files\Java\jdk1.7.0_45/bin/java | |
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException | |
at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1449) | |
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:69) | |
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:217) | |
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:170) | |
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38) | |
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37) | |
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92) | |
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35) | |
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92) | |
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35) | |
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92) | |
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53) | |
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:28) | |
at javafx.event.Event.fireEvent(Event.java:171) | |
at javafx.scene.Node.fireEvent(Node.java:6867) | |
at javafx.scene.control.Button.fire(Button.java:179) | |
at com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(ButtonBehavior.java:193) | |
at com.sun.javafx.scene.control.skin.SkinBase$4.handle(SkinBase.java:336) | |
at com.sun.javafx.scene.control.skin.SkinBase$4.handle(SkinBase.java:329) | |
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:64) | |
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:217) | |
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:170) | |
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38) | |
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37) | |
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92) | |
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35) | |
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92) | |
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35) | |
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92) | |
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35) | |
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92) | |
at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53) | |
at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33) | |
at javafx.event.Event.fireEvent(Event.java:171) | |
at javafx.scene.Scene$MouseHandler.process(Scene.java:3311) | |
at javafx.scene.Scene$MouseHandler.process(Scene.java:3151) | |
at javafx.scene.Scene$MouseHandler.access$1900(Scene.java:3106) | |
at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1563) | |
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2248) | |
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:250) | |
at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:173) | |
at java.security.AccessController.doPrivileged(Native Method) | |
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:292) | |
at com.sun.glass.ui.View.handleMouseEvent(View.java:530) | |
at com.sun.glass.ui.View.notifyMouse(View.java:924) | |
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:744) | |
Caused by: java.lang.reflect.InvocationTargetException | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75) | |
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279) | |
at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(FXMLLoader.java:1444) | |
... 48 more | |
Caused by: java.lang.IllegalArgumentException: Invalid URL: unknown protocol: c | |
at javafx.scene.image.Image.validateUrl(Image.java:993) | |
at javafx.scene.image.Image.<init>(Image.java:538) | |
at fxerycton.FXEryctonController.OnAction(FXEryctonController.java:98) | |
... 58 more | |
Caused by: java.net.MalformedURLException: unknown protocol: c | |
at java.net.URL.<init>(URL.java:592) | |
at java.net.URL.<init>(URL.java:482) | |
at java.net.URL.<init>(URL.java:431) | |
at javafx.scene.image.Image.validateUrl(Image.java:988) | |
... 60 more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment