Forum Discussion

RajiNavaneethan's avatar
RajiNavaneethan
Occasional Contributor
16 years ago

Error running SOAPUI through JUnit

Hi Team,

Am trying to run my soapUI through JUnit. I got the java.lang.SecurityException.

Can anyone please solve my problem.

rConnection racle.jdbc.driver.T4CConnection@86e086e
Configuring log4j from [jar:file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/soapui-2.0.2.jar!/soapui-log4j.xml]
23:04:13,757 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/activation-1.1.jar] to classpath
23:04:13,767 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/bcprov-jdk15-138.jar] to classpath
23:04:13,767 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/binding-2.0.1.jar] to classpath
23:04:13,777 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/commons-beanutils-1.7.0.jar] to classpath
23:04:13,777 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/commons-cli-1.0.jar] to classpath
23:04:13,777 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/commons-codec-1.3.jar] to classpath
23:04:13,777 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/commons-httpclient-3.0.1-soapui.jar] to classpath
23:04:13,777 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/commons-httpclient-3.1.jar] to classpath
23:04:13,787 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/commons-io-1.3.2.jar] to classpath
23:04:13,787 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/commons-lang-2.1.jar] to classpath
23:04:13,787 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/commons-logging-1.1.jar] to classpath
23:04:13,787 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/commons-logging.jar] to classpath
23:04:13,787 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/ext-xmlbeans-1.0.jar] to classpath
23:04:13,787 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/forms-1.0.7.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/groovy-all-1.5.1.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/httpunit.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/j2ee-xmlbeans-1.4.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/javamail-1.4.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/jetty-6.1.5.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/jetty-util-6.1.5.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/js.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/jsr173_1.0_api-xmlbeans-2.3.0.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/junit-3.8.1.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/junit.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/l2fprod-common-fontchooser-0.2-dev.jar] to classpath
23:04:13,797 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/log4j-1.2.14.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/looks-2.1.2.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/nekohtml.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/not-yet-commons-ssl-0.3.9-no-validate.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/ojdbc14.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/opensaml-1.1.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/saxon-8.8.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/saxon-dom-8.8.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/servlet-api-2.5-6.1.5.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/servlet.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/soap-xmlbeans-1.2.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/soapui-2.0.2.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/soapui-xmlbeans-2.0.jar] to classpath
23:04:13,807 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/swingx-SNAPSHOT.jar] to classpath
23:04:13,817 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/Tidy.jar] to classpath
23:04:13,817 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/wsdl4j-1.6.2-fixed.jar] to classpath
23:04:13,817 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/wsdl4j.jar] to classpath
23:04:13,817 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/wss4j-1.5.3.jar] to classpath
23:04:13,817 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/xalan-2.7.0.jar] to classpath
23:04:13,817 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/xbean-2.3.0-trunk-patched.jar] to classpath
23:04:13,817 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/xbean_xpath-2.3.0.jar] to classpath
23:04:13,817 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/xercesImpl-2.9.1.jar] to classpath
23:04:13,817 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/xercesImpl.jar] to classpath
23:04:13,817 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/xmlParserAPIs.jar] to classpath
23:04:13,827 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/xmlpublic-2.3.0.jar] to classpath
23:04:13,827 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/xmlsec-1.4.0.jar] to classpath
23:04:13,827 INFO  [SoapUI] Added [file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/ext/xmlunit-1.1.jar] to classpath
23:04:13,827 INFO  [DefaultSoapUICore] Creating new settings at [C:\xrnn3\CLCS_SOA\CLCS-TestServices\soapui-settings.xml]
23:04:16,461 INFO  [WsdlProject] Loaded project from [file:/C:/xrnn3/SOAPUI/EDR-SOA-soapui-project.xml]
23:04:19,065 ERROR [WsdlTestCaseRunner] Exception during TestCase Execution
java.lang.VerifyError: java.lang.SecurityException: Signers of 'javax.mail.internet.PreencodedMimeBodyPart' do not match signers of other classes in package
at java.lang.J9VMInternals.verify(J9VMInternals.java:65)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
at com.eviware.soapui.impl.wsdl.submit.RequestTransportRegistry.(RequestTransportRegistry.java:47)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
at com.eviware.soapui.impl.wsdl.WsdlRequest.submit(WsdlRequest.java:385)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:276)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.run(WsdlTestCaseRunner.java:185)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.start(WsdlTestCaseRunner.java:84)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:513)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:57)
at au.com.woolworths.services.tests.ValidateEDRTest.testRunner(ValidateEDRTest.java:236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)


Thanks in advance,
Rajinavaneethan.

7 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    looks like a classloader/classpath issue, do you have all the soapUI jars first in your classpath?

    regards!

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

    Thanks for the reple.

    Ya am having all the jars. Anyway i will check once again and try again.

    Thanks & Regards,
    Rajinavaneethan.
  • RajiNavaneethan's avatar
    RajiNavaneethan
    Occasional Contributor
    Hi Ole,

    I am having all the jars. I dont know why am getting this error.
    Can you please give me the solution for this..

    Thanks & Regards,
    Rajinavaneethan..
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi,

    hmm.. exactly how have you configured this? It seems the soapUI jars are in the ext folder!? (they shouldn't be) Can you give a complete description of your setup/ide/etc..?

    regards,

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

    Am using RSA 7.0 for this. Am having my junit test project in it.
    When i export all the jars in lib files and ran the my testcase i got the following warning and exception. So that i have created the "ext" folder and put all the jars into that folder.

    Am new to SoapUI. Can you please guide me.

    Configuring log4j from [jar:file:/C:/xrnn3/CLCS_SOA/CLCS-TestServices/lib/soapui-2.0.2.jar!/soapui-log4j.xml]
    22:27:37,940 WARN  [DefaultSoapUICore] Missing folder [C:\xrnn3\CLCS_SOA\CLCS-TestServices\ext] for external libraries
    22:27:37,940 INFO  [DefaultSoapUICore] Creating new settings at [C:\xrnn3\CLCS_SOA\CLCS-TestServices\soapui-settings.xml]
    22:27:40,544 INFO  [WsdlProject] Loaded project from [file:/c:/xrnn3/SOAPUI/EDR-SOA-soapui-project.xml]
    22:27:42,086 ERROR [WsdlTestCaseRunner] Exception during TestCase Execution
    java.lang.VerifyError: java.lang.SecurityException: Signers of 'javax.mail.internet.PreencodedMimeBodyPart' do not match signers of other classes in package
    at java.lang.J9VMInternals.verify(J9VMInternals.java:65)
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi,

    sorry, It's really hard for me to figure out why you are getting this warning. What other libraries are there in your classpath? Can you ensure the soapUI ones are before all others?

    regards,

    /Ole
    eviware.com