It's all about the answers!

Ask a question

Internal Error: A SWT error has occurred


Andrew DeFaria (161151) | asked Jun 23 '09, 1:02 a.m.
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...

9 answers



permanent link
Anthony Kesterton (7.5k9180136) | answered Jun 23 '09, 4:18 a.m.
JAZZ DEVELOPER
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

permanent link
Ralph Schoon (63.4k33646) | answered Jun 23 '09, 7:49 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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?

permanent link
Andrew DeFaria (161151) | answered Jun 23 '09, 11:31 a.m.
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?

permanent link
Jared Burns (4.5k29) | answered Jun 29 '09, 9:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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

permanent link
Andrew DeFaria (161151) | answered Jun 29 '09, 4:11 p.m.
"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.

permanent link
Andrew DeFaria (161151) | answered Jun 29 '09, 10:57 p.m.
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?

permanent link
Craig Chaney (9212) | answered Jun 30 '09, 8:50 a.m.
JAZZ DEVELOPER
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?

permanent link
Andrew DeFaria (161151) | answered Jun 30 '09, 11:57 a.m.
Interesting. That seems to have worked. So are we saying here that xulrunner 1.9 is incompatible with RTC 2.0?

permanent link
Anthony Kesterton (7.5k9180136) | answered Jun 30 '09, 5:47 p.m.
JAZZ DEVELOPER
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

Your answer


Register or 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.