简体   繁体   English

线程“AWT-EventQueue-0”中的java异常

[英]java exception in thread “AWT-EventQueue-0”

I have recently installed JDK 1.6 update 43 on my machine .Since then, whenever I try to run the event handling programs, I encounter a problem, which says Exception in thread "AWT-EventQueue-0" 我最近在我的机器上安装了JDK 1.6更新43.从那时起,每当我尝试运行事件处理程序时,我遇到一个问题,它在线程“AWT-EventQueue-0”中表示异常

Which thread does it points to? 它指向哪个线程?

That's the AWT Event Dispatch Thread (EDT). 那是AWT事件调度线程(EDT)。 Code involving AWT or Swing should be run on that thread. 涉及AWT或Swing的代码应该在该线程上运行。 This is the thread you'll be on when in you main (running in the "main" thread) you typically call java.awt.EventQueue.invokeLater . 这是您在main (在“主”线程中运行)时通常调用java.awt.EventQueue.invokeLater线程。

Look at your stacktrace. 看看你的堆栈跟踪。 At some point you will find some entry which is from your own code. 在某些时候,您会找到一些来自您自己的代码的条目。 Maybe a null pointer exception or similar. 可能是空指针异常或类似。 This is where you must look at. 这是你必须要看的地方。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 线程“ AWT-EventQueue-0”中的异常(Java) - Exception in thread “AWT-EventQueue-0” (Java) 线程“AWT-EventQueue-0”中的异常? - Exception in thread “AWT-EventQueue-0”? 线程“ AWT-EventQueue-0”中的异常java.awt.HeadlessException - Exception in thread “AWT-EventQueue-0” java.awt.HeadlessException Java:线程“ AWT-EventQueue-0”中的异常java.lang.NullPointerException - Java: Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException Java-线程“ AWT-EventQueue-0”中的异常java.lang.NullPointerException - Java - Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException 线程“ AWT-EventQueue-0”中的Java异常java.lang.ArrayIndexOutOfBoundsException:1 - Java Exception in thread “AWT-EventQueue-0” java.lang.ArrayIndexOutOfBoundsException: 1 线程“ AWT-EventQueue-0”中的java异常java.lang.ClassCastException - java Exception in thread “AWT-EventQueue-0” java.lang.ClassCastException 线程“ AWT-EventQueue-0”中的java异常java.lang.IllegalArgumentException - java exception in thread “AWT-EventQueue-0” java.lang.IllegalArgumentException 线程““ AWT-EventQueue-0””中的Java异常java.lang.NullPointerException - Java Exception in thread '“AWT-EventQueue-0”' java.lang.NullPointerException Java:线程“ AWT-EventQueue-0”中的异常java.util.ConcurrentModificationException - Java: Exception in thread “AWT-EventQueue-0” java.util.ConcurrentModificationException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM