Forum Discussion

mukeshbijalwan's avatar
mukeshbijalwan
Occasional Contributor
3 months ago

getting exception while running SOAP UI REST project from CMD: java.lang.NullPointerException:

Can somebody suggest why I am getting this error when running SOAPUI REST project from command line.

java.lang.NullPointerException: Cannot invoke "com.eviware.soapui.impl.InterfaceFactory.build(com.eviware.soapui.impl.wsdl.WsdlProject, com.eviware.soapui.config.InterfaceConfig)" because the return value of "java.util.Map.get(Object)" is null
    at com.eviware.soapui.impl.wsdl.InterfaceFactoryRegistry.build(InterfaceFactoryRegistry.java:51)
    at com.eviware.soapui.impl.wsdl.WsdlProject.loadProjectFromInputStream(WsdlProject.java:389)
    at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:317)
    at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:220)
    at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:201)
    at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:189)
    at DRI_SOAP_UI_XML_Testes.SoapUI_Helper.getTestSuiteTestCases(SoapUI_Helper.java:64)
    at DRI_SOAP_UI_XML_Testes.WBS_UAT_E2E_FOPs_Regression.runAggrSuites(WBS_UAT_E2E_FOPs_Regression.java:13)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:567)
    at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:133)
    at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:598)
    at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:173)
    at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
    at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:824)
    at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:146)
    at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
    at org.testng.TestRunner.privateRun(TestRunner.java:794)
    at org.testng.TestRunner.run(TestRunner.java:596)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:377)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:371)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:332)
    at org.testng.SuiteRunner.run(SuiteRunner.java:276)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1212)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1134)
    at org.testng.TestNG.runSuites(TestNG.java:1063)
    at org.testng.TestNG.run(TestNG.java:1031)
    at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:115)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
17:14:57,349 ERROR [SoapUI] An error occurred [Failed to load project from file [file:/C:/Users/mbijalwan/OneDrive%20-%20Amadeus%20Workplace/Desktop/Mukesh/DRI_Automation/repo2/Implementation/DRI_WBS_RegresstionTest_Automation/SOAP_UI_INTG/./TestProject/JSON_AGGR_Expedia_CC.xml]], see error log for details
17:14:57,349 ERROR [SoapUI] An error occurred [Failed to load project from file [file:/C:/Users/mbijalwan/OneDrive%20-%20Amadeus%20Workplace/Desktop/Mukesh/DRI_Automation/repo2/Implementation/DRI_WBS_RegresstionTest_Automation/SOAP_UI_INTG/./TestProject/JSON_AGGR_Expedia_CC.xml]], see error log for details
17:14:57,349 ERROR [errorlog] com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/Users/mbijalwan/OneDrive%20-%20Amadeus%20Workplace/Desktop/Mukesh/DRI_Automation/repo2/Implementation/DRI_WBS_RegresstionTest_Automation/SOAP_UI_INTG/./TestProject/JSON_AGGR_Expedia_CC.xml]
com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/Users/mbijalwan/OneDrive%20-%20Amadeus%20Workplace/Desktop/Mukesh/DRI_Automation/repo2/Implementation/DRI_WBS_RegresstionTest_Automation/SOAP_UI_INTG/./TestProject/JSON_AGGR_Expedia_CC.xml]
    at com.eviware.soapui.impl.wsdl.WsdlProject.loadProject(WsdlProject.java:334) ~[soapui-5.7.0.jar:5.7.0]

 

Thanks,

Mukesh

5 Replies

  • Humashankar's avatar
    Humashankar
    Champion Level 0


    Hi - I hope that you are Doing good !!

    NullPointerException when attempting to load a SOAP UI project from a file
    project file specified in the error message (JSON_AGGR_Expedia_CC.xml) exists at the specified location

    check the file path specified and it is accesible
    Any issues in the file path could lead to a FileNotFoundException or NullPointerException

    Hope this helps and happy to assist further !!

    Thank you very much and have a fantastic day!
    Warm regards

  • nmrao's avatar
    nmrao
    Champion Level 3

    What happens if the project xml is opened in the browser?

    • mukeshbijalwan's avatar
      mukeshbijalwan
      Occasional Contributor

      Even when i launch SOAPUI from cmd prompt...i see same error.

      Soapui app never open for me