Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Internal Error: A SWT error has occurred

When I attempt to go to Feeds: My Teams in <project> I get the following:

An SWT error has occurred.

You are recommended to exit the workbench.
Subsequent errors may happen and may terminate the workbench without
warning.
See the .log file for more details


I don't know where to find "the .log file".

There is also a dialog box stating:


Unhandled event loop exception
org.eclipse.swt.SWTError


Details say:


Unhandled event loop exception
No more handles [MOZILLA_FIVE_HOME='/usr/lib/firefox-3.0.11'] (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3452 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file)


Note I had set MOZILLA_FIVE_HOME to /usr/lib/firefox-3.0.1. If I don't it appears to be set to /usr/lib/xulrunner-addons but aside from that I get the same error.

Note I get this with other things in RTC as well...

0 votes



9 answers

Permanent link
When I attempt to go to Feeds: My Teams in <project> I get the following:

An SWT error has occurred.

You are recommended to exit the workbench.
Subsequent errors may happen and may terminate the workbench without
warning.
See the .log file for more details


I don't know where to find "the .log file".

There is also a dialog box stating:


Unhandled event loop exception
org.eclipse.swt.SWTError


Details say:


Unhandled event loop exception
No more handles [MOZILLA_FIVE_HOME='/usr/lib/firefox-3.0.11'] (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3452 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file)


Note I had set MOZILLA_FIVE_HOME to /usr/lib/firefox-3.0.1. If I don't it appears to be set to /usr/lib/xulrunner-addons but aside from that I get the same error.

Note I get this with other things in RTC as well...


Looks like you are on Linux - what flavour?. There was a thread some time ago where it was suggested that you increase the number of handles available in the system, and your error message about "No more handles" suggests this *might* be a similar problem. Someone also had a problem with the JBE because of their JVM leaking handles - please check you are running either the IBM JVM shipped with RTC, or the right version of the Sun JVM.

anthony

0 votes


Permanent link
Hello defaria,

I think I remember a colleague having a similar or the same issue with Ubuntu.
In that case the issue was really a missing library or a wrong one.
So the out of handle might be an issue because something in SWT went wrong.
Unfortunaltely I can't find the solution or the exact error description anywhere.
I remember my colleague looked the issue up in the internet somewhere and
found a solution there.

Ralph

kestertowrote:

Looks like you are on Linux - what flavour?

Ubuntu AMD 64.

There was a thread some time ago where it was suggested that you

increase the number of handles available in the system, and your
error message about "No more handles" suggests this *might*
be a similar problem. Someone also had a problem with the JBE because
of their JVM leaking handles - please check you are running either the
IBM JVM shipped with RTC, or the right version of the Sun JVM.
I don't understand. I just start RTC and wham it's out of handles?!?
How many handles does it use just starting up?!? How do I increase the
number of handles? Also, how do I check that which JVM I'm running?

0 votes


Permanent link
Looks like you are on Linux - what flavour?


Ubuntu AMD 64.

There was a thread some time ago where it was suggested that you increase the number of handles available in the system, and your error message about "No more handles" suggests this *might* be a similar problem. Someone also had a problem with the JBE because of their JVM leaking handles - please check you are running either the IBM JVM shipped with RTC, or the right version of the Sun JVM.


I don't understand. I just start RTC and wham it's out of handles?!? How many handles does it use just starting up?!? How do I increase the number of handles? Also, how do I check that which JVM I'm running?

0 votes


Permanent link
On Tue, 23 Jun 2009 05:07:52 +0000, defaria wrote:

Details say:


Unhandled event loop exception
No more handles
(java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3452 or
swt-mozilla-gtk in swt.library.path, java.library.path or the jar file)


Note I had set MOZILLA_FIVE_HOME to /usr/lib/firefox-3.0.1. If I don't
it appears to be set to /usr/lib/xulrunner-addons but aside from that I
get the same error.

Note I get this with other things in RTC as well...


Hello.

