Forum Discussion

nagraj's avatar
nagraj
New Member
7 years ago

java.lang.ClassNotFoundException:

Hi All,

 

Iam trying to Launch TestRunner and running the scripts from XL sheet getting below error which results it's not going to the XL sheet saved path to execute the test cases from that sheet.

 

 

error is; 

 

java.lang.ClassNotFoundException: com.erac.common.services.domainvalueservice.DomainValuesRQDocument$Factory

 

 

 

 

 

 

 

 

 

Error File: 

 

 

Running SoapUI TestRunner for [Payment Service Excel Multi-File Test Harness]
directory: C:\Program Files\SmartBear\SoapUI-5.4.0\bin\.
command: cmd.exe /C testrunner.bat -s"Excel-Driven Automated Tests" -cAllPurposeTestCase -r -I -S -DexcelTestRunnerPropFile=C:\builds\pymtsvc_harness\excelTestRunner.properties -PInteractive=true -PLoadJarFromI2=false C:\builds\pymtsvc_harness\LW_Excel-Multi-File-Service-Harness-soapui-project_March2017.xml
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
SoapUI 5.4.0 TestCase Runner
Configuring log4j from [C:\Program Files\SmartBear\SoapUI-5.4.0\bin\soapui-log4j.xml]
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: global-groovy.log (Access is denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)
at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150)
at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163)
at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425)
at org.apache.log4j.xml.DOMConfigurator.parseCategory(DOMConfigurator.java:345)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:827)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:604)
at org.apache.log4j.xml.XMLWatchdog.doOnChange(DOMConfigurator.java:861)
at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:88)
at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.java:57)
at org.apache.log4j.xml.XMLWatchdog.<init>(DOMConfigurator.java:853)
at org.apache.log4j.xml.DOMConfigurator.configureAndWatch(DOMConfigurator.java:584)
at com.eviware.soapui.DefaultSoapUICore.initLog(DefaultSoapUICore.java:492)
at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:136)
at com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:132)
at com.eviware.soapui.tools.AbstractSoapUIRunner.createSoapUICore(AbstractSoapUIRunner.java:216)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:192)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:137)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:112)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:122)
15:16:58,814 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\E562TF\soapui-settings.xml]
15:17:00,067 INFO [PluginManager] 0 plugins loaded in 2 ms
15:17:00,067 INFO [DefaultSoapUICore] All plugins loaded
15:17:01,258 INFO [WsdlProject] Loaded project from [file:/C:/builds/pymtsvc_harness/LW_Excel-Multi-File-Service-Harness-soapui-project_March2017.xml]
15:17:01,267 INFO [SoapUITestCaseRunner] Setting project property [Interactive] to [true]
15:17:01,267 INFO [SoapUITestCaseRunner] Setting project property [LoadJarFromI2] to [false]
15:17:01,267 INFO [SoapUITestCaseRunner] Running SoapUI tests in project [Payment Service Excel Multi-File Test Harness]
15:17:01,268 INFO [SoapUITestCaseRunner] Running TestCase [AllPurposeTestCase]
15:17:01,277 INFO [SoapUITestCaseRunner] Running SoapUI testcase [AllPurposeTestCase]
15:17:01,278 INFO [SoapUITestCaseRunner] running step [Data Entry]
15:17:01,334 INFO [SoapUITestCaseRunner] running step [Property Transfer]
15:17:01,335 INFO [SoapUITestCaseRunner] running step [LoadExternalJar]
15:17:01,775 INFO [log] Project Dir is: C:\builds\pymtsvc_harness
15:17:01,775 INFO [log] Load Jars from I2 is: false
15:17:01,777 INFO [log] Loading Schema from - C:/builds/pymtsvc/schema/paymentLightweight.jar
15:17:01,781 INFO [SoapUI] Added [file:/C:/builds/pymtsvc/schema/paymentLightweight.jar] to classpath
15:17:01,781 INFO [log] Loading Harness from - C:/builds/pymtsvc_harness/excelharness.jar
15:17:01,782 INFO [SoapUI] Added [file:/C:/builds/pymtsvc_harness/excelharness.jar] to classpath
15:17:01,782 INFO [SoapUITestCaseRunner] running step [Read Excel]
15:17:02,237 INFO [log] ---Started manual data entry---
15:18:03,234 INFO [DefaultSoapUICore] Settings saved to [C:\Users\E562TF\soapui-settings.xml]
15:18:03,241 INFO [log] ---Started Property Transfer Runner---
15:18:03,242 INFO [SoapUITestCaseRunner] running step [Property Transfer]
15:18:03,243 INFO [log] Interactive is true
15:18:03,243 INFO [log] Service URL is http://pymtsvc-xqa.corp.erac.com/pymtsvc/services
15:18:03,243 INFO [log] ApSec URL is http://appsecwse-extqa/appsec/enhanced/webservice/rsi/AuthService
15:18:03,245 INFO [log] ---Started AppSec Runner---
15:18:03,246 INFO [SoapUITestCaseRunner] Running SoapUI testcase [CallAppSec]
15:18:03,259 INFO [SoapUITestCaseRunner] running step [Properties]
15:18:03,259 INFO [SoapUITestCaseRunner] running step [AppSecRequest]
15:18:03,454 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
15:18:03,454 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /appsec/enhanced/webservice/rsi/AuthService/appsec/enhanced/webservice/rsi/AuthService HTTP/1.1
15:18:07,589 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
15:18:07,595 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
15:18:07,618 INFO [SoapUITestCaseRunner] running step [AppSec Result Transfer]
15:18:07,896 INFO [SoapUITestCaseRunner] Finished running SoapUI testcase [CallAppSec], time taken: 4519ms, status: FINISHED
15:18:07,898 INFO [log] Calling App Sec was Successful
15:18:07,920 INFO [log] Creating Result HTML File : C:\Users\E562TF\Desktop\Raj_Regression_LightWeight\MOP\html_result_reports/201805291517/resultsSummaryReport201805291517.html
15:18:08,261 INFO [log] Reading file C:\Users\E562TF\Desktop\Raj_Regression_LightWeight\MOP\LightWeight_MOPDomain_TC001_GetAllDetails.xls
java.lang.ClassNotFoundException: com.erac.common.services.domainvalueservice.DomainValuesRQDocument$Factory
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.erac.harness.util.XmlBeanUtil.createRoot(Unknown Source)
at com.erac.harness.util.Adapter.toXml(Unknown Source)
at com.erac.harness.util.Adapter.toXml(Unknown Source)
at com.erac.harness.ExcelHarness.readExcelDataAsXml(Unknown Source)
at com.erac.harness.ExcelHarness$readExcelDataAsXml.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at Script1$_run_closure5.doCall(Script1.groovy:200)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
at groovy.lang.Closure.call(Closure.java:426)
at groovy.lang.Closure.call(Closure.java:442)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2030)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2015)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2056)
at org.codehaus.groovy.runtime.dgm$162.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
at Script1.run(Script1.groovy:164)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:90)
at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:211)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:138)
at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:46)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:128)
at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.start(AbstractTestRunner.java:76)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:594)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runTestCase(SoapUITestCaseRunner.java:573)
at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:405)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:202)
at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:137)
at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:112)
at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:122)
15:18:08,696 INFO [SoapUITestCaseRunner] Finished running SoapUI testcase [AllPurposeTestCase], time taken: 67406ms, status: FINISHED
15:18:08,696 INFO [SoapUITestCaseRunner] TestCase [AllPurposeTestCase] finished with status [FINISHED] in 67406ms

SoapUI 5.4.0 TestCaseRunner Summary
-----------------------------
Time Taken: 67424ms
Total TestSuites: 0
Total TestCases: 2 (0 failed)
Total TestSteps: 8
Total Request Assertions: 0
Total Failed Assertions: 0
Total Exported Results: 0
15:18:08,736 INFO [WsdlProject] Saved project [Payment Service Excel Multi-File Test Harness] to [C:\builds\pymtsvc_harness\LW_Excel-Multi-File-Service-Harness-soapui-project_March2017.xml - 30419 bytes

No RepliesBe the first to reply