Welcome Guest! Log in
Stambia versions 2.x, 3.x, S17, S18, S19 and S20 are reaching End of Support January, 15th, 2024. Please consider upgrading to the supported Semarchy xDI versions. See Global Policy Support and the Semarchy Documentation.

The Stambia User Community is moving to Semarchy! All the applicable resources have already been moved or are currently being moved to their new location. Read more…

Error "Java.lang.UnsatisfiedLinkError: Could not load SWT library"

    Symptom

    When you try to start the Stambia Designer and the following error is thrown:

    java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
        /home/ennaji/Téléchargements/stambiaDesigner_S19.0.15_20190125_092334/stambia/configuration/org.eclipse.osgi/bundles/358/1/.cp/libswt-pi-gtk-4234.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
        no swt-pi-gtk in java.library.path
        Can't load library: /root/.swt/lib/linux/x86_64/libswt-pi-gtk-4234.so
        Can't load library: /root/.swt/lib/linux/x86_64/libswt-pi-gtk.so
        /root/.swt/lib/linux/x86_64/libswt-pi-gtk-4234.so: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:331)
        at org.eclipse.swt.internal.Library.loadLibrary(Library.java:240)
        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:133)
        at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:653)
        at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
        at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:154)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:96)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

    Solution

    GTK is a multi-platform toolkit for creating graphical user interfaces.

    The error indicates that libgtk-x11-2.0.so.0 cannot be found. Please make sure that you have GTK libraries installed on your machine.

    For example, in Ubuntu you can find a package providing libgtk-x11-2.0.so.0 with the apt-file command:

     
      > apt-file find libgtk-x11-2.0.so.0
    libgtk2.0-0: /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
     
    If the GTK libraries can't be found, please use this command:
     

    sudo apt-get install libgtk2.0-dev

    User interface looks tiny on high resolution screens

      Symptom

      When working with high resolution screens, the Designer's user interface looks tiny and/or incomplete.

      Solution

      • Change Windows' SideBySide behavior in the Registry:
        • Open regedit as an Administrator
        • Select the key: HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > SideBySide
        • Right click in the righ pane and choose NEW > DWORD (32 bit) Value
        • Give it the name "PreferExternalManifest"
        • Double click PreferExternalManifest and give it Value 1 as Decimal.
        • Close regedit
        • Now windows will detect specific "Manifest" files when launching programs
      • Create a Manifest file for Stambia DI Designer
        • Create a Text file named "stambia.exe.manifest" in the Designer's directory
        • File content:
        <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
        <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
            <description>stambia</description>
            <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
                <security>
                    <requestedPrivileges>
                        <requestedExecutionLevel xmlns:ms_asmv3="urn:schemas-microsoft-com:asm.v3"
                                       level="asInvoker"
                                       ms_asmv3:uiAccess="false">
                        </requestedExecutionLevel>
                    </requestedPrivileges>
                </security>
            </trustInfo>
            <asmv3:application>
                <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
                    <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
                </asmv3:windowsSettings>
            </asmv3:application>
        </assembly>
      • Restart the Designer

      Making SVN Subclipse to ask again for credentials

        Symptom

        You installed the subclipse plugin in the Designer to manager your SVN repositories.

        You added your repositories and checked the box to save the user / password when the credentials where asked.

        So now you don't have to enter the logins again at each operation.

        The problem is that now you want to change the credentials and do not find any menu or option to change it.

         

        Solution

        As explained in the sublipse documentation that you can find below, the solution is, if you are using the SVNKit client (default) to delete the following file:

        <stambia_installation_dir>/configuration/org.eclipse.core.runtime/.keyring

        The credentials of subclipse are stored in this file, so after deleting it and restarting the Designer, they will be asked again and a new file will be created.

         

        Here is the link to the subclipse documentation:

        http://subclipse.tigris.org/wiki/PluginFAQ#head-d507c29676491f4419997a76735feb6ef0aa8cf8

         

        Deleting this file will remove also the passwords for any additional plugins that is using it to store credentials

         

         

        Cannot open a workspace

          Symptom

          Upon opening a workspace, the loading screen hangs or disappears completely. Either way, the workspace cannot be opened.

          Workspace Not Loading

          Solution

          This kind of error tends to happen when the designer is closed abruptly. To open a workspace that is affected by this behaviour you may need to delete the files cache.xml and workbench.xmi.

          Below the paths to the files that need to be deleted:

          your_workspace_dir\.metadata\.plugins\com.indy.emf.uri\cache.xml

          your_workspace_dir\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi (note: deleting this file will reset some Designer settings to defaults, such as the Perspectives and Views layouts).

          If the above solution does not resolve your problem, do not hesitate to send your case to the Stambia support team, explaining what you have already tried and attaching the log file that you can find in: your_workspace_dir\.metadata\.log

          Error "NO_TOKEN_AVAILABLE" when activating a license

            Symptom

            When trying to activate / apply the Stambia License in the Designer, the following error is thrown:

            NO_TOKEN_AVAILABLE

             

            Solution

            This error might come from multiple causes:

            1. All the licenses available for your company are already in use, so as indicated, no token is available at the moment.

            -> The solution in this case is to wait for a license to be available or to check with people using it.

             

            2. The machine where the Designer is started is not registered in the license server.

            Depending on the license type used by your company, the license might be linked to the MAC address of the machine using the Designer.

            -> The solution in this case is to check with the support, or with the administrator of your license server, if the MAC address of the machine is allowed.

             

            3. The machine executes 2 or more Designers at the same time AND a network change occured at some point

            For example you started two instances of the Designer, and switched from Wifi to Ethernet or the other way.

            -> Solution to apply in each opened Designer:

            - Change the last part of the license URL in the popup. For example https://yourserver:yourport/DUMMY,

            - click Apply,

            - then restore the correct URL.

             

            4. You have multiple network cards in your machine, including for instance virtual cards, bluetooth cards, etc.

            There is a known Java bug that appear in some Java versions that avoids us to retrieve the correct list of MAC Addresses of the machine.

            Therefore, a wrong list is sent to the license server, that so doesn't recognize the machine as authorized.

            Here is the Java bug:

            http://bugs.java.com/view_bug.do?bug_id=8021372

            The solution in this case is:

            -> Upgrade Java to a version where this bug is fixed / not happening

            -> Or de-activate all the other network cards to have only the one authorized by the license server. Then, restart the Designer, and apply the license.

             

            Knowledge Base

            Suggest a new Article!