"NO MORE HANDLES" is the generic error message that SWT prints out for
*any* error that occurs when a call to the native operating system fails.
In practice, the error almost never has anything to do with handles. So I
would strongly advise against spending any time worrying about the number
of handles on your system.

Based on the details that show up in the error message, it looks like SWT
is failing to load the libraries it needs for the embedded web browser it
wants to use.

On Ubuntu, I believe there are two steps I had to perform to get the
browser working:
1. Set MOZILLA_FIVE_HOME, which you appear to have done.
2. Install xulrunner. On my Intrepid (Ubuntu 8.10) install, I have three
xulrunner packages installed: xulrunner, xulrunner-1.9 and xulrunner-1.9-
gnome-support

Hope that helps.

--
Jared Burns
Jazz Process Team

0 votes


Permanent link
"NO MORE HANDLES" is the generic error message that SWT prints out for *any* error that occurs when a call to the native operating system fails.


My initial reaction to the above statement was "That's just wrong". My second reaction was "... and it should be fixed!".

In practice, the error almost never has anything to do with handles. So I would strongly advise against spending any time worrying about the number of handles on your system.


Honestly that was my feeling as well...

Based on the details that show up in the error message, it looks like SWT is failing to load the libraries it needs for the embedded web browser it wants to use.

On Ubuntu, I believe there are two steps I had to perform to get the
browser working:
1. Set MOZILLA_FIVE_HOME, which you appear to have done.
2. Install xulrunner. On my Intrepid (Ubuntu 8.10) install, I have three
xulrunner packages installed: xulrunner, xulrunner-1.9 and xulrunner-1.9-
gnome-support


Thanks. I'll look around when I get home.

0 votes


Permanent link
2. Install xulrunner. On my Intrepid (Ubuntu 8.10) install, I have three xulrunner packages installed: xulrunner, xulrunner-1.9 and xulrunner-1.9-gnome-support


Thanks. I'll look around when I get home.

I had xulrunner-1.9 and xulrunner-1.9-gnome-support already installed. I seemed to have lacked xulrunner. Installed xulrunner... no change in behavior... Marked the 3 packages for reinstallation, no change.

Note, if xulrunner is really required for proper execution then shouldn't it be marked as a dependency?

0 votes


Permanent link
defaria wrote:
defariawrote:
2. Install xulrunner. On my Intrepid
(Ubuntu 8.10) install, I have three xulrunner packages installed:
xulrunner, xulrunner-1.9 and xulrunner-1.9-gnome-support

Thanks. I'll look around when I get home.


I had xulrunner-1.9 and xulrunner-1.9-gnome-support already installed.
I seemed to have lacked xulrunner. Installed xulrunner... no change in
behavior... Marked the 3 packages for reinstallation, no change.

Hi,

The official Technote on the Eclipse xulrunner issue on linux is here:
http://www-01.ibm.com/support/docview.wss?rs=3488&context=SSCP65&dc=DB560&dc=DB520&uid=swg21313467&loc=en_US&cs=UTF-8&lang=en&rss=ct3488rational

I think there's a good chance that the steps documented there for
resolving the problem will help.

Thanks,
Craig Chaney
Jazz Server team



Note, if xulrunner is really required for proper execution then
shouldn't it be marked as a dependency?

0 votes


Permanent link
Interesting. That seems to have worked. So are we saying here that xulrunner 1.9 is incompatible with RTC 2.0?

0 votes


Permanent link
Interesting. That seems to have worked. So are we saying here that xulrunner 1.9 is incompatible with RTC 2.0?


Hi

Well, from the link, and following it through to the Eclipse defect, it sounds like Eclipse has/had a problem with 1.9 and this pops up on your RTC installation tool.

Wondering aloud - the patch for Eclipse mentioned in the Eclipse defect may prevent the problem with RTC too. Not tried this myself, perhaps someone else has.

anthony

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jun 23 '09, 1:02 a.m.

Question was seen: 18,309 times

Last updated: Jun 23 '09, 1:02 a.m.

Confirmation Cancel Confirm