Forum Discussion

majestix509's avatar
majestix509
New Contributor
10 years ago

Update Definition, Refactor Definition not working

Hi, we upgraded from SoapUI 5.1.2 to SoapUI NG (1.2.2) - and we have a composite project with 3 wsdls.

When I try to update the definition or refactor definition, i get this error:

 

  • Wed Apr 22 17:24:05 CEST 2015:ERROR:com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
  • com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
  • at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.makeInvalidReadyApiXmlException(WsdlLoader.java:134)
  • at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:119)
  • at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:486)
  • at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:475)
  • at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:93)
  • at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:215)
  • at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
  • at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:131)
  • at java.lang.Thread.run(Unknown Source)
  • Wed Apr 22 17:24:05 CEST 2015:ERROR:com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
  • com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
  • at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.makeInvalidReadyApiXmlException(WsdlLoader.java:134)
  • at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:119)
  • at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:486)
  • at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:475)
  • at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:93)
  • at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:215)
  • at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
  • at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:131)
  • at java.lang.Thread.run(Unknown Source)

I found this thread http://forum.loadui.org/viewtopic.php?f=2&t=24985&p=57567&hilit=ERROR%3Acom.eviware.soapui.impl.support.definition.support.InvalidDefinitionException#p57567

 

but the solution with "add -Dfile.encoding=UTF8 to your .vmoptions file" does not work.

 

This is really important for us, cause at the moment we can't update our definition to create new tests!

 

2 Replies

  • If someone has the same problem - the solution is - use the nightly build! It's fixed in this version

  • Here's a (not so?) obvious solution to the same exception in SoapUI NG/Ready! API 1.8.5:

     

    When you attempt to "Update Definition F5" on a wsdl in an existing project, it opens a dialog with just the name (no path) of the wsdl file in "Definition URL:".  I instinctively thought that the application remembered where it had found the wsdl file in the first place.  Click ok and get the error and stack trace below.

     

    The simple solution is to browse to the wsdl file again to give it the full path to the wsdl file.

     

    I'm ashamed to admit it took me so long to figure this one out.  I hope this can help others who encounter the exception avoid burning time searching for a solution.

     

     

     

    Failed to update the interface: [java.lang.Exception: com.eviware.soapui.definition.support.InvalidDefinitionException]

     

    com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
    at com.eviware.soapui.impl.wsdl.support.wsdl.ClientLoader.makeInvalidDefinitionException(ClientLoader.java:116)
    at com.eviware.soapui.impl.wsdl.support.wsdl.ClientLoader.loadXmlObject(ClientLoader.java:108)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:501)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:490)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:93)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader$1.run(AbstractDefinitionContext.java:251)
    at java.lang.Thread.run(Unknown Source)
    java.lang.Exception: com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:287)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.access$0(AbstractDefinitionContext.java:230)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.load(AbstractDefinitionContext.java:129)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.load(AbstractDefinitionContext.java:114)
    at com.eviware.soapui.impl.wsdl.WsdlInterface.updateDefinition(WsdlInterface.java:298)
    at com.eviware.soapui.impl.wsdl.actions.iface.UpdateInterfaceAction.perform(UpdateInterfaceAction.java:125)
    at com.eviware.soapui.impl.wsdl.actions.iface.UpdateInterfaceAction.perform(UpdateInterfaceAction.java:1)
    at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:128)
    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)
    Caused by: com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
    at com.eviware.soapui.impl.wsdl.support.wsdl.ClientLoader.makeInvalidDefinitionException(ClientLoader.java:116)
    at com.eviware.soapui.impl.wsdl.support.wsdl.ClientLoader.loadXmlObject(ClientLoader.java:108)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:501)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:490)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:93)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader$1.run(AbstractDefinitionContext.java:251)
    at java.lang.Thread.run(Unknown Source)
    java.lang.Exception: java.lang.Exception: com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.load(AbstractDefinitionContext.java:154)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.load(AbstractDefinitionContext.java:114)
    at com.eviware.soapui.impl.wsdl.WsdlInterface.updateDefinition(WsdlInterface.java:298)
    at com.eviware.soapui.impl.wsdl.actions.iface.UpdateInterfaceAction.perform(UpdateInterfaceAction.java:125)
    at com.eviware.soapui.impl.wsdl.actions.iface.UpdateInterfaceAction.perform(UpdateInterfaceAction.java:1)
    at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:128)
    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)
    Caused by: java.lang.Exception: com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:287)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.access$0(AbstractDefinitionContext.java:230)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext.load(AbstractDefinitionContext.java:129)
    ... 44 more
    Caused by: com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
    at com.eviware.soapui.impl.wsdl.support.wsdl.ClientLoader.makeInvalidDefinitionException(ClientLoader.java:116)
    at com.eviware.soapui.impl.wsdl.support.wsdl.ClientLoader.loadXmlObject(ClientLoader.java:108)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:501)
    at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:490)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:93)
    at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader$1.run(AbstractDefinitionContext.java:251)
    at java.lang.Thread.run(Unknown Source)