File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Mac OS and the fly likes Swing Applications hangs with some errorr Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "Swing Applications hangs with some errorr" Watch "Swing Applications hangs with some errorr" New topic

Swing Applications hangs with some errorr

jaibhim max

Joined: Nov 15, 2010
Posts: 21
Hi All,

I have created a simple swing application, that has 3 textfields, and 2 buttons. When I try to run the code, following error comes and GUI hangs.

I have googled through above error message and got to know that if I provide"-XstartOnFirstThread" as a VM argument then everything will work fine. But noting is fruitful in my case.

Please help me out since its too urgent.

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

You say you've created a simple Swing application, but the error message says otherwise:

Setting timeout for SWT to 0.100000

So is it Swing or is it SWT? Or perhaps it's some weird combination of both, and there's why you're hanging?

[Jess in Action][AskingGoodQuestions]
Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3479

The error message tells you that you are sending autorelease message to an object but you didn't create an auto released pool.
Which I think it is strange since this the heart of Cocoa programming and you said you are doing Java programming.
Are you creating Swing, SWT or Cocoa application?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Andy Duplain, your post was split to a new topic in the IDEs forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Swing Applications hangs with some errorr
It's not a secret anymore!