Forum Discussion

vimalk78's avatar
vimalk78
Occasional Contributor
8 years ago

SoapUI not starting Soap MockService (with SSL)

SoapUI 5.3.0 is not able to start Soap MockService.

 

Everytime i start the mock service, it says port in use. i checked netstat before starting the mock service, the port is not in use.

as soon as i start the mock service, it says address already in use. now, the port is shown to be in use by the same process.

there is no way to stop the mockservice, as it is not started.

 

I have tried with various ports in the mock service. keeping same/different ports in "SSL settings -> Mock Port" (not sure why it needs a different port)

 

Seems there is an option to "Leave MockEngine running when stopping MockServices" tried by both setting/unsetting this option.

 

I am tired of this error.

 

Kindly help to resolve.

  • vimalk78's avatar
    vimalk78
    Occasional Contributor

     

     

     

    • Mon Dec 11 19:43:38 IST 2017:INFO:Logging to com.eviware.soapui.support.log.JettyLogger@a25020e via com.eviware.soapui.support.log.JettyLogger
    • Mon Dec 11 19:43:38 IST 2017:WARN:EXCEPTION
    • java.io.IOException: The handle is invalid
    • at java.io.FileInputStream.readBytes(Native Method)
    • at java.io.FileInputStream.read(Unknown Source)
    • at java.io.BufferedInputStream.fill(Unknown Source)
    • at java.io.BufferedInputStream.read1(Unknown Source)
    • at java.io.BufferedInputStream.read(Unknown Source)
    • at java.io.FilterInputStream.read(Unknown Source)
    • at org.mortbay.jetty.security.Password.getPassword(Password.java:196)
    • at org.mortbay.jetty.security.SslSocketConnector.setKeyPassword(SslSocketConnector.java:532)
    • at com.eviware.soapui.monitor.JettyMockEngine.updateSslConnectorSettings(JettyMockEngine.java:190)
    • at com.eviware.soapui.monitor.JettyMockEngine.startMockService(JettyMockEngine.java:112)
    • at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.start(WsdlMockRunner.java:201)
    • at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.(WsdlMockRunner.java:71)
    • at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:250)
    • at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:223)
    • at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:59)
    • at com.eviware.soapui.impl.wsdl.panels.mock.WsdlMockServiceDesktopPanel.startMockService(WsdlMockServiceDesktopPanel.java:412)
    • at com.eviware.soapui.impl.wsdl.panels.mock.WsdlMockServiceDesktopPanel$RunMockServiceAction.actionPerformed(WsdlMockServiceDesktopPanel.java:553)
    • 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.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)
    • Mon Dec 11 19:43:38 IST 2017:INFO:jetty-6.1.26
    • Mon Dec 11 19:43:38 IST 2017:WARN:java.lang.NullPointerException
    • Mon Dec 11 19:43:38 IST 2017:WARN:failed SslSocketConnector@0.0.0.0:443: java.io.IOException: !JsseListener: java.lang.NullPointerException
    • Mon Dec 11 19:43:39 IST 2017:INFO:Started JettyMockEngine$SoapUIConnector@0.0.0.0:8989
    • Mon Dec 11 19:43:39 IST 2017:WARN:failed Server@18b26217: java.io.IOException: !JsseListener: java.lang.NullPointerException

     

    above is the jetty.log

     

    see it is starting the "JettyMockEngine$SoapUIConnector" on the same port. and it is taking this port from where?? my mock service configuration.

     

    so it tries to use the same port value and tries to start listener twice??????????????????????????????

     

     

    • vimalk78's avatar
      vimalk78
      Occasional Contributor

      whoever answers, please dont aswer like "check any other process using same port"