The moose likes I/O and Streams and the fly likes Troubleshoot for Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply Bookmark "Troubleshoot for Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException" Watch "Troubleshoot for Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException" New topic
Author

Troubleshoot for Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException

Aaron Lee
Greenhorn

Joined: Feb 10, 2012
Posts: 1
Hi everyone..need help with decoding the error on
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: <any>
run:
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: <any>
at HelloWorldWIndMain.initComponents(HelloWorldWIndMain.java:44)
at HelloWorldWIndMain.<init>(HelloWorldWIndMain.java:24)
at HelloWorldWIndMain$1.run(HelloWorldWIndMain.java:87)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:638)
at java.awt.EventQueue$1.run(EventQueue.java:636)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)




This are the sectors with the error
layout.setHorizontalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(worldWindowGLCanvas1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 415, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
.add(worldWindowGLCanvas1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)
);

pack();


and


public void run() {
new HelloWorldWIndMain().setVisible(true);
}
});
}





Kindly help..Thanks
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 1900

That message is a runtime error which usually happens because the compiled code is broken some how. Try to compile the code from scratch in a different compiler (such as Eclipse or javac) and see what errors you get.


Steve
 
 
subject: Troubleshoot for Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException
 
Threads others viewed
how to build swing applications with bidirectional support
how to create Jcombobox with fixed width?
NetBeans manually added component does not appear
Applets Vs. Netbeans
Resizing window erases content of Graphics2d
developer file tools