cancel
Showing results for 
Search instead for 
Did you mean: 

Error Importing Project: Cannot invoke "com.eviware.soapui.config.RestRequestConfig.toString()"

ravipattem
New Contributor

Error Importing Project: Cannot invoke "com.eviware.soapui.config.RestRequestConfig.toString()"

I am seeing error Importing my Ready API Project. Below is the error detail that I see in the error log

 

Caused by: java.lang.NullPointerException: Cannot invoke "com.eviware.soapui.config.RestRequestConfig.toString()" because "restRequestConfig" is null

 

Any help is highly appreciated

4 REPLIES 4
nmrao
Community Hero

Re: Error Importing Project: Cannot invoke "com.eviware.soapui.config.RestRequestConfig.toStrin

Details to reproduce the issue will be helpful?

What is the impact because of the above issue ? and ReadyAPI version?


Regards,
Rao.
ravipattem
New Contributor

Re: Error Importing Project: Cannot invoke "com.eviware.soapui.config.RestRequestConfig.toStrin

I removed some columns from a datasource and saved my changes. After that I closed ReadApi tool and fired it again. This did not load my project after that. I tried to import the project and I see this error 

nmrao
Community Hero

Re: Error Importing Project: Cannot invoke "com.eviware.soapui.config.RestRequestConfig.toStrin

Thanks.
Full stacktrace please?


Regards,
Rao.
ferrytoth
New Member

Re: Error Importing Project: Cannot invoke "com.eviware.soapui.config.RestRequestConfig.toStrin

Same here. After updating to ReadyAPI 3.8.0 my project generates an error.

 

Mon May 17 10:35:00 GMT 2021: ERROR: com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/.../test-readyapi-project.xml]
com.eviware.soapui.support.SoapUIException: Failed to load project from file [file:/C:/.../test-readyapi-project.xml]
at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(WsdlProjectPro.java:621)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:345)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:324)
at com.eviware.soapui.impl.wsdl.WsdlProject.<init>(WsdlProject.java:319)
at com.eviware.soapui.impl.wsdl.WsdlProjectPro.<init>(WsdlProjectPro.java:246)
at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(WsdlProjectProFactory.java:133)

at com.eviware.soapui.impl.wsdl.WsdlProjectProFactory.createNew(WsdlProjectProFactory.java:1)
at com.eviware.soapui.impl.WorkspaceImpl.importNewProject(WorkspaceImpl.java:725)
at com.eviware.soapui.impl.WorkspaceImpl.importProjectWithResult(WorkspaceImpl.java:718)
at com.eviware.soapui.impl.actions.InternalProImportWsdlProjectAction.perform(InternalProImportWsdlProjectAction.java:70)
at com.eviware.soapui.impl.actions.ProImportWsdlProjectAction.perform(ProImportWsdlProjectAction.java:16)
at com.eviware.soapui.impl.actions.ImportWsdlProjectAction.perform(ImportWsdlProjectAction.java:1)
at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:176)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1012)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1056)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6614)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6379)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4990)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4919)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4548)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4489)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2769)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.NullPointerException: Cannot invoke "com.eviware.soapui.config.RestRequestConfig.toString()" because "restRequestConfig" is null
at com.eviware.soapui.impl.rest.support.RestRequestConverter.updateRestTestRequest(RestRequestConverter.java:332)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.findRestMethod(RestTestRequestStep.java:388)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.getRestMethod(RestTestRequestStep.java:437)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.buildTestRequest(RestTestRequestStep.java:328)
at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.<init>(RestTestRequestStep.java:132)
at com.eviware.soapui.impl.wsdl.teststeps.registry.RestRequestStepFactory.buildTestStep(RestRequestStepFactory.java:75)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.createTestStepFromConfig(WsdlTestCase.java:422)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.<init>(WsdlTestCase.java:173)
at com.eviware.soapui.impl.wsdl.WsdlTestCasePro.<init>(WsdlTestCasePro.java:74)
at com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.buildTestCase(WsdlTestSuitePro.java:87)
at com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.buildTestCase(WsdlTestSuitePro.java:1)
at com.eviware.soapui.impl.wsdl.WsdlTestSuite.<init>(WsdlTestSuite.java:126)
at com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.<init>(WsdlTestSuitePro.java:50)
at com.eviware.soapui.impl.wsdl.WsdlProjectPro.buildTestSuite(WsdlProjectPro.java:1349)
at com.eviware.soapui.impl.wsdl.WsdlProjectPro.loadProject(WsdlProjectPro.java:555)
... 49 more

 

Any help?

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors