Forum Discussion

stasrus's avatar
stasrus
New Member
9 years ago

MockService start fails with

Hi,

 

  I'm using SoapUI 5.2.1 and have a proble with start of Mock SOAP service.

  First time I run service:

  1. Got exception -  java.io.FileNotFoundException: C:\Program Files\SmartBear\SoapUI-5.2.1\bin (Access denied)

 

  Second time:

   

Sat Mar 05 11:02:22 MSK 2016: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:147)
   	at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.start(WsdlMockRunner.java:201)
   	at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.<init>(WsdlMockRunner.java:71)
   	at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:249)
   	at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:222)
   	at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:58)
   	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)

Does it look like a problem with concrete version of SoapUI 5.2.1?

Or may be I'm lack of rights on my corporate laptop?

  • I came across this while searching for a solution to the same issue. I am using version SoapUI 5.4.0.

     

    It seems that SoapUI is holding ports open when an exception occurs. The only way to fix the issue is to Exit SoapUI or kill its process.

     

    In my case the exception was caused by SSL Preference "Enable Mock SSL" being checked with a missing KeyStore certificate. SoapUI gave a not very helpful "...\SoapUI-5.4.0\bin ...File not found (Access Denied)" error when starting a mock service. I unchecked the Enable Mock SSL option and it resolved the issue (someone else installed SoapUI with the missing certificate specified).

     

    This looks like a bug in SoapUI and not merely a clash of ports.

    • md13's avatar
      md13
      New Contributor

      Can we please have an answer from a soapui developer? Is this being looked at, at all?

  • rupert_anderson's avatar
    rupert_anderson
    Valued Contributor

    Hi,

     

    Sorry if you've already checked this, but this error normally means something else is running on the same port as the mock is trying to listen on - I take it you have tried changing the port:

     

     

    Cheers,

     

    Rupert

    • vimalk78's avatar
      vimalk78
      Occasional Contributor

      you think people will not check such a simple thing as "port already in use" before posting ?