Forum Discussion

harry's avatar
harry
Contributor
10 years ago

java.io.FileNotFoundException error

Iam trying to run the project using Testrunner.Execution of datasoucre step is getting failed due to ( Access Denied) & java.io.FileNotFoundException.

 

Running SoapUI TestRunner for [Gridpoint_PublicAPI_Project]
directory: C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\.
command: cmd.exe /C testrunner.bat -j -fC:\SVNProjects\PublicAPI_Maven_Project\Testing\PublicProjectReports -R"JUnit-Style HTML Report" -EDefault -I -S C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI\public_API_project.xml
SoapUI Pro 5.1.2 TestCase Runner
Configuring log4j from [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\soapui-log4j.xml]
16:05:05,639 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\groovy-all-1.8.0.jar] to extensions classpath
16:05:05,639 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\jtds-1.3.1.jar] to extensions classpath
16:05:05,640 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\jxl-2.6.12.jar] to extensions classpath
16:05:05,640 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\jxl.jar] to extensions classpath
16:05:05,640 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\postgresql-8.3-604.jdbc3.jar] to extensions classpath
16:05:05,640 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\postgresql-8.3-604.jdbc4.jar] to extensions classpath
16:05:05,640 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\sqljdbc.jar] to extensions classpath
16:05:05,879 INFO  [DefaultSoapUICore] initialized soapui-settings from [C:\Users\harry\soapui-settings.xml]
16:05:06,065 INFO  [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\GlobalScripts]
16:05:06,067 INFO  [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\listeners\demo-listeners.xml]
16:05:09,733 INFO  [WsdlProject] Loaded project from [file:/C:/SVNProjects/PublicAPI_Maven_Project/Testing/src/main/java/PUBLIC_SOAPUI/public_API_project.xml]
16:05:10,195 INFO  [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\GlobalScripts]
16:05:17,888 INFO  [log] C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI
16:05:17,903 INFO  [log] Global Script path   :C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java
16:05:17,968 INFO  [SoapUIProTestCaseRunner] Running SoapUI tests in project [PublicAPI_Project]
16:05:18,028 INFO  [SoapUIProTestCaseRunner] Running Project [PublicAPI_Project], runType = SEQUENTIAL
16:05:18,116 INFO  [SoapUIProTestCaseRunner] Running SoapUI testcase [Disable/Enable testcases from excel]
16:05:18,118 INFO  [SoapUIProTestCaseRunner] running step [Data testcase Datasource]
16:05:18,127 ERROR [SoapUIProTestCaseRunner] Data testcase Datasource failed, exporting to [C:\SVNProjects\PublicAPI_Maven_Project\Testing\PublicProjectReports\Data_API-DisableEnable_testcases_from_excel-Data_testcase_Datasource-0-FAILED.txt]
java.io.FileNotFoundException: C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI (Access is denied)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.<init>(Unknown Source)
 at com.eviware.soapui.impl.wsdl.teststeps.datasource.ExcelFacade.readWorkbookFrom(SourceFile:32)
 at com.eviware.soapui.impl.wsdl.teststeps.datasource.ExcelDataSource.load(SourceFile:114)
 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.next(SourceFile:439)
 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.run(SourceFile:126)
 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:213)
 at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47)
 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:139)
 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:47)
 at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:129)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.FutureTask.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)
