browsermob-proxy icon indicating copy to clipboard operation
browsermob-proxy copied to clipboard

Stopped proxy cannot be restarted

Open ar4development opened this issue 5 years ago • 0 comments

Maven dependency:

        <dependency>
            <groupId>net.lightbody.bmp</groupId>
            <artifactId>browsermob-core</artifactId>
            <version>2.1.5</version>
        </dependency>

Steps to reproduce:

        browserMobProxy.start(0);
        int port = browserMobProxy.getPort();
        browserMobProxy.stop();
        browserMobProxy.start(port);

EXPECTED: proxy has been restarted OBSERVED:

Exception in thread "main" java.lang.IllegalStateException: Proxy server is already started. Not restarting. at net.lightbody.bmp.BrowserMobProxyServer.start(BrowserMobProxyServer.java:269) at net.lightbody.bmp.BrowserMobProxyServer.start(BrowserMobProxyServer.java:380)

ar4development avatar Aug 17 '20 22:08 ar4development