question

takabanana avatar image
takabanana asked ericnute edited

iTest 4.1.3 - iTestRT - wrong ELF class: ELFCLASS64

I am using iTest 4.1.3 on Ubuntu 11.04, trying to run a Test Case via iTestRT on the command-line.

I am getting the following error - how can I resolve this?  

 

Sev.     Origin     Session  Step  Index  Procedure  Message

============================================================

Info     execution                        main       Execution started

Info     execution                        main       Testbed used in execution: project://my_project/topologies/LWR_6.1.500_gateway.tbml

Exception in thread "DisplayServer" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:

        /home/iTest/Fanfare/iTest_4.1/iTestRT/configuration/org.eclipse.osgi/bundles/385/1/.cp/libswt-pi-gtk-3655.so: libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64

        no swt-pi-gtk in java.library.path

        /tmp/swtlib-32/libswt-pi-gtk-3655.so: libgtk-x11-2.0.so.0: wrong ELF class: ELFCLASS64

        Can't load library: /tmp/swtlib-32/libswt-pi-gtk.so


        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:267)

        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:174)

        at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)

        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)

        at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)

        at org.eclipse.swt.widgets.Display.<clinit>(Display.java:132)

        at com.fnfr.svt.applications.web.ui.rt.DisplayServer$1.run(DisplayServer.java:27)

        at java.lang.Thread.run(Unknown Source)

 

 

iTestiTest Runtime (itestrt)error message
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
lakshminarayana avatar image
lakshminarayana answered lakshminarayana posted

I think you are using Ubuntu 64-bit OS. As iTest is a 32-bit application, install 32-bit libraries and then try to run the test case.

 

Please refer the below link and install libraries.

 

http://www.linuxquestions.org/questions/linux-software-2/error-while-loading-shared-libraries-libgtkglextmm-x11-1-2-so-0-a-723020/



Thanks,

Lakshmi

4 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

takabanana avatar image takabanana commented ·

Hrm - doing the following seemed to do the trick for this:

 

sudo apt-get install ia32-libs ia32-libs-gtk

 

on the otherhand, now I am stuck at:

Exception in thread "DisplayServer" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]

 

I am trying to run iTestRT on a headless server running Ubuntu 11.04 64-bit - does this mean I have to somehow attach displays to it, or is there a way I can add "virtual" displays?

Looks like I need to get xvfb installed and configured to get iTestRT to work on a headless system?

 

0 Likes 0 ·
msandeep avatar image msandeep takabanana commented ·

Please provide the below information:

 

gtk version

JRE version

 

This type of SWT error is shown mostly during incompactible gtk or JRE version.

 

Please try with gtk higher than 2.8 and JRE 1.6.

 

Hope this will help you

0 Likes 0 ·
takabanana avatar image takabanana msandeep commented ·

Sorry - I have been swamped and was out of town for most of the past month.  Here's the info I can extract from our Ubuntu 11.04 "headless" system.

===========

libgtk-sharp-beans-cil                2.14.1-1
libgtk-vnc-1.0-0                      0.4.3-0ubuntu3
libgtk2-perl                          2:1.223-1
libgtk2.0-0                           2.24.4-0ubuntu2
libgtk2.0-bin                         2.24.4-0ubuntu2
libgtk2.0-cil                         2.12.10-1ubuntu1 
libgtk2.0-common                      2.24.4-0ubuntu2
libgtkhtml-editor-common              1:3.32.2-0ubuntu1
libgtkhtml-editor0                    1:3.32.2-0ubuntu1 
libgtkhtml3.14-19                     1:3.32.2-0ubuntu1
libgtkmm-2.4-1c2a                     1:2.24.0-0ubuntu1
libgtksourceview2.0-0                 2.10.5-0ubuntu3
libgtksourceview2.0-common            2.10.5-0ubuntu3
libgtkspell0                          2.0.16-1

===============================

java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (6b22-1.10.2-0ubuntu1~11.04.1)
OpenJDK Server VM (build 20.0-b11, mixed mode)
=============================

I'm still getting this error on execution of our Test Case:

 

Exception in thread "DisplayServer" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
        at org.eclipse.swt.SWT.error(SWT.java:4109)

        at org.eclipse.swt.widgets.Display.createDisplay(Display.java:902)

        at org.eclipse.swt.widgets.Display.create(Display.java:890)

        at org.eclipse.swt.graphics.Device.<init>(Device.java:154)

        at org.eclipse.swt.widgets.Display.<init>(Display.java:499)

        at org.eclipse.swt.widgets.Display.<init>(Display.java:490)

        at com.fnfr.svt.applications.web.ui.rt.DisplayServer$1.run(DisplayServer.java:27)

        at java.lang.Thread.run(Unknown Source)

 

 

0 Likes 0 ·
takabanana avatar image takabanana takabanana commented ·

FYI - since my last reply from a few weeks ago, we have switched to a non-64-bit version of Ubuntu 11.04, just to simplify things.

I just realized that the error we are getting now is slightly different than before.  

 

SWTError: No more handles [gtk_init_check() failed]

 

Any help would be appreciated - thanks!

 

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.