16:05:18,141 INFO  [SoapUIProTestCaseRunner] Finished running SoapUI testcase [Disable/Enable testcases from excel], time taken: 3ms, status: FAILED
16:05:18,144 INFO  [SoapUIProTestCaseRunner] Running SoapUI testcase [TC_Data_0001_GET getPaths_for different users_Positive]
16:05:18,144 INFO  [SoapUIProTestCaseRunner] running step [Call POST - Portal Login]
16:05:18,215 INFO  [SoapUIProTestCaseRunner] Running SoapUI testcase [POST-Portal Login]
16:05:18,225 INFO  [SoapUIProTestCaseRunner] running step [Establish Test Case Properties]
16:05:18,250 INFO  [SoapUIProTestCaseRunner] running step [Extract required Properties from calling Test Case]
16:05:18,282 INFO  [log] user name   :   APIUSER
16:05:18,282 INFO  [log] password   :   Fall2014
16:05:18,282 INFO  [SoapUIProTestCaseRunner] running step [Call GP EM2 Login]
16:05:18,664 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
16:05:18,664 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /publicApi/services/auth/login?password=Fall2014&username=APIUSER HTTP/1.1
16:05:18,764 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
16:05:18,774 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
16:05:18,879 INFO  [SoapUIProTestCaseRunner] running step [Extract Response Time]

  •  Previously  it worked fine. Not sure past 1 week i was facing this issue.Right now the issue is  unable load the project(wsdl)

     

     

     

     

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

    C:\Users\hcholleti>cd C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin

    C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin>testrunner.bat -j -fC:\SVNProjects\PublicAPI_Maven_Project\Testing\PublicProjectReports -R"JUnit-Style HTML Report" -EDefault -I -S C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI\Gridpoint_public_API_project.xml
    SoapUI Pro 5.1.2 TestCase Runner
    Configuring log4j from [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\soapui-log4j.xml]
    10:50:34,317 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\groovy-all-1.8.0.jar] to extensions classpath
    10:50:34,317 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\jtds-1.3.1.jar] to extensions classpath
    10:50:34,317 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\jxl-2.6.12.jar] to extensions classpath
    10:50:34,317 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\jxl.jar] to extensions classpath
    10:50:34,317 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\postgresql-8.3-604.jdbc3.jar] to extensions classpath
    10:50:34,317 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\postgresql-8.3-604.jdbc4.jar] to extensions classpath
    10:50:34,317 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\sqljdbc.jar] to extensions classpath
    10:50:34,537 INFO  [DefaultSoapUICore] initialized soapui-settings from [C:\Users\hcholleti\soapui-settings.xml]
    10:50:34,707 INFO  [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\GlobalScripts]
    10:50:34,707 INFO  [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\listeners\demo-listeners.xml]
    java.io.FileNotFoundException: C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI\Gridpoint_public_API_project.xml (Access is denied)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(Unknown Source)
            at java.io.FileInputStream.<init>(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
            at java.net.URL.openStream(Unknown Source)
            at com.eviware.soapui.impl.wsdl.support.wsdl.UrlWsdlLoader.handleFile(UrlWsdlLoader.java:180)
            at com.eviware.soapui.impl.support.wsdl.UrlWsdlLoaderPro.handleFile(SourceFile:29)
            at com.eviware.soapui.impl.wsdl.support.wsdl.UrlWsdlLoader.load(UrlWsdlLoader.java:116)
            at com.eviware.soapui.impl.wsdl.support.wsdl.UrlWsdlLoader.load(UrlWsdlLoader.java:96)
            at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(SourceFile:192)
            at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:220)
            at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(SourceFile:160)
            at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:28)
            at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:16)
            at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:329)
            at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:188)
            at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:123)
            at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:98)
            at com.eviware.soapui.SoapUIProTestCaseRunner.init(SourceFile:94)
            at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:62)
    10:50:35,607 ERROR [SoapUI] An error occurred [Failed to load project from file [file:/C:/SVNProjects/PublicAPI_Maven_Project/Testing/src/main/java/PUBLIC_SOAPUI/Gridpoint_public_API_project.xml]], see error log for details
    com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/SVNProjects/PublicAPI_Maven_Project/Testing/src/main/java/PUBLIC_SOAPUI/Gridpoint_public_API_project.xml]
            at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(SourceFile:321)
            at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:220)
            at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(SourceFile:160)
            at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:28)
            at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(SourceFile:16)
            at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:329)
            at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:188)
            at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:123)
            at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:98)
            at com.eviware.soapui.SoapUIProTestCaseRunner.init(SourceFile:94)
            at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:62)
    Caused by: java.io.FileNotFoundException: C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI\Gridpoint_public_API_project.xml (Access is denied)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(Unknown Source)
            at java.io.FileInputStream.<init>(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
            at java.net.URL.openStream(Unknown Source)
            at com.eviware.soapui.impl.wsdl.support.wsdl.UrlWsdlLoader.handleFile(UrlWsdlLoader.java:180)
            at com.eviware.soapui.impl.support.wsdl.UrlWsdlLoaderPro.handleFile(SourceFile:29)
            at com.eviware.soapui.impl.wsdl.support.wsdl.UrlWsdlLoader.load(UrlWsdlLoader.java:116)
            at com.eviware.soapui.impl.wsdl.support.wsdl.UrlWsdlLoader.load(UrlWsdlLoader.java:96)
            at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(SourceFile:192)
            ... 10 more
    10:50:35,757 ERROR [SoapUIProTestCaseRunner] java.lang.Exception: Failed to load SoapUI project file [C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI\Gridpoint_public_API_project.xml]
    10:50:35,757 ERROR [SoapUI] An error occurred [Failed to load SoapUI project file [C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI\Gridpoint_public_API_project.xml]], see error log for details
    java.lang.Exception: Failed to load SoapUI project file [C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI\Gridpoint_public_API_project.xml]
            at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:333)
            at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:188)
            at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:123)
            at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:98)
            at com.eviware.soapui.SoapUIProTestCaseRunner.init(SourceFile:94)
            at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:62)

    C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin>^A