Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-41

[Tests] An "Address already in use" exception can occur

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 4.2.0
    • None
    • 4.2 M9

      The following exception can occur

      java.net.BindException: Address already in use
      	at sun.nio.ch.Net.bind0(Native Method)
      	at sun.nio.ch.Net.bind(Net.java:433)
      	at sun.nio.ch.Net.bind(Net.java:425)
      	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
      	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
      	at sun.net.httpserver.ServerImpl.<init>(ServerImpl.java:100)
      	at sun.net.httpserver.HttpServerImpl.<init>(HttpServerImpl.java:50)
      	at sun.net.httpserver.DefaultHttpServerProvider.createHttpServer(DefaultHttpServerProvider.java:35)
      	at com.sun.net.httpserver.HttpServer.create(HttpServer.java:130)
      	at org.ametys.solr.AbstractAclTestCase._mockAmetysServer(AbstractAclTestCase.java:238)
      	at org.ametys.solr.AbstractAclTestCase.startMockServer(AbstractAclTestCase.java:462)

      We need to do the same process as org.ametys.cms.test.framework.AbstractSearcherTestCase._getFreePort() in AbstractAclTestCase in order to have a port for the mocked Ametys

            sprieul Simon Prieul (Inactive)
            sprieul Simon Prieul (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: