Forum Discussion

asinesio's avatar
asinesio
New Contributor
16 years ago

SoapUI 3.x on JDK 1.5 Issues

Hello,

I am having trouble running SoapUI tests (both through the TestRunner and through the maven plugin) because a dependency used when comparing XPath assertions appears to be compiled for Java 1.6 only.

I'm running Mac OS X Leopard 10.5 and Java 1.5.  The SoapUI app works just fine running my test suite, but when I run it:

1) from the command line (testrunner.sh)
2) from the Maven SoapUI plugin
3) from the test runner inside of the maven-soapui-plugin

I always get the same error:

[glow=red,2,300]
----------------- Messages ------------------------------
[XPath Match] Bad version number in .class file
[XPath Match] null
[/glow]

Does anyone have any suggestions here? 

(Moving to java 1.6 is not going to be an option.  I also tried including soapui in the pom as a direct dependency and running the project through a SoapUITestCaseRunner included in a jUnit test, but the Maven2 pom for SoapUI does not include a section so it will require a lot of messing around to get that set up correctly.)

Thanks in advance for any help you can provide.

Here is the relevant pom.xml configuration section:

         
                eviware
                maven-soapui-plugin
                2.5.1
               
                    ${project.build.testOutputDirectory}/boc-inquiry-service-soapui-project.xml
                    http://localhost:9990
                    false
                    true
                    ${project.build.directory}/soapui-reports
                   
                       
                            testDatabaseConnectionUrl=${test.database.connection.url}
                       

                       
                            testDatabaseConnectionUser=${test.database.connection.user}
                       

                       
                            testDatabaseConnectionPassword=${test.database.connection.password}
                       

                       
                            setupSqlScriptLocation=${project.build.testOutputDirectory}/soapui-test-setup.sql
                       

                       
                            teardownSqlScriptLocation=${project.build.testOutputDirectory}/soapui-test-teardown.sql
                       

                   

               

               
                   
                        test
                        integration-test
                       
                            test
                       

                   

               

           

4 Replies

  • asinesio's avatar
    asinesio
    New Contributor
    Bumping.  Does anyone have a suggestion here?  Can I perhaps exclude a specific dependency?
  • I am having similar problem. When I try to run the proj using the GUI all the testcases are passing but when i try to run the same using testrunner I am getting the "[Match content of [SUCCESS]] Bad version number in .class fileBad version number in .class file" error in the results file.
  • Hi Asinesio,

    Not sure if its working for u yet. I posted this question to ole n this is what i got from him:

    -------------------------------------------------
    Hi,

    this sounds like you have an old JDK in your path and/or are using an older version of soapUI.. please try upgrading either soapUI Pro to the latest nightly build (at http://www.eviware.com/nightly-builds) or updating your JRE to a 1.6 version. If you install soapUI Pro with the installer the command-line runners will automatically use that bundled JRE also.

    Hope this helps,

    regards!

    /Ole
    eviware.com
    -----------------------------------------
    As u were expecting it is the jdk issue. I havn't tried it yet.

    agupta
  • rakmoh's avatar
    rakmoh
    New Contributor
    Thanks for the post. I was having the same issue.Upgrading my jre to 6 fixed it.