Forum Discussion

bessong's avatar
13 years ago

Groovy error on command line exec unde Linux Debian

Dear mates,

I've created a loadUI script which work very well using the command line under Linux Debian :

./loadUI-cmd.sh -p /home/loadui/myScript.xml

except that during the shuting down of the test, I have this error which seems related to a missing property :

------------------------------------
TEST EXECUTION COMPLETED
FINAL RESULTS: 00:01:00 Samples: 900 Failures: 0
------------------------------------
09:12:08,660 INFO [CommandRunner] Shutting down...
09:12:09,661 ERROR [CommandRunner] An error occured when executing the script
groovy.lang.MissingPropertyException: No such property: summaryExportListener for class: Script1
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
at Script1.run(Script1.groovy:325)
at com.eviware.loadui.cmd.CommandRunner$CommandRunnable.run(CommandRunner.java:93)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Stopping Framework...


Any clue ? I've not found where I could add this property in my code :-P

Thanks a lot,
Greg Besson

9 Replies

  • dfuse's avatar
    dfuse
    Occasional Contributor
    Any updates on this? I'm getting exactly the same exception on Windows 7.
  • yavery's avatar
    yavery
    New Contributor
    Hi,

    I get the exact same error with both the 2.1.2 and 2.1.2 Pro Trial releases ...

    Anyone figured this one out yet ?

    I'm running on Mac OSX 10.8.2 ... LoadUI from the user interface is working fine but when I launch
    my test using Ant command line, I get the exact same stack dump ... It's missing summaryExportListener
    property definition. What's that property ? If I need to define it, what should I have it defined to ?

    My test is very simple, just a straight forward web request runner to google.com without any Asserts,
    without any Groovy scripting or without any soapUI runner involved.

    Should work, no ?

    Also, what's interesting is that my test run seem to have completed as in my reports folder, I can see
    my PDF report file has been produced with my results.

    Thanks,
  • This is caused by an old EventListener summaryExportListener that was used when exporting summaries to the report once it had been generated. This was rewritten to not having to use an EventListener somewhere between 2.0 and 2.1.2 and someone forgot to remove the part where it attempts to remove the listener. This is known and has been cleaned up for the upcoming 2.5 release.

    tl dr; This should in no way be affecting anything related to your own scripting or anything else for that matter. It simply clutters the command-line printouts a little and the fix has been scheduled for the next big release.

    Mikael
    SmartBear Software
  • yavery's avatar
    yavery
    New Contributor
    Indeed, it doesn't prevent my reports from being produced, but I'm running this in Ant, so my java task
    exits with a status of FAILED instead of SUCCESS, which is more problematic.

    Thanks,
  • Just to clarify what Mikael wrote: The release date of LoadUI 2.5 is currently set to March 27.
  • yavery wrote:
    Indeed, it doesn't prevent my reports from being produced, but I'm running this in Ant, so my java task
    exits with a status of FAILED instead of SUCCESS, which is more problematic.

    Thanks,


    Similar situation here. I'm using Hudson to drive tests, and with this bug, every test fails and failure emails get sent out. For now, it's all shut down.

    If it matters, running on XP.

    Any hope of a patch in a nightly build?

    Thanks,
    Mike
  • Hi!

    I can't reproduce this in LoadUI 2.5.3 (see log below) -- can any of you?

    D:\workspace\loui\loadui\loadui-installers\loadui-controller-installer\target\ma
    in>loadUI-cmd-sysjvm.bat -p c:\Users\Henrik\.loadui\project-1.xml -L5:5:5

    D:\workspace\loui\loadui\loadui-installers\loadui-controller-installer\target\ma
    in
    CommandApplication starting
    JavaFX2 bundle started!
    Configuring log4j from [D:\workspace\loui\loadui\loadui-installers\loadui-contro
    ller-installer\target\main\soapui-log4j.xml]
    11:10:41,985 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\User
    s\Henrik\soapui-settings.xml]
    11:10:42,165 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library t
    o [C:\Users\Henrik\.soapui\scripts]
    11:10:42,565 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r
    esources/xsds/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include

    11:10:42,606 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r
    esources/xsds/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchem
    a
    11:10:42,608 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r
    esources/xsds/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace
    11:10:42,610 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r
    esources/xsds/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1
    /xsd
    11:10:42,611 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r
    esources/xsds/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xml
    mime
    11:10:42,613 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r
    esources/xsds/xmime200411.xsd with targetNamespace http://www.w3.org/2004/11/xml
    mime
    11:10:42,616 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r
    esources/xsds/soapEnvelope.xsd with targetNamespace http://schemas.xmlsoap.org/s
    oap/envelope/
    11:10:42,622 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r
    esources/xsds/soapEncoding.xsd with targetNamespace http://schemas.xmlsoap.org/s
    oap/encoding/
    11:10:42,626 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r
    esources/xsds/soapEnvelope12.xsd with targetNamespace http://www.w3.org/2003/05/
    soap-envelope
    11:10:42,633 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r
    esources/xsds/soapEncoding12.xsd with targetNamespace http://www.w3.org/2003/05/
    soap-encoding
    -> Framework started!
    command: com.eviware.loadui.launcher.impl.ResourceGroovyCommand@3ab60bee
    11:10:43,644 INFO [BeanInjector] Setting BundleContext for BeanInjector
    11:10:43,646 INFO [BeanInjector] BundleContext set successfully
    11:10:44,662 INFO [LoadUiMainWindowCreator] JavaFX2 bundle started, is Headless
    mode ? true
    Property set.
    11:10:45,111 INFO [CommandRunner]

    ------------------------------------
    INITIALIZING COMMAND LINE RUNNER
    ------------------------------------


    11:10:45,130 INFO [CommandRunner] Loading Workspace file: C:\Users\Henrik\.load
    ui\workspace.xml
    11:10:45,147 INFO [WorkspaceProviderImpl] Loading workspace from file: C:\Users
    \Henrik\AppData\Local\Temp\workspace8882420194074232566xml
    11:10:45,370 INFO [WorkspaceItemImpl] Workspace 'WorkspaceItemImpl[label=null]'
    loaded successfully
    11:10:45,397 INFO [CommandRunner] Removing existing agents
    11:10:45,481 INFO [CommandRunner] Loading Project: c:\Users\Henrik\.loadui\proj
    ect-1.xml
    11:10:45,553 INFO [CommandRunner]

    ------------------------------------
    RUNNING TEST
    TARGET Project 1
    LIMITS Time: 00:00:05 Requests: 5 Failures: 5
    ------------------------------------

    11:10:45,586 INFO [CommandRunner] Time: 00:00:00 Requests: 0 Failures: 0
    11:10:46,587 INFO [CommandRunner] Time: 00:00:01 Requests: 0 Failures: 0
    11:10:47,588 INFO [CommandRunner] Time: 00:00:02 Requests: 0 Failures: 0
    11:10:48,590 INFO [CommandRunner] Time: 00:00:03 Requests: 0 Failures: 0
    11:10:49,590 INFO [CommandRunner] Time: 00:00:04 Requests: 0 Failures: 0
    11:10:50,591 INFO [CommandRunner] Time: 00:00:05 Requests: 0 Failures: 0
    11:10:51,592 INFO [CommandRunner] Time: 00:00:05 Requests: 0 Failures: 0
    11:10:52,593 INFO [CommandRunner] Time: 00:00:05 Requests: 0 Failures: 0
    11:10:54,593 INFO [CommandRunner] Time: 00:00:05 Requests: 0 Failures: 0
    11:10:55,593 INFO [CommandRunner]

    ------------------------------------
    TEST EXECUTION COMPLETED
    FINAL RESULTS: 00:00:05 Requests: 0 Failures: 0
    ------------------------------------

    11:10:55,596 INFO [CommandRunner] Shutting down...

    D:\workspace\loui\loadui\loadui-installers\loadui-controller-installer\target\ma
    in>echo %errorlevel%
    0


    Henrik
    LoadUI team
  • yavery's avatar
    yavery
    New Contributor
    Sorry, can't assist with this unfortunately. We've switched to jMeter since then.