Forum Discussion

khapre's avatar
khapre
Occasional Contributor
13 years ago

Difference- Port in Mockservices vs Mock Port in SSL settin?

Hello Everyone.
what is the difference between Port in Mockservices and Mock Port in SSL settings? Currently, I want to test SSL, but when I configure the Mock port for SSL connection in SSL settings context window and again I configure port in MockServices context window. I get "error: Address already in use". Is this error suggesting us that both are same port and we should configure only one them? Please clear my understanding here. Looking forward to your response.

Regards,
Ashish
  • khapre's avatar
    khapre
    Occasional Contributor
    Hi,
    If I follow exact events whatever mentioned in here: http://www.soapui.org/Service-Mocking/s ... h-ssl.html

    Then, I do not get this error - java.net.BindException: Address already in use but my server certificate are said to be invalid. Which I know is not he case as same is working fine with other soapserver.

    Again, as soon as I change the SSL settings first and then start the mock service the this error ( java.net.BindException: Address already in use) is inevitable.


    Do any body know why this is happening?

    Regards,
    Ashish
  • khapre's avatar
    khapre
    Occasional Contributor
    Hi,

    could you please let me know what type of certificate does SOAPUI accepts? Is there something do with the extension Like in this site it is shown as ".keystore "?

    Looking forward to your response.

    Regards,
    Ashish
  • khapre's avatar
    khapre
    Occasional Contributor
    Thank you. The problem has been resolved.
    NOTE: DO the SSL settings and then save preferences and restart the SOAPUI, then create/ import project.
  • renren46's avatar
    renren46
    New Contributor
    Hi,

    I'm still having the same issue even after restarting SOAP UI.

    Any idea how to solve this problem?

    Thanks.
  • andsoulnd's avatar
    andsoulnd
    New Contributor
    Having the same issue. Not able to have mock service running on the same port that is specified in Preferences->SSL Settings->Mock Port.
    I've tried different ports (8443, 8989 etc). But not able to make mock service running on needed port. Restart of SoapUI or Windows is not helping.

    Error details:

    ERROR:java.net.BindException: Address already in use: bind
    java.net.BindException: Address already in use: bind
    at sun.nio.ch.Net.bind0(Native Method)
    at sun.nio.ch.Net.bind(Unknown Source)
    at sun.nio.ch.Net.bind(Unknown Source)
    at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
    at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
    at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:216)
    at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:315)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.Server.doStart(Server.java:235)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at com.eviware.soapui.monitor.JettyMockEngine.startMockService(JettyMockEngine.java:158)
    at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.start(WsdlMockRunner.java:234)
    at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.<init>(WsdlMockRunner.java:70)
    at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:261)
    at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:231)
    at com.eviware.soapui.impl.wsdl.actions.mockservice.StartMinimizedMockServiceAction.perform(StartMinimizedMockServiceAction.java:51)
    at com.eviware.soapui.impl.wsdl.actions.mockservice.StartMinimizedMockServiceAction.perform(StartMinimizedMockServiceAction.java:34)
    at com.eviware.soapui.support.action.swing.SwingActionDelegate.actionPerformed(SwingActionDelegate.java:93)
    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$200(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$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.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$1.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)
    • KMR's avatar
      KMR
      Occasional Contributor

      I am also getting the "Address already in use" error

      Every time I close and reopen the soapui and start the mockservice I get the error.

      I tried using different ports and the error reappears.

       

      I also checked the open ports using netstat.

      Before starting the mockservice the port is not used by any processes. Once I try to start the mock service I get the error "Address already in use" . When run the netstat again I see that soapUi is the process that is using the port