cancel
Showing results for 
Search instead for 
Did you mean: 

Refactor WSDL gives Errors of Null Pointer Exception

msiadak
Community Hero

Refactor WSDL gives Errors of Null Pointer Exception

Using either ReadyAPI 1.9.5, or 2.2, I am trying to re-factor an existing project for an updated WSDL. Whenever I try it, I get a null pointer exception error in the logs. See the below stack trace. Any and all help or information would be much appreciated. Rarely does Refactor ever work for me and I could really use it sometimes. 

 

2018-01-09 18:20:24,815 ERROR [errorlog] java.lang.NullPointerException
java.lang.NullPointerException
	at com.eviware.soapui.impl.wsdl.refactoring.SubTypeMap.<init>(SubTypeMap.java:42)
	at com.eviware.soapui.impl.wsdl.refactoring.RefactoringData.<init>(RefactoringData.java:103)
	at com.eviware.soapui.impl.wsdl.refactoring.actions.UpdateInterfaceWizard$RefactorPage.init(UpdateInterfaceWizard.java:240)
	at com.eviware.x.impl.swing.JWizardDialog.initPage(JWizardDialog.java:270)
	at com.eviware.x.impl.swing.JWizardDialog.showPage(JWizardDialog.java:258)
	at com.eviware.x.impl.swing.JWizardDialog.access$3(JWizardDialog.java:249)
	at com.eviware.x.impl.swing.JWizardDialog$NextAction.actionPerformed(JWizardDialog.java:328)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	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 com.eviware.soapui.support.swing.ModalFrameUtil$EventPump.start(ModalFrameUtil.java:49)
	at com.eviware.soapui.support.swing.ModalFrameUtil.showAsModal(ModalFrameUtil.java:85)
	at com.eviware.x.impl.swing.JWizardDialog.setVisible(JWizardDialog.java:185)
	at com.eviware.x.impl.swing.SwingXFormDialog.show(SwingXFormDialog.java:36)
	at com.eviware.x.impl.swing.JWizardDialog.show(JWizardDialog.java:237)
	at com.eviware.soapui.impl.wsdl.refactoring.actions.UpdateInterfaceWizard.showDialog(UpdateInterfaceWizard.java:114)
	at com.eviware.soapui.impl.wsdl.refactoring.actions.ProUpdateInterfaceAction.perform(ProUpdateInterfaceAction.java:40)
	at com.eviware.soapui.impl.wsdl.actions.iface.UpdateInterfaceAction.perform(UpdateInterfaceAction.java:1)
	at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:129)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.AbstractButton.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
	at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)



---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
2 REPLIES 2
nmrao
Community Hero

Re: Refactor WSDL gives Errors of Null Pointer Exception

Refactoring of WSDL never used.

Just a simple question - Are you modifying existing(imported) wsdl in ReadyAPI? or Wsdl is modified outside and importing it the project?

Usually wsdl file is part of application or its package provided by service provider / dev team. So, is it something that you are developing a service?


Regards,
Rao.
msiadak
Community Hero

Re: Refactor WSDL gives Errors of Null Pointer Exception

@nmrao: I have received an updated WSDL package from my development team for an update/upgrade to one of our existing services. This changes some of the XML names throughout the entire project, and I was under the impression that Refactoring could allow for easy mapping from the old WSDL to the new WSDL. When I run through the process it looks like it'll accomplish that, but then it errors out.

 

I can groovy script the same changes or I can manually edit the XML file of the project, but if there's a way to automate it with Refactoring, I'd like to use that.




---

Click the Accept as Solution button if my answer has helped, and remember to give kudos where appropriate too!
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors