java.lang.NoSuchMethodError: javax.wsdl.Definition.getAllServices()Ljava/util/Map; When new project
Hi,
I try to import a public WSDL on SoapUI Pro (Actually SoapUI Opensource have the same problem) , or even run the Sample provided by SmartBear, have java Exception.(I don't have any problem on windows)
JRE version: 1.8
OS:mac
Ready!API:1.8
I think the soapui pro software didn't successfully find the the Class in WSDL.jar. But I don't know how to correct this problem. what should I do to config the Java??
Problem:
1. enter "new project",after enter the WSDL, click "ok", results an empty project, and the new project dialog doesn't closed, then click ok again, a new empty project, need "Cancel" the dialog.
2.the error log is like following?
Fri Sep 16 17:16:31 PDT 2016:INFO:Starting Ready! API 1.8.5
Fri Sep 16 17:21:09 PDT 2016:INFO:Loaded project from [file:/Applications/ReadyAPI-1.8.5.app/Contents/Resources/app/bin/../tutorials/Sample-SOAP-project.xml]
Fri Sep 16 17:21:43 PDT 2016:INFO:Added default schema from file:/Applications/ReadyAPI-1.8.5.app/Contents/java/app/lib/ready-api-soapui-1.8.5.jar!/com/eviware/soapui/resources/xsds/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include
Fri Sep 16 17:21:43 PDT 2016:INFO:Added default schema from file:/Applications/ReadyAPI-1.8.5.app/Contents/java/app/lib/ready-api-soapui-1.8.5.jar!/com/eviware/soapui/resources/xsds/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchema
Fri Sep 16 17:21:43 PDT 2016:INFO:Added default schema from file:/Applications/ReadyAPI-1.8.5.app/Contents/java/app/lib/ready-api-soapui-1.8.5.jar!/com/eviware/soapui/resources/xsds/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace
Fri Sep 16 17:21:43 PDT 2016:INFO:Added default schema from file:/Applications/ReadyAPI-1.8.5.app/Contents/java/app/lib/ready-api-soapui-1.8.5.jar!/com/eviware/soapui/resources/xsds/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1/xsd
Fri Sep 16 17:21:43 PDT 2016:INFO:Added default schema from file:/Applications/ReadyAPI-1.8.5.app/Contents/java/app/lib/ready-api-soapui-1.8.5.jar!/com/eviware/soapui/resources/xsds/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xmlmime
Fri Sep 16 17:21:43 PDT 2016:INFO:Added default schema from file:/Applications/ReadyAPI-1.8.5.app/Contents/java/app/lib/ready-api-soapui-1.8.5.jar!/com/eviware/soapui/resources/xsds/xmime200411.xsd with targetNamespace http://www.w3.org/2004/11/xmlmime
Fri Sep 16 17:21:43 PDT 2016:INFO:Added default schema from file:/Applications/ReadyAPI-1.8.5.app/Contents/java/app/lib/ready-api-soapui-1.8.5.jar!/com/eviware/soapui/resources/xsds/soapEnvelope.xsd with targetNamespace http://schemas.xmlsoap.org/soap/envelope/
Fri Sep 16 17:21:43 PDT 2016:INFO:Added default schema from file:/Applications/ReadyAPI-1.8.5.app/Contents/java/app/lib/ready-api-soapui-1.8.5.jar!/com/eviware/soapui/resources/xsds/soapEncoding.xsd with targetNamespace http://schemas.xmlsoap.org/soap/encoding/
Fri Sep 16 17:21:43 PDT 2016:INFO:Added default schema from file:/Applications/ReadyAPI-1.8.5.app/Contents/java/app/lib/ready-api-soapui-1.8.5.jar!/com/eviware/soapui/resources/xsds/soapEnvelope12.xsd with targetNamespace http://www.w3.org/2003/05/soap-envelope
Fri Sep 16 17:21:43 PDT 2016:INFO:Added default schema from file:/Applications/ReadyAPI-1.8.5.app/Contents/java/app/lib/ready-api-soapui-1.8.5.jar!/com/eviware/soapui/resources/xsds/soapEncoding12.xsd with targetNamespace http://www.w3.org/2003/05/soap-encoding
Fri Sep 16 17:21:43 PDT 2016:INFO:Loading schema types from [WSDL-WADL/sample-service.wsdl]
Fri Sep 16 17:21:43 PDT 2016:INFO:Getting schema WSDL-WADL/sample-service.wsdl
Fri Sep 16 17:21:44 PDT 2016:ERROR:Uncaught exception in Thread "AWT-EventQueue-0":
java.lang.NoSuchMethodError: javax.wsdl.Definition.getAllServices()Ljava/util/Map;
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlValidator.findBindingOperation(WsdlValidator.java:464)
at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlValidator.getMessageParts(WsdlValidator.java:265)
at com.eviware.soapui.impl.wsdl.submit.transports.http.support.attachments.AttachmentUtils.extractAttachmentParts(AttachmentUtils.java:431)
at com.eviware.soapui.impl.wsdl.WsdlRequest.getDefinedAttachmentParts(WsdlRequest.java:260)
at com.eviware.soapui.impl.wsdl.WsdlRequest.getRequestParts(WsdlRequest.java:374)
at com.eviware.soapui.support.editor.views.xml.form2.wsdl.WsdlRequestFormEditorModel.getMessageParts(WsdlRequestFormEditorModel.java:18)
at com.eviware.soapui.support.editor.views.xml.form2.wsdl.AbstractWsdlFormEditorModel.buildRootParticle(AbstractWsdlFormEditorModel.java:105)
at com.eviware.soapui.support.editor.views.xml.form2.wsdl.AbstractWsdlFormEditorModel.setXml(AbstractWsdlFormEditorModel.java:71)
at com.eviware.soapui.support.editor.views.xml.form2.FormEditorView.documentUpdated(FormEditorView.java:368)
at com.eviware.soapui.support.editor.views.AbstractXmlEditorView.update(AbstractXmlEditorView.java:72)
at com.eviware.soapui.support.editor.views.AbstractXmlEditorView.activate(AbstractXmlEditorView.java:65)
at com.eviware.soapui.support.editor.views.xml.form2.FormEditorView.activate(FormEditorView.java:229)
at com.eviware.soapui.support.editor.Editor$InputTabsChangeListener.stateChanged(Editor.java:364)
at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:416)
at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:270)
at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:132)
at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:67)
at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:616)
at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:591)
at com.eviware.soapui.support.editor.Editor.selectView(Editor.java:172)
at com.eviware.soapui.impl.wsdl.panels.request.ProWsdlRequestPanelBuilder.buildDesktopPanel(ProWsdlRequestPanelBuilder.java:25)
at com.eviware.soapui.impl.wsdl.panels.request.ProWsdlRequestPanelBuilder.buildDesktopPanel(ProWsdlRequestPanelBuilder.java:1)
at com.eviware.soapui.ui.TabbedSoapUIDesktop.showDesktopPanel(TabbedSoapUIDesktop.java:209)
at com.eviware.soapui.ui.HistoryAwareDesktop.showDesktopPanel(HistoryAwareDesktop.java:155)
at com.eviware.soapui.ready.ClassicModuleGui.display(ClassicModuleGui.java:173)
at com.smartbear.ready.core.module.SimpleReadyApiDisplayDispatcher.display(SimpleReadyApiDisplayDispatcher.java:90)
at com.smartbear.ready.core.module.SimpleReadyApiDisplayDispatcher.display(SimpleReadyApiDisplayDispatcher.java:85)
at com.eviware.soapui.support.UISupport.selectAndShow(UISupport.java:676)
at com.eviware.soapui.support.UISupport.selectAndShow(UISupport.java:667)
at com.eviware.soapui.impl.wsdl.actions.support.ShowDesktopPanelAction.perform(ShowDesktopPanelAction.java:51)
at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:128)
at com.eviware.soapui.support.action.swing.DefaultActionList.performDefaultAction(DefaultActionList.java:97)
at com.eviware.soapui.ui.TreeMouseListener$1.run(TreeMouseListener.java:150)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)