我在使用java.lang.reflect.InvocationTargetException时遇到问题 [英] I have problem with java.lang.reflect.InvocationTargetException

查看:127
本文介绍了我在使用java.lang.reflect.InvocationTargetException时遇到问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是错误我不太擅长编程,但是我尝试学习.我正在学习如何使用javaFx.在这种情况下,我要实现4个操作:加,减,乘和除.当我只使用一种对我有用的工具时,我是Starck溢出社区的新手.如有疑问,我会经常检查.但是我没有找到解决问题的方法.如果您支持我,这将非常有帮助. 如果您喜欢我共享文件夹.他们向我解释这将是非常有帮助的. 我的英语也不好,但是我正在学习

it's the error I'm not good at programming but I try to learn. I am learning how to use javaFx. In this case I want to implement 4 operations: add, subtract, multiply and divide. When I was using only one it worked for me I am new to the Starck overflow community. I always check when I have doubts. But I did not find a solution to my problem. It would be very helpful if you support me. If you like me to share the folder. They explain to me how it would be very helpful. Also my english's not good but i'm learning to

推荐答案

请参阅有关InvocationTargetException的帖子

请参阅有关RuntimeException的Oracle文档

在javafx.fxml.LoadException上查看此帖子

**如评论中所述, 堆栈跟踪 ,红色的错误文本会告诉您问题之一:**错误解决onAction ='$ handleResta',或者事件处理程序不在命名空间中,或者脚本中存在错误".

**As noted in the comments, the stack trace, in your case the red error text, tells you one of the problems: ** "Error resolving onAction = '$handleResta', either the event handler is not in the Namespace or there is an error in the script".

注释还要求包含错误的文件,以便更全面地帮助您;我们已经确定onAction = '#handleResta'是有问题的问题,但是直到发布此文件,我们才能知道#handleResta正在创建错误的原因:

The comments are also asking for the file which contains the error, in order to help you more fully; We've identified that onAction = '#handleResta' is a problem problem, but we can't tell what about #handleResta is creating the error until you post this file:

/C:Users/Usuario/Downloads/Proy/build/classes/mvvm/FXMLVista.fxml:14

这篇关于我在使用java.lang.reflect.InvocationTargetException时遇到问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