Forum Discussion

Thorsten_Boger's avatar
Thorsten_Boger
Occasional Contributor
15 years ago

screen refresh issue in GUI

I am using SoapUI Pro 3.0.1 (in the version "soapUI Pro 3.0.1 Binary zip for Windows (No JRE)" from the eviware download page) together with JAVA jdk1.6.0_17 (java.runtime.version=1.6.0_17-b04) on WIN XP SP2 and when opening multiple tabs/windows in the display pane and switching between these windows (or moving them around) it displays an overlay of different windows, see attached screen shots. It looks like the screen does not get refreshed properly on these actions.
Usually it helps to switch in full screen mode to another program and then switch back to SoapUI, but only temporarily until you work with the different windows in the display pane again...

I had the same issue before with the freeware version (2.5 as well as 3.0.1) and also with the installable version of SoapUI. A colleague experienced the same and recommended to use the zip package with JAVA version of at least 1.6.16 where it worked for him. As it still fails on my system I suppose it might be related to my general PC setup - I guess this will be really hard to track down but any hints would be very much appreciated 

Dieter Meierhofer
ICW AG

8 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    please try changing to the Native Look and Feel in the global Preferences \ UI Settings.. does that help?

    Alternatively you can switch to the Tabbed Desktop (in the same preferences tab)

    regards,

    /Ole
    eviware.com
  • Thorsten_Boger's avatar
    Thorsten_Boger
    Occasional Contributor
    Hi,

    no luck with any of the various options, sooner or later I always get the refresh problem, it just looks like the probability increases with the number of windows opened, but there is no reproducible pattern when the issue occurs...

    BTW. the java log window that opens first when starting SoapUI shows some errors even before doing anything manually, like
    java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: no sljava in java.li
    brary.path
            at com.teamdev.xpcom.Xpcom.initialize(SourceFile:180)
            at com.teamdev.xpcom.Xpcom.initialize(SourceFile:84)
            at com.eviware.soapui.support.components.BrowserComponent.initialize(Bro
    wserComponent.java:122)
            at com.eviware.soapui.SoapUIPro.main(SourceFile:220)
    Caused by: java.lang.UnsatisfiedLinkError: no sljava in java.library.path
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1689)
            at java.lang.Runtime.loadLibrary0(Runtime.java:823)
            at java.lang.System.loadLibrary(System.java:1028)
            at com.actividentity.sso.javasso.SSOLoginScriptRunner.(SSOLoginS
    criptRunner.java:841)
            at com.actividentity.sso.javasso.ConsoleLogger.(Logger.java:54)
            at com.actividentity.sso.javasso.Logger.(Logger.java:73)
            at com.actividentity.sso.javasso.awt_swing.JavaSSOHook.(JavaSSOHoo
    k.java:32)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)

    or:
    log4j:WARN No appenders could be found for logger (com.jniwrapper.DefaultLibrary
    Loader).
    log4j:WARN Please initialize the log4j system properly.
    Configuring log4j from [C:\Program Files\eviware\soapUI-pro-3.0.1\bin\soapui-log
    4j.xml]

    or:
    Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Message
    loop is not initialized. Please call initAWT() or initSWT() first
            at com.teamdev.xpcom.impl.F.h(SourceFile:28)
            at com.teamdev.xpcom.Xpcom.isEventDispatchThread(SourceFile:672)
            at com.teamdev.jxbrowser.impl.q.(SourceFile:43)
            at com.teamdev.jxbrowser.impl.u.a(SourceFile:6)
            at com.teamdev.jxbrowser.WebBrowserFactory.createBrowser(SourceFile:39)
            at com.eviware.soapui.support.components.BrowserComponent.initBrowser(Br
    owserComponent.java:237)
            at com.eviware.soapui.support.components.BrowserComponent$1.run(BrowserC
    omponent.java:173)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
    ad.java:269)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
    java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:174)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

            at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    -> looks like the logging system doesn't work properly..

    Cheers, Dieter
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    ok.. what OS are you running on? could you try adding -Dsoapui.jxbrowser.disable=true to the command-line or .vmoptions file?

    regards,

    /Ole
    eviware.com
  • Thorsten_Boger's avatar
    Thorsten_Boger
    Occasional Contributor
    Hi,

    if I use this JAVA option in the sopui-pro.bat:
    set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.jxbrowser.disable="true"
    then the program hangs after the 
    java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: no sljava in java.library.path 
    error, i.e. the SoapUI window doesn't come up at all :-(

    I am running WIN XP SP2.

    THX, Dieter
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    don't put quotes around the true, it should be just

    -Dsoapui.jxbrowser.disable=true

    ..

    any difference?

    regards!

    /Ole
    eviware.com
  • Thorsten_Boger's avatar
    Thorsten_Boger
    Occasional Contributor
    Hi,

    no the quotation marks don't make any difference - and actually I am not surprised because the .bat file per default comes with this line:
    rem uncomment to disable browser component
    rem    set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.jxbrowser.disable="true"
    i.e. with the quotation marks.

    And I am having in parallel a standard (free) SoapUI 3.0.1 version on my PC which starts with these settings in the .bat file:
    set JAVA_OPTS=-Xms128m -Xmx384m -Dsoapui.properties=soapui.properties "-Dsoapui.home=%SOAPUI_HOME%\"

    if "%SOAPUI_HOME%" == "" goto START
        set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.libraries="%SOAPUI_HOME%ext"
        set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.listeners="%SOAPUI_HOME%listeners"
        set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.actions="%SOAPUI_HOME%actions"
    set JAVA_OPTS=%JAVA_OPTS% -Djava.library.path="%SOAPUI_HOME%\"
    set JAVA_OPTS=%JAVA_OPTS% -Dwsi.dir="%SOAPUI_HOME%..\wsi-test-tools"
        set JAVA_OPTS=%JAVA_OPTS% -DGRE_HOME="%SOAPUI_HOME%..\xulrunner-windows"
    rem uncomment to disable browser component
        set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.jxbrowser.disable="true"

    The startup log contains just this:
    Configuring log4j from [C:\Program Files\eviware\soapui-3.0.1\bin\soapui-log4j.x
    ml]
    11:52:35,188 INFO  [SoapUI] Added [file:/C:/Program%20Files/eviware/soapui-3.0.1
    /bin/ext/Icw_Ehi_Qa_GroovyTestLibrary.jar] to classpath
    Failed to create icon: java.lang.UnsatisfiedLinkError: no sljava in java.library
    .path
    11:52:36,251 INFO  [DefaultSoapUICore] initialized soapui-settings from [C:\Docu
    ments and Settings\i000731\soapui-settings.xml]
    11:52:37,313 INFO  [WorkspaceImpl] Loading workspace from [C:\Documents and Sett
    ings\i000731\default-soapui-workspace.xml]

    ...which also contains that sljava UnsatisfiedLinkError entry but it is a bit different from the error in case of SoapUI Pro:
    12:00:37,054 INFO  [DefaultSoapUICore] initialized soapui-settings from [C:\Docu
    ments and Settings\i000731\soapui-settings.xml]
    12:00:37,835 INFO  [SoapUIProGroovyScriptEngineFactory] Setting Script Library t
    o [C:\Program Files\eviware\soapUI-pro-3.0.1\bin\scripts]
    12:00:37,835 INFO  [DefaultSoapUICore] Adding listeners from [C:\Program Files\e
    viware\soapui-pro-3.0.1\bin\listeners\demo-listeners.xml]
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no sljava in java.lib
    rary.path
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1689)
            at java.lang.Runtime.loadLibrary0(Runtime.java:823)
            at java.lang.System.loadLibrary(System.java:1028)
            at com.actividentity.sso.javasso.SSOLoginScriptRunner.(SSOLoginS
    criptRunner.java:841)
            at com.actividentity.sso.javasso.ConsoleLogger.(Logger.java:54)
            at com.actividentity.sso.javasso.Logger.(Logger.java:73)
            at com.actividentity.sso.javasso.awt_swing.JavaSSOHook.(JavaSSOHoo
    k.java:32)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
    orAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
    onstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
            at java.lang.Class.newInstance0(Class.java:355)
            at java.lang.Class.newInstance(Class.java:308)
            at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:771)
            at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:859)
            at sun.java2d.d3d.D3DGraphicsDevice.(D3DGraphicsDevice.java:47)
            at sun.awt.Win32GraphicsEnvironment.makeScreenDevice(Win32GraphicsEnviro
    nment.java:319)
            at sun.java2d.SunGraphicsEnvironment.getScreenDevices(SunGraphicsEnviron
    ment.java:349)
            at sun.awt.Win32GraphicsEnvironment.getDefaultScreenDevice(Win32Graphics
    Environment.java:84)
            at java.awt.Window.init(Window.java:379)
            at java.awt.Window.(Window.java:432)
            at java.awt.Frame.(Frame.java:403)
            at javax.swing.JFrame.(JFrame.java:202)
            at com.eviware.soapui.SoapUI.startSoapUI(SoapUI.java:664)
            at com.eviware.soapui.SoapUIPro.b(SourceFile:261)
            at com.eviware.soapui.SoapUIPro.a(SourceFile:187)
            at com.eviware.soapui.SoapUIPro$SoapUIProRunner.run(SourceFile:1110)
            at com.eviware.soapui.SoapUIPro.main(SourceFile:228)

    -> i.e. with basically the same .bat file options the free version starts without problems but the Pro version doesn't start at all using this jxbrowser parameter!
    And I suppose it is related to this sljava issue in the log...

    Cheers, Dieter
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Dieter,

    ok.. this actually looks more like a JRE-related issue.. which JRE are you using with these two installations?


    You might try the nightly build at http://www.eviware.com/nightly-builds which fixes the bat files in this regard (ie to use the bundled JRE)


    regards!

    /Ole
    eviware.com
  • Thorsten_Boger's avatar
    Thorsten_Boger
    Occasional Contributor
    Hi,

    I'm using
    JAVA 1.6.0_17 (java.runtime.version=1.6.0_17-b04)

    Regarding the nightly build: are you saying I should try out
    http://www.eviware.com/nightly-builds/s ... ne-bin.zip
    ?

    Doing so indeed the startup with
    rem uncomment to disable browser component
        set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.jxbrowser.disable="true"

    works now without problems, i.e. this seems a bug in 3.0.1

    Cheers, Dieter