Forum Discussion

Ryarlagadda's avatar
Ryarlagadda
Occasional Contributor
11 years ago

SOAPUI-Pro-4.6.4-Maven Plugin failure

Dear Support Team,
I'm having following failure on trying to run SOAPUI-Pro-4.6.4-maven plugin.
same issue not observed, Tests were successful when using SOAPUI-4.6.4-maven plugin(Opensource).

Could you please advise if I need to add any further dependencies in POM.xml when using SOAPUI Pro-Maven plugin.

09:18:22,505 ERROR [AbstractTestRunner] Exception during Test Execution
java.lang.NoClassDefFoundError: com/jgoodies/forms/builder/ButtonBarBuilder
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)
at java.lang.Class.getConstructor0(Class.java:2803)
at java.lang.Class.getConstructor(Class.java:1718)
at com.eviware.soapui.impl.wsdl.teststeps.assertions.AbstractTestAsserti
onFactory.buildAssertion(AbstractTestAssertionFactory.java:107)
at com.eviware.soapui.impl.wsdl.teststeps.assertions.TestAssertionRegist
ry.buildAssertion(TestAssertionRegistry.java:134)
at com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEn
try.getAssertion(SourceFile:179)
at com.eviware.soapui.impl.wsdl.teststeps.assertions.support.AssertionEn
try.isDisabled(SourceFile:547)
at com.eviware.soapui.impl.wsdl.teststeps.AssertionTestStep.run(SourceFi
le:139)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestSt
ep(AbstractTestCaseRunner.java:235)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTe
stStep(WsdlTestCaseRunner.java:48)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalR
un(AbstractTestCaseRunner.java:148)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalR
un(AbstractTestCaseRunner.java:43)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractT
estRunner.java:135)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ClassNotFoundException: com.jgoodies.forms.builder.ButtonBa
rBuilder
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(
SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadCl
ass(ClassRealm.java:259)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm
.java:235)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm
.java:227)
... 19 more
09:18:22,510 INFO [SoapUIProTestCaseRunner] Finished running SoapUI testcase [S
wupdate Service-with2Valid2InvalidPackages], time taken: 9588ms, status: FAILED
09:18:22,517 INFO [SoapUIProTestCaseRunner] TestSuite [SwUpdate TestSuite] fini
shed with status [FAILED] in 10522ms

SoapUI 4.6.4 TestCaseRunner Summary
-----------------------------
Time Taken: 10526ms
Total TestSuites: 1
Total TestCases: 1 (1 failed)
Total TestSteps: 7
Total Request Assertions: 3
Total Failed Assertions: 0
Total Exported Results: 0

09:18:22,989 INFO [SoapUIProTestCaseRunner] Created report at file:/c:/ncrtest/
SOAP%20UI%20Pro%20Practice/app/target/surefire-reports/index.html
[ERROR] java.lang.Exception: TestCase [Swupdate Service-with2Valid2InvalidPackag
es] failed without assertions
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Notice you have:

    <pluginRepositories>
    <pluginRepository>
    <id>eviwarePluginRepository</id>
    <url>http://www.eviware.com/repository/maven2/</url>
    </pluginRepository>

    Compared to my pom that has:

    <pluginRepositories>
    <pluginRepository>
    <id>SmartBearPluginRepository</id>
    <url>http://www.soapui.org/repository/maven2/</url>
    </pluginRepository>
    </pluginRepositories>


    You probably do not have all the libraries pulled from the repository you need, since your getting a NoClassDefFoundError. I'm going to attach my pom.xml file for reference.



    Regards,
    Marcus
    SmartBear Support.
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Hi
    I am not sure the issue comes from the repository declaration. Usually, when a dependency cannot be retrieved, maven generates an error and the build stops. This is not the case here as we have a SoapUI error.

    I've already get feedbacks from users having this issue with both 4.0.0 and 4.5.1 version. See this issue: https://github.com/redfish4ktc/maven-so ... /issues/85

    Ryarlagadda could you check in your project what kind of assertion you are using in the failing test please

    09:18:22,510 INFO [SoapUIProTestCaseRunner] Finished running SoapUI testcase [S
    wupdate Service-with2Valid2InvalidPackages], time taken: 9588ms, status: FAILED
    09:18:22,517 INFO [SoapUIProTestCaseRunner] TestSuite [SwUpdate TestSuite] fini
    shed with status [FAILED] in 10522ms
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    We have create a issue for this SOAP-1348 and a fix is available in the latest maintenence relese. Please try the maintenence version of the maven plugin


    <groupId>com.smartbear.soapui</groupId>
    <artifactId>soapui-pro-maven-plugin</artifactId>
    <version>4.6.4-m-SNAPSHOT</version>


    and let us know if this fixes your problem
  • Ryarlagadda's avatar
    Ryarlagadda
    Occasional Contributor
    Dear Support Team,

    After using latest Maintenance Release , maven execution stopped due to "class missing com/eviware/soapui/SoapUIProTestCaseRunner".
    PFA my updated POM.xml and Maven failure details.



    I have noticed earlier maven plugin ( i.e. <groupId>com.smartbear.soapui</groupId> <artifactId>soapui-pro-maven-plugin</artifactId>
    <version>4.6.4</version>) execution crashed, during 'Content Validation assertion' test step.

    Test execution was successful after removing 'Content validation asssertion' using SOAP UI Pro 4.6.4 maven plugin.
    Kindly issue patch for this.

    Thanks & Regards,
    Raj
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Hi SmartBear Support
    could you tell what problem the maintenance version fix (issue with specific assertion?)? Does the problem only occur with the maven plugin or the command line tool has also the problem?

    Thanks
  • Ryarlagadda's avatar
    Ryarlagadda
    Occasional Contributor
    Hi Smartbear support,

    As I did not see further response, Today raised support ticket to address thsi issue.
    Requesting fix for this issue.

    Thanks.
  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Hi,
    I've been able to reproduce the issue with a simple soapui project that contains a "Message Content assertion" (see attachment + run mvn clean verify)
    I've tested the 4.6.4-m-SNAPSHOT. I confirm that the issue is fixed (at least with the attached soapui project)

    For information, the "Message Content assertion" is ignored by the free plugin implementation (this assertion is a pro feature, so I guess it ignores it) so that's why there is no error using this plugin
    INFO  [SoapUITestCaseRunner] Assertion [Not SOAP Fault] has status VALID
    INFO [SoapUITestCaseRunner] Assertion [Contains] has status VALID
    INFO [SoapUITestCaseRunner] Assertion [Message Content Assertion] has status UNKNOW


    I've been able to reproduce the problem with the following versions of the pro plugin
    4.5.0
    4.5.1
    4.5.2-m-SNAPSHOT
    4.6.0-m-SNAPSHOT
    4.6.1
    4.6.2
    4.6.3
    4.6.4